net.bluebones.boggle
Class ConnectionType

java.lang.Object
  extended by net.bluebones.boggle.ConnectionType

public class ConnectionType
extends Object

Typesafe enum for connection types.

Version:
0.3 $Revision: 1.3 $
Author:
Thomas David Baker, bakert@gmail.com>

Field Summary
static ConnectionType CLIENT
          Connection type representing being the host of a game.
static ConnectionType CONNECTING
          Connection type representing connecting to another machine.
static ConnectionType HOST
          Connection type representing being the client in a game.
static ConnectionType NONE
          Connection type representing no connection.
 
Method Summary
 int id()
          Gets the id of this ConnectionType.
 ImageIcon image()
          Gets the image that represents this ConnectionType.
 String toString()
          Gets a String representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final ConnectionType NONE
Connection type representing no connection.


CLIENT

public static final ConnectionType CLIENT
Connection type representing being the host of a game.


HOST

public static final ConnectionType HOST
Connection type representing being the client in a game.


CONNECTING

public static final ConnectionType CONNECTING
Connection type representing connecting to another machine.

Method Detail

id

public int id()
Gets the id of this ConnectionType.

Returns:
int id of this ConnectionType.

image

public ImageIcon image()
Gets the image that represents this ConnectionType.

Returns:
ImageIcon that represents this ConnectionType.

toString

public String toString()
Gets a String representation of this object.

Overrides:
toString in class Object
Returns:
String representation of this object.