public class VisualString extends AbstractVisualObject
VisualString
class represents a string as a text
field. When the text field is modified, the string changes value.VALUE_PROPERTY
Constructor and Description |
---|
VisualString(java.lang.String text)
Creates a new visual string object using the specified String.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Component |
getComponent()
Gets the field used to represent the string.
|
java.lang.Object |
getValue()
Gets the string value.
|
static void |
main(java.lang.String[] argv)
Tests this class.
|
addPropertyChangeListener, firePropertyChange, firePropertyChange, hasChooser, refreshComponent, setRestrictions, showChooser
public VisualString(java.lang.String text)
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.