Module org.autogui
Package org.autogui.swing.prefs
Interface GuiSwingPrefsSupports.PreferencesByJsonEntry
- All Superinterfaces:
GuiSwingPrefsSupports.Preferences
- All Known Implementing Classes:
GuiSwingPrefsSupports.PreferencesForFileDialog,GuiSwingPrefsSupports.PreferencesForWindow,GuiSwingTableColumnString.PreferencesForMultilineColumn,GuiSwingTableModelCollection.PreferencesForTableColumnOrder,GuiSwingTableModelCollection.PreferencesForTableColumnOrderStatic,GuiSwingTableModelCollection.PreferencesForTableColumnWidth,GuiSwingTableModelCollection.PreferencesForTableColumnWidthStatic,GuiSwingViewCollectionTable.PreferencesForTable,GuiSwingViewObjectPane.PreferencesForSplit,GuiSwingViewTabbedPane.PreferencesForTab
- Enclosing class:
GuiSwingPrefsSupports
public static interface GuiSwingPrefsSupports.PreferencesByJsonEntry
extends GuiSwingPrefsSupports.Preferences
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancompareChanged(Object nextObj) getKey()default booleanloadFromAndChanged(GuiPreferences prefs) default ObjectloadFromAndToJson(GuiPreferences prefs) default voidsaveTo(GuiPreferences prefs) voiddefault voidsetJsonAndSaveTo(Object json, GuiPreferences prefs) toJson()Methods inherited from interface org.autogui.swing.prefs.GuiSwingPrefsSupports.Preferences
loadFrom
-
Method Details
-
getKey
String getKey() -
toJson
Object toJson() -
setJson
-
loadFromAndChanged
- Specified by:
loadFromAndChangedin interfaceGuiSwingPrefsSupports.Preferences- Parameters:
prefs- the laoding source- Returns:
- true if a part of the preferences is actually changed
-
compareChanged
- Parameters:
nextObj- a new JSON object- Returns:
- true if the nextObj changes any property
- Since:
- 1.8
-
saveTo
- Specified by:
saveToin interfaceGuiSwingPrefsSupports.Preferences
-
loadFromAndToJson
-
setJsonAndSaveTo
-