Package jmri.jmrit.withrottle
Class WiThrottlePreferences
- java.lang.Object
-
- jmri.jmrit.withrottle.AbstractWiThrottlePreferences
-
- jmri.jmrit.withrottle.WiThrottlePreferences
-
public class WiThrottlePreferences extends AbstractWiThrottlePreferences
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WiThrottlePreferences.Initializer
-
Nested classes/interfaces inherited from class jmri.jmrit.withrottle.AbstractWiThrottlePreferences
AbstractWiThrottlePreferences.AbstractWiThrottlePreferencesXml
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_PORT
-
Constructor Summary
Constructors Constructor Description WiThrottlePreferences()
WiThrottlePreferences(java.lang.String fileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(WiThrottlePreferences prefs)
boolean
compareValuesDifferent(WiThrottlePreferences prefs)
int
getEStopDelay()
int
getPort()
boolean
isAllowConsist()
boolean
isAllowRoute()
boolean
isAllowTrackPower()
boolean
isAllowTurnout()
boolean
isAllowTurnoutCreation()
boolean
isDirty()
boolean
isDisplayFastClock()
boolean
isExclusiveUseOfAddress()
boolean
isRestartRequired()
boolean
isUseEStop()
boolean
isUseMomF2()
boolean
isUseWiFiConsist()
void
load(org.jdom2.Element child)
void
setAllowConsist(boolean value)
void
setAllowRoute(boolean value)
void
setAllowTrackPower(boolean value)
void
setAllowTurnout(boolean value)
void
setAllowTurnoutCreation(boolean value)
void
setDisplayFastClock(boolean value)
void
setEStopDelay(int value)
void
setExclusiveUseOfAddress(boolean value)
void
setPort(int value)
void
setUseEStop(boolean value)
void
setUseMomF2(boolean value)
void
setUseWiFiConsist(boolean value)
org.jdom2.Element
store()
-
Methods inherited from class jmri.jmrit.withrottle.AbstractWiThrottlePreferences
openFile, save
-
-
-
-
Field Detail
-
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WiThrottlePreferences
public WiThrottlePreferences(java.lang.String fileName)
-
WiThrottlePreferences
public WiThrottlePreferences()
-
-
Method Detail
-
load
public void load(@Nonnull org.jdom2.Element child)
- Specified by:
load
in classAbstractWiThrottlePreferences
-
compareValuesDifferent
public boolean compareValuesDifferent(WiThrottlePreferences prefs)
-
apply
public void apply(WiThrottlePreferences prefs)
-
store
public org.jdom2.Element store()
- Specified by:
store
in classAbstractWiThrottlePreferences
-
isDirty
public boolean isDirty()
-
isRestartRequired
public boolean isRestartRequired()
-
isUseEStop
public boolean isUseEStop()
-
setUseEStop
public void setUseEStop(boolean value)
-
getEStopDelay
public int getEStopDelay()
-
setEStopDelay
public void setEStopDelay(int value)
-
isUseMomF2
public boolean isUseMomF2()
-
setUseMomF2
public void setUseMomF2(boolean value)
-
isExclusiveUseOfAddress
public boolean isExclusiveUseOfAddress()
-
setExclusiveUseOfAddress
public void setExclusiveUseOfAddress(boolean value)
-
getPort
public int getPort()
-
setPort
public void setPort(int value)
-
isAllowTrackPower
public boolean isAllowTrackPower()
-
setAllowTrackPower
public void setAllowTrackPower(boolean value)
-
isAllowTurnout
public boolean isAllowTurnout()
-
setAllowTurnout
public void setAllowTurnout(boolean value)
-
isAllowTurnoutCreation
public boolean isAllowTurnoutCreation()
-
setAllowTurnoutCreation
public void setAllowTurnoutCreation(boolean value)
-
isAllowRoute
public boolean isAllowRoute()
-
setAllowRoute
public void setAllowRoute(boolean value)
-
isAllowConsist
public boolean isAllowConsist()
-
setAllowConsist
public void setAllowConsist(boolean value)
-
isUseWiFiConsist
public boolean isUseWiFiConsist()
-
setUseWiFiConsist
public void setUseWiFiConsist(boolean value)
-
isDisplayFastClock
public boolean isDisplayFastClock()
-
setDisplayFastClock
public void setDisplayFastClock(boolean value)
-
-