public interface IPreferencesController
BasePreferencesController
for a base implementation.Modifier and Type | Interface and Description |
---|---|
static interface |
IPreferencesController.FurtherActionListener
An interface used by observers interested in knowing when a preference
has been altered that requires the application to be restarted or the
project to be reloaded.
|
Modifier and Type | Method and Description |
---|---|
void |
addFurtherActionListener(IPreferencesController.FurtherActionListener listener)
Add a listener
|
java.awt.Component |
getGui()
Get the GUI (the "view") controlled by this controller.
|
default java.lang.Class<? extends IPreferencesController> |
getParentViewClass()
Get the parent view in the view tree.
|
boolean |
isReloadRequired()
Returns whether a preference has been altered such as to require the
project to be reloaded.
|
boolean |
isRestartRequired()
Returns whether a preference has been altered such as to require the
application to be restarted.
|
void |
persist()
Commit changes.
|
void |
removeFurtherActionListener(IPreferencesController.FurtherActionListener listener)
Remove a listener
|
void |
restoreDefaults()
Restore preferences controlled by this view to their default state.
|
java.lang.String |
toString()
Implementors should override this to return the name of the view as shown in the view tree.
|
void |
undoChanges()
Restore preferences controlled by this view to their current persisted
state.
|
default boolean |
validate()
Validate the current preferences.
|
void addFurtherActionListener(IPreferencesController.FurtherActionListener listener)
void removeFurtherActionListener(IPreferencesController.FurtherActionListener listener)
boolean isRestartRequired()
boolean isReloadRequired()
java.lang.String toString()
toString
in class java.lang.Object
java.awt.Component getGui()
default java.lang.Class<? extends IPreferencesController> getParentViewClass()
void persist()
default boolean validate()
When validation fails, implementors should not raise dialogs; instead they should offer feedback within the view GUI.
void undoChanges()
void restoreDefaults()