net.sourceforge.rssowl.controller.properties
Class PropertyPage

java.lang.Object
  extended bynet.sourceforge.rssowl.controller.properties.PropertyPage
Direct Known Subclasses:
AmphetaRateProperties, BloggerProperties, BrowserProperties, ColorProperties, ConnectionProperties, FavoritesProperties, FontProperties, HotkeysProperties, LanguageProperties, MailProperties, SortOrderPropertiers, SystemTrayProperties, ViewProperties, WorkbenchProperties

public abstract class PropertyPage
extends Object

A property page holds components to set properties in RSSOwl. It holds an apply button to save the made changes and a restore defaults button to restore the default settings.

Version:
1.1.3
Author:
Benjamin Pasero

Field Summary
protected  org.eclipse.swt.widgets.Button apply
          Apply button
protected  org.eclipse.swt.widgets.Composite composite
          Holds the Property Page
protected  org.eclipse.swt.graphics.Font dialogFont
          Font to use for the components
protected  org.eclipse.swt.custom.CLabel errorMessageLabel
          Label to display a warning or warning
protected  org.eclipse.swt.widgets.Composite parent
          Parent of the composite
protected static PropertyChangeManager propertyChangeManager
          The PropertyChangeManager holds a temp state of the made settings
protected  org.eclipse.swt.widgets.Button restore
          Restore button
protected  GUI rssOwlGui
          GUI to access some methods
 
Constructor Summary
protected PropertyPage(org.eclipse.swt.widgets.Composite parent)
          Instantiates a new PropertyPage
protected PropertyPage(org.eclipse.swt.widgets.Composite parent, GUI rssOwlGui)
          Instantiates a new PropertyPage
 
Method Summary
abstract  void applyButtonPressed()
          The apply button has been pressed
protected  void createButtons()
          Create "Apply" and "Restore Defaults" button
protected  void createComposite()
          Create the composite that holds the PropertyPage
 void dispose()
          Dispose the composite that holds the property page
static PropertyChangeManager getPropertyChangeManager()
           
protected abstract  void initComponents()
          Init all components
static void initPropertyChangeManager(GUI rssOwlGui)
          Init the PropertyChangeManager's settings with the ones from GlobalSettings
protected abstract  void restoreButtonPressed()
          The restore button has been pressed
protected  void setApplyButtonState(boolean enabled)
          Enable / Disable the "Apply"-Button
protected  void setButtonLayoutData(org.eclipse.swt.widgets.Button button)
          Set the layout data of the button to a GridData with appropriate heights and widths.
protected  void setButtonLayoutData(org.eclipse.swt.widgets.Button button, org.eclipse.swt.layout.GridData data)
          Set the layout data of the button to a GridData with appropriate heights and widths.
protected  void setErrorMessage(String errorMessage)
          Set / unset the error message on the dialog
protected  void setRestoreButtonState(boolean enabled)
          Enable / Disable the "Restore"-Button
protected  void setSuccessMessage(String successMessage)
          Set / unset the success message on the dialog
protected  void setWarningMessage(String warningMessage)
          Set / unset the warning message on the dialog
abstract  void updatePropertiesChangeManager()
          Update the temporary settings holder PropertiesChangeManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyChangeManager

protected static PropertyChangeManager propertyChangeManager
The PropertyChangeManager holds a temp state of the made settings


apply

protected org.eclipse.swt.widgets.Button apply
Apply button


composite

protected org.eclipse.swt.widgets.Composite composite
Holds the Property Page


dialogFont

protected org.eclipse.swt.graphics.Font dialogFont
Font to use for the components


errorMessageLabel

protected org.eclipse.swt.custom.CLabel errorMessageLabel
Label to display a warning or warning


parent

protected org.eclipse.swt.widgets.Composite parent
Parent of the composite


restore

protected org.eclipse.swt.widgets.Button restore
Restore button


rssOwlGui

protected GUI rssOwlGui
GUI to access some methods

Constructor Detail

PropertyPage

protected PropertyPage(org.eclipse.swt.widgets.Composite parent)
Instantiates a new PropertyPage

Parameters:
parent - Composite's parent

PropertyPage

protected PropertyPage(org.eclipse.swt.widgets.Composite parent,
                       GUI rssOwlGui)
Instantiates a new PropertyPage

Parameters:
parent - Composite's parent
rssOwlGui - To access some methods
Method Detail

getPropertyChangeManager

public static PropertyChangeManager getPropertyChangeManager()
Returns:
Returns the propertyChangeManager.

initPropertyChangeManager

public static void initPropertyChangeManager(GUI rssOwlGui)
Init the PropertyChangeManager's settings with the ones from GlobalSettings

Parameters:
rssOwlGui - The MainController

applyButtonPressed

public abstract void applyButtonPressed()
The apply button has been pressed


dispose

public void dispose()
Dispose the composite that holds the property page


updatePropertiesChangeManager

public abstract void updatePropertiesChangeManager()
Update the temporary settings holder PropertiesChangeManager


createButtons

protected void createButtons()
Create "Apply" and "Restore Defaults" button


createComposite

protected void createComposite()
Create the composite that holds the PropertyPage


initComponents

protected abstract void initComponents()
Init all components


restoreButtonPressed

protected abstract void restoreButtonPressed()
The restore button has been pressed


setApplyButtonState

protected void setApplyButtonState(boolean enabled)
Enable / Disable the "Apply"-Button

Parameters:
enabled - TRUE for enabled

setButtonLayoutData

protected void setButtonLayoutData(org.eclipse.swt.widgets.Button button)
Set the layout data of the button to a GridData with appropriate heights and widths.

Parameters:
button - The button to set the layoutdata

setButtonLayoutData

protected void setButtonLayoutData(org.eclipse.swt.widgets.Button button,
                                   org.eclipse.swt.layout.GridData data)
Set the layout data of the button to a GridData with appropriate heights and widths.

Parameters:
button - The button to set the layoutdata
data - The GridData to use

setErrorMessage

protected void setErrorMessage(String errorMessage)
Set / unset the error message on the dialog

Parameters:
errorMessage - The warning message or NULL for no warning

setRestoreButtonState

protected void setRestoreButtonState(boolean enabled)
Enable / Disable the "Restore"-Button

Parameters:
enabled - TRUE for enabled

setSuccessMessage

protected void setSuccessMessage(String successMessage)
Set / unset the success message on the dialog

Parameters:
successMessage - The success message or NULL for no warning

setWarningMessage

protected void setWarningMessage(String warningMessage)
Set / unset the warning message on the dialog

Parameters:
warningMessage - The warning message or NULL for no warning


RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo