Package noaa.coastwatch.gui.visual
Class VisualArray
java.lang.Object
noaa.coastwatch.gui.visual.AbstractVisualObject
noaa.coastwatch.gui.visual.VisualArray
- All Implemented Interfaces:
ComponentProducer
,VisualObject
The
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.- Since:
- 3.1.7
- Author:
- Peter Hollemans
-
Field Summary
Fields inherited from class noaa.coastwatch.gui.visual.AbstractVisualObject
VALUE_PROPERTY
-
Constructor Summary
ConstructorDescriptionVisualArray
(Object array) Creates a new visual array object using the specified array. -
Method Summary
Methods inherited from class noaa.coastwatch.gui.visual.AbstractVisualObject
addPropertyChangeListener, firePropertyChange, firePropertyChange, hasChooser, refreshComponent, setRestrictions, showChooser
-
Constructor Details
-
VisualArray
Creates a new visual array object using the specified array.
-
-
Method Details
-
getComponent
Gets the panel used to represent the array. -
getValue
Gets the array value.- Returns:
- the value that this visual object currently holds.
-
main
Tests this class.- Parameters:
argv
- the array of command line parameters.
-