Package jmri.jmrit.throttle.preferences
Class ThrottlesPreferences
java.lang.Object
jmri.jmrit.throttle.preferences.ThrottlesPreferences
- All Implemented Interfaces:
InstanceManagerAutoDefault
A class to store JMRI throttles preferences.
A singleton instance is provided by a call to
jmri.InstanceManager.getDefault(ThrottlesPreferences.class); or
jmri.InstanceManager.getNullableDefault(ThrottlesPreferences.class);
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classAn extension of the abstract XmlFile. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a PropertyChangeListener.booleanbooleanbooleanisDirty()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanCheck if function icons are in use.booleanbooleanbooleanvoidload(org.jdom2.Element e) voidRemove a PropertyChangeListener.voidsave()voidvoidsetAddressSelectorShowingAllRosterGroup(boolean b) voidsetAutoLoad(boolean b) voidvoidsetEnableRosterSearch(boolean b) voidsetHideSpeedStepSelector(boolean b) voidsetHideUndefinedFuncButt(boolean b) voidsetIgnoreThrottlePosition(boolean b) voidsetResizeWindow(boolean winImg) voidsetSaveThrottleOnLayoutSave(boolean b) voidsetSilentShare(boolean b) voidsetSilentSteal(boolean b) voidSet the throttles keyboard controls preferencesvoidsetUseExThrottle(boolean exThrottle) voidsetUseLargeSpeedSlider(boolean b) voidsetUseRosterImage(boolean rosterImage) voidsetUsingFunctionIcon(boolean useFunctionIcon) voidsetUsingToolBar(boolean win4all) voidorg.jdom2.Elementstore()
-
Field Details
-
prefPopertyName
- See Also:
-
dirty
-
-
Constructor Details
-
ThrottlesPreferences
public ThrottlesPreferences()
-
-
Method Details
-
load
-
isDirty
- Returns:
- true if preferences need to be saved
-
store
-
set
-
save
-
getWindowDimension
-
setWindowDimension
-
isUsingExThrottle
-
setUseExThrottle
-
isUsingToolBar
-
setUsingToolBar
-
isUsingFunctionIcon
Check if function icons are in use.- Returns:
- user preference to use function icons.
-
setUsingFunctionIcon
-
isResizingWindow
-
setResizeWindow
-
isUsingRosterImage
-
setUseRosterImage
-
isEnablingRosterSearch
-
setEnableRosterSearch
-
setAutoLoad
-
isAutoLoading
-
setHideUndefinedFuncButt
-
isHidingUndefinedFuncButt
-
setIgnoreThrottlePosition
-
isIgnoringThrottlePosition
-
setSaveThrottleOnLayoutSave
-
isSavingThrottleOnLayoutSave
-
isSilentSteal
-
setSilentSteal
-
setUseLargeSpeedSlider
-
isUsingLargeSpeedSlider
-
setDefaultThrottleFilePath
-
getDefaultThrottleFilePath
-
isHidingSpeedStepSelector
-
setHideSpeedStepSelector
-
isAddressSelectorShowingAllRosterGroup
-
setAddressSelectorShowingAllRosterGroup
-
getThrottlesKeyboardControls
- Returns:
- the throttles keyboard controls preferences
-
setThrottlesKeyboardControls
Set the throttles keyboard controls preferences- Parameters:
tpwkc- the new keyboard preferences
-
addPropertyChangeListener
Add a PropertyChangeListener. AddressListeners are notified when the throtlle preferences are updated- Parameters:
l- listener to add.
-
removePropertyChangeListener
Remove a PropertyChangeListener.- Parameters:
l- listener to remove.
-