|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bibalex.daf.commongui.datamodels.ComboBoxDataModel.ComboBoxObject
public class ComboBoxDataModel.ComboBoxObject
This Class represents a ComboBox item. Each object has an ID (Database identifier) and not the index in the combobox list and a value that is displayed to the user.
| Field Summary | |
|---|---|
int |
id
The DataBase ID of the item. |
java.lang.String |
value
The displayed value of the item. |
| Constructor Summary | |
|---|---|
ComboBoxDataModel.ComboBoxObject(int id,
java.lang.String value)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares 2 objects, the comparison is done based on their IDs. |
java.lang.String |
toString()
Implementing the toString method overrides the one implemented in object to be able to control the displayed values in the ComboBox 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 ComboBoxDataModel.ComboBoxObject(int id,
java.lang.String value)
id - Database Identifier.value - String displayed in the ComboBox.| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.ObjectString representing the value to be displayed.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The Object used in the comparison.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||