|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.rssowl.controller.properties.PropertyPage
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.
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 |
protected static PropertyChangeManager propertyChangeManager
protected org.eclipse.swt.widgets.Button apply
protected org.eclipse.swt.widgets.Composite composite
protected org.eclipse.swt.graphics.Font dialogFont
protected org.eclipse.swt.custom.CLabel errorMessageLabel
protected org.eclipse.swt.widgets.Composite parent
protected org.eclipse.swt.widgets.Button restore
protected GUI rssOwlGui
Constructor Detail |
protected PropertyPage(org.eclipse.swt.widgets.Composite parent)
parent
- Composite's parentprotected PropertyPage(org.eclipse.swt.widgets.Composite parent, GUI rssOwlGui)
parent
- Composite's parentrssOwlGui
- To access some methodsMethod Detail |
public static PropertyChangeManager getPropertyChangeManager()
public static void initPropertyChangeManager(GUI rssOwlGui)
rssOwlGui
- The MainControllerpublic abstract void applyButtonPressed()
public void dispose()
public abstract void updatePropertiesChangeManager()
protected void createButtons()
protected void createComposite()
protected abstract void initComponents()
protected abstract void restoreButtonPressed()
protected void setApplyButtonState(boolean enabled)
enabled
- TRUE for enabledprotected void setButtonLayoutData(org.eclipse.swt.widgets.Button button)
button
- The button to set the layoutdataprotected void setButtonLayoutData(org.eclipse.swt.widgets.Button button, org.eclipse.swt.layout.GridData data)
button
- The button to set the layoutdatadata
- The GridData to useprotected void setErrorMessage(String errorMessage)
errorMessage
- The warning message or NULL for no warningprotected void setRestoreButtonState(boolean enabled)
enabled
- TRUE for enabledprotected void setSuccessMessage(String successMessage)
successMessage
- The success message or NULL for no warningprotected void setWarningMessage(String warningMessage)
warningMessage
- The warning message or NULL for no warning
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |