Constructor and Description |
---|
RealSpinner(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.Double |
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.Double minimum,
java.lang.Double maximum)
Sets the minimum and maximum bounds (inclusive)
|
void |
setName(java.lang.String name)
Setter method for the name.
|
void |
setValue(java.lang.Double value)
Replaces the value with the given number
|
void |
setVisible(boolean visible)
Sets the spinner's visibility.
|
public RealSpinner(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.Double value)
Replaces the value with the given number
public java.lang.Double getValue()
ISpinner
Returns the real input value
public void setBounds(java.lang.Double minimum, java.lang.Double maximum)
ISpinner
Sets the minimum and maximum bounds (inclusive)
public void listen(ISpinnerListener listener)
ISpinner
public org.eclipse.swt.widgets.Control getControl()
ISpinner
getControl
in interface ISpinner<java.lang.Double>
public java.lang.String getName()
ISpinner
public void setName(java.lang.String name)
ISpinner
public void setVisible(boolean visible)
ISpinner
setVisible
in interface ISpinner<java.lang.Double>
visible
- If false, the spinner's text widget will not be drawn.
Otherwise, the text box will be made visible.