public class VisualInteger extends AbstractVisualObject
VisualInteger
class represents an Integer as a
spinner. When the spinner is modified, the Integer changes value.VALUE_PROPERTY
Constructor and Description |
---|
VisualInteger(java.lang.Integer value)
Creates a new visual Integer object using the specified Integer.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Component |
getComponent()
Gets the button used to represent the Integer.
|
java.lang.Object |
getValue()
Gets the Integer value.
|
static void |
main(java.lang.String[] argv)
Tests this class.
|
void |
setRestrictions(java.lang.Object restrict)
Sets restrictions on the allowed integer values.
|
addPropertyChangeListener, firePropertyChange, firePropertyChange, hasChooser, refreshComponent, showChooser
public VisualInteger(java.lang.Integer 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 Integer[] restriction array as [min, max,
step].public static void main(java.lang.String[] argv)
argv
- the array of command line parameters.