|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.autodesk.ui.ChoiceItem
public class ChoiceItem
This class simply maintains items for a JComboBox. The label and values may be different and this class provides a way to maintain them both as a single item.
| Constructor Summary | |
|---|---|
ChoiceItem(java.lang.String label,
java.lang.String value)
Create a choice item. |
|
| Method Summary | |
|---|---|
java.lang.String |
getValue()
Returns the value for the item. |
java.lang.String |
toString()
Returns the label. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ChoiceItem(java.lang.String label,
java.lang.String value)
label - The label on the item.value - The value returned for the item. This may be null in
which case the label is returned.| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||