|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bibalex.daf.commongui.datamodels.UIListEditableModel.ListObject
public class UIListEditableModel.ListObject
This class in used to maintain the Object in the list, an ID to identify the record and a value to be displayed are maintained.
Field Summary | |
---|---|
int |
id
The identifying value of the record, can be used later to link back to the DataTable. |
java.lang.String |
value
The displayed value in the JList. |
Constructor Summary | |
---|---|
UIListEditableModel.ListObject(int id,
java.lang.String value)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Compares 2 ListObjects, used when changing selection as the JList needs to compare old and new selected Items upon change of selection. |
java.lang.String |
toString()
Overrides the toString method of the Object, to gain control on the displayed value on the list. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int id
public java.lang.String value
Constructor Detail |
---|
public UIListEditableModel.ListObject(int id, java.lang.String value)
id
- The identifying value of the record, can be used later to link back to the DataTable.value
- The displayed value in the JList.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The ListObject to compare to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |