org.mailster.gui.prefs
Class DefaultFieldEditorConfigurationPage

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 org.mailster.gui.prefs.DefaultFieldEditorConfigurationPage
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:
EnclosuresConfigurationPage, LanguageConfigurationPage, SMTPConfigurationPage

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

DefaultFieldEditorConfigurationPage extends FieldEditorPreferencePage to make use of localized button texts and to display the default button images for the ok, cancel, apply and defaults button. All configuration pages that create default FieldEditors should inherit this class.

Author:
Sebastian Machhausen, Edouard De Oliveira

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 DefaultFieldEditorConfigurationPage(int style)
          Creates a new DefaultFieldEditorConfigurationPage with the given style, an empty title, and no image.
protected DefaultFieldEditorConfigurationPage(java.lang.String title, org.eclipse.jface.resource.ImageDescriptor image, int style)
          Creates a new DefaultFieldEditorConfigurationPage with the given title, image, and style.
protected DefaultFieldEditorConfigurationPage(java.lang.String title, int style)
          Creates a new DefaultFieldEditorConfigurationPage with the given title and style, but no image.
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
          Creates the control for this DefaultFieldEditorConfigurationPage.
 
Methods inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage
addField, adjustGridLayout, applyFont, checkState, createContents, createFieldEditors, dispose, getFieldEditorParent, initialize, performDefaults, performOk, propertyChange, setVisible
 
Methods inherited from class org.eclipse.jface.preference.PreferencePage
applyData, applyDialogFont, computeSize, contributeButtons, 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

DefaultFieldEditorConfigurationPage

protected DefaultFieldEditorConfigurationPage(int style)
Creates a new DefaultFieldEditorConfigurationPage with the given style, an empty title, and no image.

Parameters:
style - either GRID or FLAT

DefaultFieldEditorConfigurationPage

protected DefaultFieldEditorConfigurationPage(java.lang.String title,
                                              int style)
Creates a new DefaultFieldEditorConfigurationPage with the given title and style, but no image.

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

DefaultFieldEditorConfigurationPage

protected DefaultFieldEditorConfigurationPage(java.lang.String title,
                                              org.eclipse.jface.resource.ImageDescriptor image,
                                              int style)
Creates a new DefaultFieldEditorConfigurationPage 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

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
Creates the control for this DefaultFieldEditorConfigurationPage.

Specified by:
createControl in interface org.eclipse.jface.dialogs.IDialogPage
Overrides:
createControl in class org.eclipse.jface.preference.PreferencePage
Parameters:
parent - the parent container to embed the created control into