Package jmri.jmrit.throttle
Class ThrottlesPreferences
java.lang.Object
jmri.jmrit.throttle.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 an AddressListener.booleanbooleanisDirty()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanCheck if function icons are in use.booleanbooleanbooleanvoidload(org.jdom2.Element e) voidRemove an AddressListener.voidsave()voidvoidsetAutoLoad(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
-
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
-
getThrottlesKeyboardControls
- Returns:
- the throttles keyboard controls preferences
-
setThrottlesKeyboardControls
Set the throttles keyboard controls preferences- Parameters:
tpwkc- the new keyboard preferences
-
addPropertyChangeListener
Add an AddressListener. AddressListeners are notified when the user selects a new address and when a Throttle is acquired for that address.- Parameters:
l- listener to add.
-
removePropertyChangeListener
Remove an AddressListener.- Parameters:
l- listener to remove.
-