org.jogre.common.comm
Class CommTableProperty

java.lang.Object
  extended byorg.jogre.common.comm.CommGameMessage
      extended byorg.jogre.common.comm.CommTableMessage
          extended byorg.jogre.common.comm.CommTableProperty
All Implemented Interfaces:
ITransmittable

public class CommTableProperty
extends CommTableMessage

This class is used for sending a table property from a client to a server. The server then informs the other clients that a table property has been sent.

Version:
Alpha 0.2.3
Author:
Bob Marks

Field Summary
 
Fields inherited from class org.jogre.common.comm.CommTableMessage
NO_TABLE, tableNum, XML_ATT_TABLE_NUM
 
Fields inherited from class org.jogre.common.comm.CommGameMessage
status, username, usernameTo, XML_ATT_STATUS, XML_ATT_USERNAME, XML_ATT_USERNAME_TO
 
Constructor Summary
CommTableProperty(String key, String value)
          Constructor which takes a key and a value.
CommTableProperty(XMLElement message)
          Constructor which takes an element and reads it key and value.
 
Method Summary
 XMLElement flatten()
          Flatten to an object and set its key and value.
 String getKey()
          Return the property key.
 String getValue()
          Return the property value.
 
Methods inherited from class org.jogre.common.comm.CommTableMessage
flatten, getTableNum, setTableNum
 
Methods inherited from class org.jogre.common.comm.CommGameMessage
getStatus, getUsername, getUsernameTo, isUsernameSet, isUsernameToSet, setUsername, setUsernameTo, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommTableProperty

public CommTableProperty(String key,
                         String value)
Constructor which takes a key and a value.

Parameters:
key - Property key.
value - Property value.

CommTableProperty

public CommTableProperty(XMLElement message)
Constructor which takes an element and reads it key and value.

Parameters:
message -
Method Detail

getKey

public String getKey()
Return the property key.

Returns:

getValue

public String getValue()
Return the property value.

Returns:

flatten

public XMLElement flatten()
Flatten to an object and set its key and value.

Returns:
XML version of the state of an object which can be constructed again.
See Also:
ITransmittable.flatten()