Package jmri.jmris
Class AbstractServerPreferences
- java.lang.Object
-
- jmri.beans.UnboundBean
-
- jmri.beans.Bean
-
- jmri.jmris.AbstractServerPreferences
-
- All Implemented Interfaces:
BeanInterface
,PropertyChangeFirer
,PropertyChangeProvider
- Direct Known Subclasses:
JmriSRCPServerPreferences
,SimpleServerPreferences
public abstract class AbstractServerPreferences extends Bean
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.String
PORT
(package private) static java.lang.String
XML_PREFS_ELEMENT
-
Fields inherited from class jmri.beans.Bean
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description AbstractServerPreferences()
AbstractServerPreferences(java.lang.String fileName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
apply(AbstractServerPreferences prefs)
boolean
compareValuesDifferent(AbstractServerPreferences prefs)
abstract int
getDefaultPort()
int
getPort()
boolean
isDirty()
boolean
isRestartRequired()
void
load(org.jdom2.Element child)
void
openFile(java.lang.String fileName)
protected void
readPreferences(java.util.prefs.Preferences sharedPreferences)
void
save()
void
setPort(int value)
org.jdom2.Element
store()
-
Methods inherited from class jmri.beans.Bean
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, isNotifyOnEDT, removePropertyChangeListener, removePropertyChangeListener
-
Methods inherited from class jmri.beans.UnboundBean
getIndexedProperty, getProperty, getPropertyNames, hasIndexedProperty, hasProperty, setIndexedProperty, setProperty
-
-
-
-
Field Detail
-
XML_PREFS_ELEMENT
static final java.lang.String XML_PREFS_ELEMENT
- See Also:
- Constant Field Values
-
PORT
static final java.lang.String PORT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractServerPreferences
public AbstractServerPreferences(java.lang.String fileName)
-
AbstractServerPreferences
public AbstractServerPreferences()
-
-
Method Detail
-
readPreferences
protected void readPreferences(java.util.prefs.Preferences sharedPreferences)
-
load
public void load(org.jdom2.Element child)
-
compareValuesDifferent
public boolean compareValuesDifferent(AbstractServerPreferences prefs)
-
apply
public void apply(AbstractServerPreferences prefs)
-
store
public org.jdom2.Element store()
-
openFile
public final void openFile(java.lang.String fileName)
-
save
public void save()
-
isDirty
public boolean isDirty()
-
isRestartRequired
public boolean isRestartRequired()
-
getPort
public int getPort()
-
setPort
public void setPort(int value)
-
getDefaultPort
public abstract int getDefaultPort()
-
-