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
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
FieldsModifier and TypeFieldDescriptionstatic final StringPreferences name in profile.properties and property to subscribe to notification changes for.static final StringPreferences name in profile.properties and property to subscribe to notification changes for.static final StringPreferences name in profile.properties and property to subscribe to notification changes for.static final StringPreferences name in profile.properties and property to subscribe to notification changes for.Fields inherited from class jmri.beans.PreferencesBean
DIRTY, RESTART_REQUIREDFields inherited from class jmri.beans.Bean
propertyChangeSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanvoidsavePreferences(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, setRestartRequiredMethods inherited from class jmri.beans.Bean
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, isNotifyOnEDT, removePropertyChangeListener, removePropertyChangeListenerMethods inherited from class jmri.beans.UnboundBean
getIndexedProperty, getProperty, getPropertyNames, hasIndexedProperty, hasProperty, setIndexedProperty, setProperty
-
Field Details
-
USE_IP_V4
Preferences name in profile.properties and property to subscribe to notification changes for."useIPv4"
- See Also:
-
USE_IP_V6
Preferences name in profile.properties and property to subscribe to notification changes for."useIPv6"
- See Also:
-
USE_LOOPBACK
Preferences name in profile.properties and property to subscribe to notification changes for."useLoopback"
- See Also:
-
USE_LINK_LOCAL
Preferences name in profile.properties and property to subscribe to notification changes for."useLinkLocal"
- See Also:
-
-
Constructor Details
-
ZeroConfPreferences
-
-
Method Details
-
isUseIPv4
-
setUseIPv4
-
isUseIPv6
-
setUseIPv6
-
isUseLoopback
-
setUseLoopback
-
isUseLinkLocal
-
setUseLinkLocal
-
savePreferences
-