net.sf.commonclipse.preferences
Class TabbedFieldEditorPreferencePage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.preference.PreferencePage
          extended by org.eclipse.jface.preference.FieldEditorPreferencePage
              extended by net.sf.commonclipse.preferences.TabbedFieldEditorPreferencePage
All Implemented Interfaces:
java.util.EventListener, org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.preference.IPreferencePage, org.eclipse.jface.util.IPropertyChangeListener
Direct Known Subclasses:
CCPreferencePage

public abstract class TabbedFieldEditorPreferencePage
extends org.eclipse.jface.preference.FieldEditorPreferencePage

Version:
$Revision $ ($Author $)
Author:
fgiust

Field Summary
 
Fields inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage
FLAT, GRID, MARGIN_HEIGHT, MARGIN_WIDTH, VERTICAL_SPACING
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
protected TabbedFieldEditorPreferencePage(int style)
          Creates a new field editor preference page with the given style, an empty title, and no image.
protected TabbedFieldEditorPreferencePage(java.lang.String title, org.eclipse.jface.resource.ImageDescriptor image, int style)
          Creates a new field editor preference page with the given title, image, and style.
protected TabbedFieldEditorPreferencePage(java.lang.String title, int style)
          Creates a new field editor preference page with the given title and style, but no image.
 
Method Summary
protected  void addField(org.eclipse.jface.preference.FieldEditor editor)
          Adds the given field editor to this page.
 void addTab(java.lang.String text)
          Adds a tab to the page.
protected  void adjustGridLayout()
          Adjust the layout of the field editors so that they are properly aligned.
protected  org.eclipse.swt.widgets.Composite getFieldEditorParent()
          Returns a parent composite for a field editor.
 
Methods inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage
applyFont, checkState, createContents, createFieldEditors, dispose, initialize, performDefaults, performOk, propertyChange, setVisible
 
Methods inherited from class org.eclipse.jface.preference.PreferencePage
applyData, applyDialogFont, computeSize, contributeButtons, createControl, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, okToLeave, performApply, performCancel, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, setDescription, setImageDescriptor
 

Constructor Detail

TabbedFieldEditorPreferencePage

protected TabbedFieldEditorPreferencePage(int style)
Creates a new field editor preference page with the given style, an empty title, and no image.

Parameters:
style - either GRID or FLAT

TabbedFieldEditorPreferencePage

protected TabbedFieldEditorPreferencePage(java.lang.String title,
                                          int style)
Creates a new field editor preference page with the given title and style, but no image.

Parameters:
title - the title of this preference page
style - either GRID or FLAT

TabbedFieldEditorPreferencePage

protected TabbedFieldEditorPreferencePage(java.lang.String title,
                                          org.eclipse.jface.resource.ImageDescriptor image,
                                          int style)
Creates a new field editor preference page with the given title, image, and style.

Parameters:
title - the title of this preference page
image - the image for this preference page, or null if none
style - either GRID or FLAT
Method Detail

addField

protected void addField(org.eclipse.jface.preference.FieldEditor editor)
Adds the given field editor to this page.

Overrides:
addField in class org.eclipse.jface.preference.FieldEditorPreferencePage
Parameters:
editor - the field editor

adjustGridLayout

protected void adjustGridLayout()
Adjust the layout of the field editors so that they are properly aligned.

Overrides:
adjustGridLayout in class org.eclipse.jface.preference.FieldEditorPreferencePage

getFieldEditorParent

protected org.eclipse.swt.widgets.Composite getFieldEditorParent()
Returns a parent composite for a field editor.

This value must not be cached since a new parent may be created each time this method called. Thus this method must be called each time a field editor is constructed.

Overrides:
getFieldEditorParent in class org.eclipse.jface.preference.FieldEditorPreferencePage
Returns:
a parent

addTab

public void addTab(java.lang.String text)
Adds a tab to the page.

Parameters:
text - the tab label


Copyright © 2003-2005 sourceforge. All Rights Reserved.