Class marimba.gui.SpinBoxWidget
All Packages Class Hierarchy This Package Previous Next Index
Class marimba.gui.SpinBoxWidget
java.lang.Object
|
+----marimba.gui.Widget
|
+----marimba.gui.ValueWidget
|
+----marimba.gui.SpinBoxWidget
- public class SpinBoxWidget
- extends ValueWidget
- implements TimerClient
A SpinBox accepts a limited set of dicrete ordered input values
that make up a circular loop. A SpinBox is a combination of a
TextBox and a pair of buttons (an up-down control).
- Version:
- 1.22, 01/13/97
- Author:
- Klaas Waslander
-
align
- The value can be displayed at the right, left or centered.
-
alignOptions
- The possible options for the alignment.
-
fillMode
- The fillmode of the SpinBox: none, left, right or filled.
-
fillOptions
- The possible options for the fillMode.
-
pressedButton
- The button that has been pressed: UP, DOWN or NONE.
-
spin
- The textbox used to display the spinbox.
-
trackAll
- If true, action() is called by SpinTextBoxWidget
after every change of the value.
-
SpinBoxWidget()
- Default constructor.
-
disable(boolean)
- When this widget is disabled, the SpinBoxTextWidget is disabled.
-
getAlign()
- Get align.
-
getAlignOptions()
- Get the possible options for the alignment.
-
getChildProperties(PropertyList)
- Get the properties for the children of this widget.
-
getFillMode()
- Check what the ListBoxWidget fills.
-
getFillOptions()
- Get the possible options for the fillMode.
-
getProperties(PropertyList)
- Get the properties of this widget.
-
getSpinBoxTextWidget()
- Get the textWidget that is used for the SpinBox.
-
handleEvent(Event)
- Handle user events.
-
layout()
- Reshape the SpinBoxTextWidget to the correct size.
-
newTextBox()
- Creates a new SpinBoxTextWidget.
-
setAlign(int)
- Set align.
-
setFillMode(int)
- Let the SpinBoxWidget fill something.
-
setProperties(PropertyList)
- Set the properties of this widget.
-
setTrackAll(boolean)
- Let the spinBox call action() after every change of the
value or only once.
-
setValue(int)
- Set the current value.
-
tick(long, Object)
- Auto repeat.
-
tracksAll()
- Check if all changes of the value are being tracked.
align
public int align
- The value can be displayed at the right, left or centered.
- See Also:
- getAlign, setAlign, alignOptions
alignOptions
public static Options alignOptions
- The possible options for the alignment.
- See Also:
- getAlignOptions, align
fillMode
public int fillMode
- The fillmode of the SpinBox: none, left, right or filled.
This means it can fill the content, the buttons or both.
The SpinBox is not transparent if it is filled and the
buttons are filled too.
- See Also:
- getFillMode, setFillMode, WidgetConstants
fillOptions
public static Options fillOptions
- The possible options for the fillMode.
- See Also:
- getFillOptions, fillMode
trackAll
public boolean trackAll
- If true, action() is called by SpinTextBoxWidget
after every change of the value.
Otherwise action() is only called when the
(mouse)button is released.
- See Also:
- tracksAll, setTrackAll
spin
public SpinBoxTextWidget spin
- The textbox used to display the spinbox.
- See Also:
- getSpinBoxTextWidget, newTextBox
pressedButton
public int pressedButton
- The button that has been pressed: UP, DOWN or NONE.
SpinBoxWidget
public SpinBoxWidget()
- Default constructor.
getProperties
public void getProperties(PropertyList list)
- Get the properties of this widget.
- Overrides:
- getProperties in class ValueWidget
getChildProperties
public void getChildProperties(PropertyList list)
- Get the properties for the children of this widget.
- Overrides:
- getChildProperties in class Widget
setProperties
public void setProperties(PropertyList list)
- Set the properties of this widget.
- Overrides:
- setProperties in class ValueWidget
getAlignOptions
public Options getAlignOptions()
- Get the possible options for the alignment.
- See Also:
- alignOptions
getAlign
public int getAlign()
- Get align.
- See Also:
- align
setAlign
public void setAlign(int align)
- Set align.
- See Also:
- align
getFillOptions
public Options getFillOptions()
- Get the possible options for the fillMode.
- See Also:
- fillOptions
getFillMode
public int getFillMode()
- Check what the ListBoxWidget fills.
- See Also:
- fillMode
setFillMode
public void setFillMode(int fillMode)
- Let the SpinBoxWidget fill something.
- See Also:
- fillMode
tracksAll
public boolean tracksAll()
- Check if all changes of the value are being tracked.
- See Also:
- trackAll
setTrackAll
public void setTrackAll(boolean trackAll)
- Let the spinBox call action() after every change of the
value or only once.
- See Also:
- trackAll
disable
public void disable(boolean disabled)
- When this widget is disabled, the SpinBoxTextWidget is disabled.
- Overrides:
- disable in class Widget
setValue
public void setValue(int value)
- Set the current value. If the value is < minValue
the value is set to maxValue, if the value is > maxValue
the value is set to minValue.
- Overrides:
- setValue in class ValueWidget
getSpinBoxTextWidget
public SpinBoxTextWidget getSpinBoxTextWidget()
- Get the textWidget that is used for the SpinBox.
- See Also:
- spin
newTextBox
protected void newTextBox()
- Creates a new SpinBoxTextWidget.
- See Also:
- spin
layout
public void layout()
- Reshape the SpinBoxTextWidget to the correct size.
- Overrides:
- layout in class Widget
handleEvent
public boolean handleEvent(Event evt)
- Handle user events.
- Overrides:
- handleEvent in class Widget
tick
public long tick(long tm,
Object arg)
- Auto repeat.
- Overrides:
- tick in class Widget
All Packages Class Hierarchy This Package Previous Next Index