public class VisualArray extends AbstractVisualObject
VisualArray
class represents an array as a list
with a text field, and add/remove buttons. When the add button is
pressed, the contents of the text field are added to the list.
When the remove button is pressed, the highlighted items in the
list are removed. The visual array supports arrays of primitive
types, and String
objects.VALUE_PROPERTY
Constructor and Description |
---|
VisualArray(java.lang.Object array)
Creates a new visual array object using the specified array.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Component |
getComponent()
Gets the panel used to represent the array.
|
java.lang.Object |
getValue()
Gets the array value.
|
static void |
main(java.lang.String[] argv)
Tests this class.
|
addPropertyChangeListener, firePropertyChange, firePropertyChange, hasChooser, refreshComponent, setRestrictions, showChooser
public VisualArray(java.lang.Object array)
public java.awt.Component getComponent()
public java.lang.Object getValue()
public static void main(java.lang.String[] argv)
argv
- the array of command line parameters.