|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.dmonix.gui.SimpleListObject
Simple list object that holds both a text and a value.
The text is the text that will be displayed in the list when is used, the
value is never shown to the user.
Copyright: Copyright (c) 2003
Company: dmonix.org
| Constructor Summary | |
SimpleListObject(java.lang.String text,
java.lang.Object value)
Creats a list object. |
|
| Method Summary | |
int |
compareTo(java.lang.Object o)
Performs a toString comparison between this object and the supplied object. |
java.lang.String |
getText()
Get the text of the object. |
java.lang.Object |
getValue()
Get the value of the object. |
void |
setText(java.lang.String text)
Set the text of the object. |
void |
setValue(java.lang.Object value)
Set the value of the object. |
java.lang.String |
toString()
Returns the text of the object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SimpleListObject(java.lang.String text,
java.lang.Object value)
text - The text of the objectvalue - The value of the object| Method Detail |
public java.lang.String getText()
public void setText(java.lang.String text)
text - The text of the objectpublic java.lang.Object getValue()
public void setValue(java.lang.Object value)
value - The value of the objectpublic java.lang.String toString()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - The object to compare to
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||