|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.pcauto.gui.table.TestEntity
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 |
public TestEntity()
public TestEntity(java.lang.String key, java.lang.String sval, java.lang.Boolean bval, java.lang.String discreteval)
key
- a String column valuesval
- a String column valuebval
- a Boolean column valuediscreteval
- a String column valueMethod Detail |
public java.lang.String toString()
public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- the new value of the key columnpublic java.lang.String getStringval()
public void setStringval(java.lang.String stringval)
stringval
- the new value of the Stringval columnpublic java.lang.Boolean getBooleanval()
public void setBooleanval(java.lang.Boolean booleanval)
booleanval
- the new value of the Booleanval columnpublic java.lang.String getDiscreteval()
public void setDiscreteval(java.lang.String discreteval)
discreteval
- the new value of the Discreteval column
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |