public abstract class PropertyPage
extends java.lang.Object
PropertyPage
interface lets client introduce new property
pages for setting IDE and project preferences.Constructor and Description |
---|
PropertyPage() |
Modifier and Type | Method and Description |
---|---|
abstract GUIPanel |
getGUI()
Get the root graphical user interface component.
|
java.lang.String[] |
getKeys()
Get the property keys this property page uses in the preferences object.
|
void |
onEntry(java.util.prefs.Preferences preferences,
Context context)
Method called when this page is selected by the user.
|
void |
onExit(java.util.prefs.Preferences preferences,
Context context)
Method called when users leave this page for another page
and when they press the dialog's OK button.
|
public abstract GUIPanel getGUI()
public void onEntry(java.util.prefs.Preferences preferences, Context context)
preferences
object.preferences
- The data used to initialize the GUI.context
- The current Context
.public void onExit(java.util.prefs.Preferences preferences, Context context) throws InvalidPropertyException
preferences
object.It's the responsibility of an implementing IDE to take care of ensuring that preference changes are only persisted if the user confirms the changes (e.g. by clicking the OK button vs. the Cancel button in a dialog).
preferences
- The data used to initialize the GUI.context
- The current Context
.InvalidPropertyException
- This exception is thrown when the
user tries to leave the page and the information entered does not
validate.public java.lang.String[] getKeys()