com.autodesk.ui
Class ChoiceItem

java.lang.Object
  extended by com.autodesk.ui.ChoiceItem

public class ChoiceItem
extends java.lang.Object

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

ChoiceItem

public ChoiceItem(java.lang.String label,
                  java.lang.String value)
Create a choice item.

Parameters:
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

toString

public java.lang.String toString()
Returns the label.

Overrides:
toString in class java.lang.Object

getValue

public java.lang.String getValue()
Returns the value for the item. This may be the same as the label if no value was specified when the ChoiceItem was constructed.