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 boolean
compareChanged
(Object nextObj) getKey()
default boolean
loadFromAndChanged
(GuiPreferences prefs) default Object
loadFromAndToJson
(GuiPreferences prefs) default void
saveTo
(GuiPreferences prefs) void
default void
setJsonAndSaveTo
(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:
loadFromAndChanged
in 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:
saveTo
in interfaceGuiSwingPrefsSupports.Preferences
-
loadFromAndToJson
-
setJsonAndSaveTo
-