|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.geeboss.view.properties.PropertyPage
public abstract class PropertyPage
A property page holds components to set properties in Geeboss. 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 |
mApply
Apply button |
protected org.eclipse.swt.widgets.Composite |
mComposite
Holds the Property Page |
protected org.eclipse.swt.graphics.Font |
mDialogFont
Font to use for the components |
protected org.eclipse.swt.custom.CLabel |
mErrorMessageLabel
Label to display a warning or warning |
protected MainView |
mGeebossGui
GUI to access some methods |
protected org.eclipse.swt.widgets.Composite |
mParent
Parent of the composite |
protected static PropertyChangeManager |
mPropertyChangeManager
The PropertyChangeManager holds a temp state of the made settings |
protected org.eclipse.swt.widgets.Button |
mRestore
Restore button |
Constructor Summary | |
---|---|
protected |
PropertyPage(org.eclipse.swt.widgets.Composite parent,
GeebossContainer container)
Instantiates a new PropertyPage |
protected |
PropertyPage(org.eclipse.swt.widgets.Composite parent,
MainView geebossGui)
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 |
GeebossContainer |
getContainer()
Getter for container |
static PropertyChangeManager |
getPropertyChangeManager()
|
protected abstract void |
initComponents()
Init all components |
static void |
initPropertyChangeManager(MainView geebossGui)
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(java.lang.String errorMessage)
Set / unset the warning message on the dialog |
protected void |
setRestoreButtonState(boolean enabled)
Enable / Disable the "Restore"-Button |
protected void |
setWarningMessage(java.lang.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 mPropertyChangeManager
protected org.eclipse.swt.widgets.Button mApply
protected org.eclipse.swt.widgets.Composite mComposite
protected org.eclipse.swt.graphics.Font mDialogFont
protected org.eclipse.swt.custom.CLabel mErrorMessageLabel
protected org.eclipse.swt.widgets.Composite mParent
protected org.eclipse.swt.widgets.Button mRestore
protected MainView mGeebossGui
Constructor Detail |
---|
protected PropertyPage(org.eclipse.swt.widgets.Composite parent, GeebossContainer container)
parent
- Composite's parentcontainer
- the geeboss containerprotected PropertyPage(org.eclipse.swt.widgets.Composite parent, MainView geebossGui)
parent
- Composite's parentgeebossGui
- To access some methodsMethod Detail |
---|
public GeebossContainer getContainer()
public static PropertyChangeManager getPropertyChangeManager()
public static void initPropertyChangeManager(MainView geebossGui)
geebossGui
- 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(java.lang.String errorMessage)
errorMessage
- The warning message or NULL for no warningprotected void setRestoreButtonState(boolean enabled)
enabled
- true for enabledprotected void setWarningMessage(java.lang.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 |