com.pcauto.gui.table
Class TestEntity

java.lang.Object
  extended bycom.pcauto.gui.table.TestEntity

public class TestEntity
extends java.lang.Object

The TestEntity represents an entity in a table and is used by the TableTestBed to test the functionality of the EntityTable, EntityTableColumnModel, and the EntityList. This class is an example of how an entity could be implemented.

An entity is just an Object that facilitates row rendering. Each cell in this TestEntity is associated with one column in the TestColumnTableColumnModel which is specified by the AbstractEntityTableColumnModel.


Constructor Summary
TestEntity()
          Constructs a new TestEntity.
TestEntity(java.lang.String key, java.lang.String sval, java.lang.Boolean bval, java.lang.String discreteval)
          Constructs a new TestEntity with all the column values specified.
 
Method Summary
 java.lang.Boolean getBooleanval()
          Returns the value of the Booleanval column.
 java.lang.String getDiscreteval()
          Returns the value of the Discreteval column.
 java.lang.String getKey()
          Returns the value of the key column.
 java.lang.String getStringval()
          Returns the value of the Stringval column.
 void setBooleanval(java.lang.Boolean booleanval)
          Sets the value of the Booleanval column.
 void setDiscreteval(java.lang.String discreteval)
          Sets the value of the Discreteval column.
 void setKey(java.lang.String key)
          Sets the value of the key column.
 void setStringval(java.lang.String stringval)
          Sets the value of the Stringval column.
 java.lang.String toString()
          Returns a string representation of the entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestEntity

public TestEntity()
Constructs a new TestEntity.


TestEntity

public TestEntity(java.lang.String key,
                  java.lang.String sval,
                  java.lang.Boolean bval,
                  java.lang.String discreteval)
Constructs a new TestEntity with all the column values specified.

Parameters:
key - a String column value
sval - a String column value
bval - a Boolean column value
discreteval - a String column value
Method Detail

toString

public java.lang.String toString()
Returns a string representation of the entity.

Returns:
the string representation

getKey

public java.lang.String getKey()
Returns the value of the key column.

Returns:
the value of the key column

setKey

public void setKey(java.lang.String key)
Sets the value of the key column.

Parameters:
key - the new value of the key column

getStringval

public java.lang.String getStringval()
Returns the value of the Stringval column.

Returns:
the value of the Stringval column

setStringval

public void setStringval(java.lang.String stringval)
Sets the value of the Stringval column.

Parameters:
stringval - the new value of the Stringval column

getBooleanval

public java.lang.Boolean getBooleanval()
Returns the value of the Booleanval column.

Returns:
the value of the Booleanval column

setBooleanval

public void setBooleanval(java.lang.Boolean booleanval)
Sets the value of the Booleanval column.

Parameters:
booleanval - the new value of the Booleanval column

getDiscreteval

public java.lang.String getDiscreteval()
Returns the value of the Discreteval column.

Returns:
the value of the Discreteval column

setDiscreteval

public void setDiscreteval(java.lang.String discreteval)
Sets the value of the Discreteval column.

Parameters:
discreteval - the new value of the Discreteval column