Overview  Package   Class  Tree  Index 

be.lassi.lanbox
Class ConnectionPreferences

java.lang.Object
  extended by com.jgoodies.binding.beans.Model
      extended by be.lassi.preferences.DefaultPreferences
          extended by 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
           
 
Constructor Summary
ConnectionPreferences()
          Constructs a new instance.
 
Method Summary
 IntHolder getErrorCount()
          Gets the value holder for the error count.
 java.lang.String getHost()
          Gets the lanbox host name.
 int getIntPort()
           
 int getIntUdpPort()
           
 java.lang.String getPassword()
          Gets the lanbox password.
 java.lang.String getPort()
          Gets the lanbox port number.
 Holder<java.lang.String> getStatusText()
          Gets text message with status of connection to lanbox.
 java.lang.String getUdpPort()
          Gets the lanbox UDP port number.
 boolean isEnabled()
          Indicates whether the connection is enabled.
 boolean isOpen()
          Indicates whether the connection is open.
 void setEnabled(boolean enabled)
           
 void setHost(java.lang.String host)
           
 void setPassword(java.lang.String password)
           
 void setPort(java.lang.String port)
           
 void setUdpPort(java.lang.String udpPort)
           
 
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
 

Field Detail

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
Constructor Detail

ConnectionPreferences

public ConnectionPreferences()
Constructs a new instance.

Method Detail

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)

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2