|
JAPI 0.9.0 Yet another Java API API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Prefs
Interface that is to be implemented by classes that provide preferences.
Often, implementations of this interface will subclass JComponent or JPanel. In that casegetEditComponent()
will return this
.
AbstractPrefs
provides a useful basic implementation of this interface.
Method Summary | |
---|---|
void |
apply()
Apply the changes in the UI to get into effect / be stored. |
void |
defaults()
Revert the preferences to the default values. |
JComponent |
getEditComponent()
Provide a component for editing the prefs. |
String |
getHelpText()
Provide help (HTML). |
URL |
getHelpURL()
Provide help. |
String |
getLabelText()
Provide text to be displayed as title for this prefs module. |
Icon |
getListLabelIcon()
Provide an icon to be displayed in the list where the user can choose amongst preferences. |
String |
getListLabelText()
Provide a label to be displayed in the list where the user can choose amongst preferences. |
boolean |
isChanged()
Check whether there are unsaved changes. |
void |
revert()
Revert the preferences to the previously stored settings. |
Method Detail |
---|
void apply()
void defaults()
JComponent getEditComponent()
apply()
is invoked.
String getHelpText()
getHelpURL()
returns null
.
This method may return null
as well, which means that this prefs does not provide any help.
null
URL getHelpURL()
null
in which case the method getHelpText()
will be queried instead.
null
String getLabelText()
Icon getListLabelIcon()
null
if no icon is availableString getListLabelText()
boolean isChanged()
true
if there are unsaved changes, otherwise false
void revert()
|
JAPI Yet another Java API API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |