be.lassi.lanbox
Class ConnectionPreferences
java.lang.Object
com.jgoodies.binding.beans.Model
be.lassi.preferences.DefaultPreferences
be.lassi.lanbox.ConnectionPreferences
- All Implemented Interfaces:
- Preferences, com.jgoodies.binding.beans.Observable, java.io.Serializable
public class ConnectionPreferences
- extends DefaultPreferences
Properties of a lanbox connection.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
ENABLED
|
static java.lang.String |
HOST
|
static java.lang.String |
PASSWORD
|
static java.lang.String |
PORT
|
static java.lang.String |
UDP_PORT
|
Methods inherited from class be.lassi.preferences.DefaultPreferences |
add, get, getBoolean, getDescription, getFloat, getInt, getKeys, getName, getString, set, set |
Methods inherited from class com.jgoodies.binding.beans.Model |
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENABLED
public static final java.lang.String ENABLED
- See Also:
- Constant Field Values
HOST
public static final java.lang.String HOST
- See Also:
- Constant Field Values
PASSWORD
public static final java.lang.String PASSWORD
- See Also:
- Constant Field Values
PORT
public static final java.lang.String PORT
- See Also:
- Constant Field Values
UDP_PORT
public static final java.lang.String UDP_PORT
- See Also:
- Constant Field Values
ConnectionPreferences
public ConnectionPreferences()
- Constructs a new instance.
getErrorCount
public IntHolder getErrorCount()
- Gets the value holder for the error count.
- Returns:
- the error count value holder
getHost
public java.lang.String getHost()
- Gets the lanbox host name.
- Returns:
- the lanbox host name
getIntPort
public int getIntPort()
getIntUdpPort
public int getIntUdpPort()
getPassword
public java.lang.String getPassword()
- Gets the lanbox password.
- Returns:
- the lanbox password
getPort
public java.lang.String getPort()
- Gets the lanbox port number.
- Returns:
- the lanbox port number
getStatusText
public Holder<java.lang.String> getStatusText()
- Gets text message with status of connection to lanbox.
- Returns:
- connection status message
getUdpPort
public java.lang.String getUdpPort()
- Gets the lanbox UDP port number.
- Returns:
- the lanbox UDP port number
isEnabled
public boolean isEnabled()
- Indicates whether the connection is enabled.
- Returns:
- true if the connection is enabled
isOpen
public boolean isOpen()
- Indicates whether the connection is open.
- Returns:
- true if the connection is open
setEnabled
public void setEnabled(boolean enabled)
setHost
public void setHost(java.lang.String host)
setPassword
public void setPassword(java.lang.String password)
setPort
public void setPort(java.lang.String port)
setUdpPort
public void setUdpPort(java.lang.String udpPort)