org.autoplot.dom.OptionsPrefsController

listen to an Options class and manage storage and retrieval from persistent storage.

OptionsPrefsController( org.autoplot.ApplicationModel model, org.autoplot.dom.Options options )

create a new controller with preferences for the options class.


PROP_LOADPERSISTENTPREFERENCES


copyOptionsToPersistentPreferences

copyOptionsToPersistentPreferences( ) → void

write the current options out to persistent preferences, so that they will be used next session. The prefs are stored in AUTOPLOT_DATA/config/options.preferences.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


isLoadPersistentPreferences

isLoadPersistentPreferences( ) → boolean

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]


loadPreferences

loadPreferences( ) → void

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


loadPreferencesWithEvents

loadPreferencesWithEvents( ) → void

load the preferences which persist between sessions into dom.options, firing events as they are set. Note for headless mode and non-application modes, this has no effect.

Returns:

void (returns nothing)

See Also:

loadPreferences() loadPreferences which does not fire events.


[search for examples] [view on GitHub] [view on old javadoc] [view source]


setLoadPersistentPreferences

setLoadPersistentPreferences( boolean loadPersistentPreferences ) → void

Parameters

loadPersistentPreferences - a boolean

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]