public class VisualChoice extends AbstractVisualObject
VisualChoice
class represents a value choice as a
combo box. When the combo box selection is modified, the value is
changed.VALUE_PROPERTY
Constructor and Description |
---|
VisualChoice(java.lang.Object value)
Creates a new visual choice object using the specified value.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Component |
getComponent()
Gets the field used to represent the string.
|
java.lang.Object |
getValue()
Gets the choice value value.
|
static void |
main(java.lang.String[] argv)
Tests this class.
|
void |
setRestrictions(java.lang.Object restrict)
Sets restrictions on the allowed choice values.
|
addPropertyChangeListener, firePropertyChange, firePropertyChange, hasChooser, refreshComponent, showChooser
public VisualChoice(java.lang.Object value)
public java.awt.Component getComponent()
public java.lang.Object getValue()
public void setRestrictions(java.lang.Object restrict)
setRestrictions
in interface VisualObject
setRestrictions
in class AbstractVisualObject
restrict
- the List
of values that are allowed.public static void main(java.lang.String[] argv)
argv
- the array of command line parameters.