Class LnTcpPreferences
- java.lang.Object
-
- jmri.beans.UnboundBean
-
- jmri.beans.Bean
-
- jmri.beans.PreferencesBean
-
- jmri.jmrix.loconet.loconetovertcp.LnTcpPreferences
-
- All Implemented Interfaces:
BeanInterface
,PropertyChangeFirer
,PropertyChangeProvider
public class LnTcpPreferences extends PreferencesBean
Preferences for the LocoNet over TCP server.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PORT
-
Fields inherited from class jmri.beans.PreferencesBean
DIRTY, RESTART_REQUIRED
-
Fields inherited from class jmri.beans.Bean
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description LnTcpPreferences()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LnTcpPreferences
getDefault()
int
getPort()
Get the port used by the LocoNetOverTCP server.(package private) boolean
isPreferencesValid()
void
savePreferences()
void
setPort(int value)
Set the port used by the LocoNetOverTCP server.-
Methods inherited from class jmri.beans.PreferencesBean
firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getProfile, isDirty, isRestartRequired, setIsDirty, setRestartRequired
-
Methods inherited from class jmri.beans.Bean
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, isNotifyOnEDT, removePropertyChangeListener, removePropertyChangeListener
-
Methods inherited from class jmri.beans.UnboundBean
getIndexedProperty, getProperty, getPropertyNames, hasIndexedProperty, hasProperty, setIndexedProperty, setProperty
-
-
-
-
Field Detail
-
PORT
public static final java.lang.String PORT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LnTcpPreferences
public LnTcpPreferences()
-
-
Method Detail
-
getDefault
public static LnTcpPreferences getDefault()
-
savePreferences
public void savePreferences()
-
isPreferencesValid
boolean isPreferencesValid()
-
getPort
public int getPort()
Get the port used by the LocoNetOverTCP server.- Returns:
- the port
-
setPort
public void setPort(int value)
Set the port used by the LocoNetOverTCP server.- Parameters:
value
- the port
-
-