Package jmri.util.zeroconf
Class ZeroConfPreferences
- java.lang.Object
-
- jmri.beans.UnboundBean
-
- jmri.beans.Bean
-
- jmri.beans.PreferencesBean
-
- jmri.util.zeroconf.ZeroConfPreferences
-
- All Implemented Interfaces:
BeanInterface,PropertyChangeFirer,PropertyChangeProvider
public class ZeroConfPreferences extends PreferencesBean
Preferences manager for ZeroConf networking.NOTE: preferences are immediately changed and stored when set, although not all code that reads these preferences responds to changes in the preferences immediately.
NOTE: these preferences apply to all JMRI applications and all profiles on the computer on which they are set.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringUSE_IP_V4Preferences name in profile.properties and property to subscribe to notification changes for.static java.lang.StringUSE_IP_V6Preferences name in profile.properties and property to subscribe to notification changes for.static java.lang.StringUSE_LINK_LOCALPreferences name in profile.properties and property to subscribe to notification changes for.static java.lang.StringUSE_LOOPBACKPreferences name in profile.properties and property to subscribe to notification changes for.-
Fields inherited from class jmri.beans.PreferencesBean
DIRTY, RESTART_REQUIRED
-
Fields inherited from class jmri.beans.Bean
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description ZeroConfPreferences(Profile profile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisUseIPv4()booleanisUseIPv6()booleanisUseLinkLocal()booleanisUseLoopback()voidsavePreferences(Profile profile)voidsetUseIPv4(boolean useIPv4)voidsetUseIPv6(boolean useIPv6)voidsetUseLinkLocal(boolean useLinkLocal)voidsetUseLoopback(boolean useLoopback)-
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
-
USE_IP_V4
public static final java.lang.String USE_IP_V4
Preferences name in profile.properties and property to subscribe to notification changes for."useIPv4"
- See Also:
- Constant Field Values
-
USE_IP_V6
public static final java.lang.String USE_IP_V6
Preferences name in profile.properties and property to subscribe to notification changes for."useIPv6"
- See Also:
- Constant Field Values
-
USE_LOOPBACK
public static final java.lang.String USE_LOOPBACK
Preferences name in profile.properties and property to subscribe to notification changes for."useLoopback"
- See Also:
- Constant Field Values
-
USE_LINK_LOCAL
public static final java.lang.String USE_LINK_LOCAL
Preferences name in profile.properties and property to subscribe to notification changes for."useLinkLocal"
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ZeroConfPreferences
public ZeroConfPreferences(Profile profile)
-
-
Method Detail
-
isUseIPv4
public boolean isUseIPv4()
-
setUseIPv4
public void setUseIPv4(boolean useIPv4)
-
isUseIPv6
public boolean isUseIPv6()
-
setUseIPv6
public void setUseIPv6(boolean useIPv6)
-
isUseLoopback
public boolean isUseLoopback()
-
setUseLoopback
public void setUseLoopback(boolean useLoopback)
-
isUseLinkLocal
public boolean isUseLinkLocal()
-
setUseLinkLocal
public void setUseLinkLocal(boolean useLinkLocal)
-
savePreferences
public void savePreferences(Profile profile)
-
-