net.sourceforge.java.feednread.frontend.configuration
Class DefaultFieldEditorConfigurationPage

java.lang.Object
  extended byorg.eclipse.jface.dialogs.DialogPage
      extended byorg.eclipse.jface.preference.PreferencePage
          extended byorg.eclipse.jface.preference.FieldEditorPreferencePage
              extended bynet.sourceforge.java.feednread.frontend.configuration.DefaultFieldEditorConfigurationPage
All Implemented Interfaces:
EventListener, IDialogPage, IMessageProvider, IPreferencePage, IPropertyChangeListener
Direct Known Subclasses:
ConnectionConfigurationPage, EnclosureConfigurationPage, LanguageConfigurationPage, PodcastConfigurationPage

public abstract class DefaultFieldEditorConfigurationPage
extends 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

Field Summary
 
Fields inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage
FLAT, GRID, MARGIN_HEIGHT, MARGIN_WIDTH, VERTICAL_SPACING
 
Fields inherited from class org.eclipse.jface.preference.PreferencePage
 
Fields inherited from class org.eclipse.jface.dialogs.DialogPage
 
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(String title, ImageDescriptor image, int style)
           Creates a new DefaultFieldEditorConfigurationPage with the given title, image, and style.
protected DefaultFieldEditorConfigurationPage(String title, int style)
           Creates a new DefaultFieldEditorConfigurationPage with the given title and style, but no image.
 
Method Summary
 void createControl(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(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(String title,
                                              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(Composite parent)

Creates the control for this DefaultFieldEditorConfigurationPage.

Parameters:
parent - the parent container to embed the created control into