Constructor and Description |
---|
IntegerSpinner(org.eclipse.swt.widgets.Composite parent)
Initializes the object and adds the widget to the given parent
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.widgets.Control |
getControl()
Returns the Text control widget wrapped in this RealSpinner instance
|
java.lang.String |
getName()
Getter method for the name.
|
java.lang.Integer |
getValue()
Returns the real input value
|
void |
listen(ISpinnerListener listener)
Adds a RealSpinnerListener to its listeners list to be notified of
changes to the value
|
void |
setBounds(java.lang.Integer minimum,
java.lang.Integer maximum)
Sets the minimum and maximum bounds (inclusive)
|
void |
setName(java.lang.String name)
Setter method for the name.
|
void |
setValue(java.lang.Integer value)
Replaces the value with the given number
|
void |
setVisible(boolean visible)
Sets the spinner's visibility.
|
public IntegerSpinner(org.eclipse.swt.widgets.Composite parent)
Initializes the object and adds the widget to the given parent
parent
- The parent of the new RealSpinner
public void setValue(java.lang.Integer value)
Replaces the value with the given number
public java.lang.Integer getValue()
Returns the real input value
public void setBounds(java.lang.Integer minimum, java.lang.Integer maximum)
Sets the minimum and maximum bounds (inclusive)
public void listen(ISpinnerListener listener)
public org.eclipse.swt.widgets.Control getControl()
getControl
in interface ISpinner<java.lang.Integer>
public java.lang.String getName()
public void setName(java.lang.String name)
public void setVisible(boolean visible)
setVisible
in interface ISpinner<java.lang.Integer>
visible
- If false, the spinner's text widget will not be drawn.
Otherwise, the text box will be made visible.