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

java.lang.Object
  extended byorg.eclipse.jface.dialogs.DialogPage
      extended byorg.eclipse.jface.preference.PreferencePage
          extended bynet.sourceforge.java.feednread.frontend.configuration.DefaultConfigurationPage
              extended bynet.sourceforge.java.feednread.frontend.configuration.GeneralConfigurationPage
All Implemented Interfaces:
IDialogPage, IMessageProvider, IPreferencePage

public class GeneralConfigurationPage
extends DefaultConfigurationPage

Configuration page for general application settings.

Author:
Sebastian Machhausen

Field Summary
private  BooleanFieldEditor askOnNewsfeedLinkDetectionEditor
           FieldEditor for the ask on newsfeed link detection setting
private  BooleanFieldEditor askOnRemoveCategoryEditor
           FieldEditor for the ask on remove Category setting
private  BooleanFieldEditor askOnRemoveFavoriteEditor
           FieldEditor for the ask on remove Favorite setting
private  BooleanFieldEditor askOnRemoveWatchEditor
           FieldEditor for the ask on remove Watch setting
private  BooleanFieldEditor askOnRemoveWatchFolderEditor
           FieldEditor for the ask on remove WatchFolder setting
private  BooleanFieldEditor markAllNewsReadOnCloseTab
           FieldEditor for the mark all news read on close tab setting
 
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
GeneralConfigurationPage()
           Creates a new GeneralConfigurationPage instance.
 
Method Summary
protected  Control createContents(Composite parent)
           Creates and returns the SWT control for the customized body of this preference page under the given parent composite.
protected  void performDefaults()
           Resets all configured values in the FieldEditors back to their default values.
 boolean performOk()
           Notifies that the OK button of this page's container has been pressed.
 
Methods inherited from class net.sourceforge.java.feednread.frontend.configuration.DefaultConfigurationPage
createControl
 
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, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage, setVisible
 
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
dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, setDescription, setImageDescriptor, setVisible
 

Field Detail

askOnRemoveFavoriteEditor

private BooleanFieldEditor askOnRemoveFavoriteEditor

FieldEditor for the ask on remove Favorite setting


askOnRemoveCategoryEditor

private BooleanFieldEditor askOnRemoveCategoryEditor

FieldEditor for the ask on remove Category setting


askOnRemoveWatchEditor

private BooleanFieldEditor askOnRemoveWatchEditor

FieldEditor for the ask on remove Watch setting


askOnRemoveWatchFolderEditor

private BooleanFieldEditor askOnRemoveWatchFolderEditor

FieldEditor for the ask on remove WatchFolder setting


askOnNewsfeedLinkDetectionEditor

private BooleanFieldEditor askOnNewsfeedLinkDetectionEditor

FieldEditor for the ask on newsfeed link detection setting


markAllNewsReadOnCloseTab

private BooleanFieldEditor markAllNewsReadOnCloseTab

FieldEditor for the mark all news read on close tab setting

Constructor Detail

GeneralConfigurationPage

public GeneralConfigurationPage()

Creates a new GeneralConfigurationPage instance.

Method Detail

performOk

public boolean performOk()

Notifies that the OK button of this page's container has been pressed.

Returns:
false to abort the container's OK processing and true to allow the OK to happen

createContents

protected Control createContents(Composite parent)

Creates and returns the SWT control for the customized body of this preference page under the given parent composite.

Parameters:
parent - the parent composite
Returns:
the new control
See Also:
PreferencePage.createContents(org.eclipse.swt.widgets.Composite)

performDefaults

protected void performDefaults()

Resets all configured values in the FieldEditors back to their default values.