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

Variable Index

 o align
The value can be displayed at the right, left or centered.
 o alignOptions
The possible options for the alignment.
 o fillMode
The fillmode of the SpinBox: none, left, right or filled.
 o fillOptions
The possible options for the fillMode.
 o pressedButton
The button that has been pressed: UP, DOWN or NONE.
 o spin
The textbox used to display the spinbox.
 o trackAll
If true, action() is called by SpinTextBoxWidget after every change of the value.

Constructor Index

 o SpinBoxWidget()
Default constructor.

Method Index

 o disable(boolean)
When this widget is disabled, the SpinBoxTextWidget is disabled.
 o getAlign()
Get align.
 o getAlignOptions()
Get the possible options for the alignment.
 o getChildProperties(PropertyList)
Get the properties for the children of this widget.
 o getFillMode()
Check what the ListBoxWidget fills.
 o getFillOptions()
Get the possible options for the fillMode.
 o getProperties(PropertyList)
Get the properties of this widget.
 o getSpinBoxTextWidget()
Get the textWidget that is used for the SpinBox.
 o handleEvent(Event)
Handle user events.
 o layout()
Reshape the SpinBoxTextWidget to the correct size.
 o newTextBox()
Creates a new SpinBoxTextWidget.
 o setAlign(int)
Set align.
 o setFillMode(int)
Let the SpinBoxWidget fill something.
 o setProperties(PropertyList)
Set the properties of this widget.
 o setTrackAll(boolean)
Let the spinBox call action() after every change of the value or only once.
 o setValue(int)
Set the current value.
 o tick(long, Object)
Auto repeat.
 o tracksAll()
Check if all changes of the value are being tracked.

Variables

 o align
  public int align
The value can be displayed at the right, left or centered.
See Also:
getAlign, setAlign, alignOptions
 o alignOptions
  public static Options alignOptions
The possible options for the alignment.
See Also:
getAlignOptions, align
 o 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
 o fillOptions
  public static Options fillOptions
The possible options for the fillMode.
See Also:
getFillOptions, fillMode
 o 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
 o spin
  public SpinBoxTextWidget spin
The textbox used to display the spinbox.
See Also:
getSpinBoxTextWidget, newTextBox
 o pressedButton
  public int pressedButton
The button that has been pressed: UP, DOWN or NONE.

Constructors

 o SpinBoxWidget
  public SpinBoxWidget()
Default constructor.

Methods

 o getProperties
  public void getProperties(PropertyList list)
Get the properties of this widget.
Overrides:
getProperties in class ValueWidget
 o getChildProperties
  public void getChildProperties(PropertyList list)
Get the properties for the children of this widget.
Overrides:
getChildProperties in class Widget
 o setProperties
  public void setProperties(PropertyList list)
Set the properties of this widget.
Overrides:
setProperties in class ValueWidget
 o getAlignOptions
  public Options getAlignOptions()
Get the possible options for the alignment.
See Also:
alignOptions
 o getAlign
  public int getAlign()
Get align.
See Also:
align
 o setAlign
  public void setAlign(int align)
Set align.
See Also:
align
 o getFillOptions
  public Options getFillOptions()
Get the possible options for the fillMode.
See Also:
fillOptions
 o getFillMode
  public int getFillMode()
Check what the ListBoxWidget fills.
See Also:
fillMode
 o setFillMode
  public void setFillMode(int fillMode)
Let the SpinBoxWidget fill something.
See Also:
fillMode
 o tracksAll
  public boolean tracksAll()
Check if all changes of the value are being tracked.
See Also:
trackAll
 o setTrackAll
  public void setTrackAll(boolean trackAll)
Let the spinBox call action() after every change of the value or only once.
See Also:
trackAll
 o disable
  public void disable(boolean disabled)
When this widget is disabled, the SpinBoxTextWidget is disabled.
Overrides:
disable in class Widget
 o 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
 o getSpinBoxTextWidget
  public SpinBoxTextWidget getSpinBoxTextWidget()
Get the textWidget that is used for the SpinBox.
See Also:
spin
 o newTextBox
  protected void newTextBox()
Creates a new SpinBoxTextWidget.
See Also:
spin
 o layout
  public void layout()
Reshape the SpinBoxTextWidget to the correct size.
Overrides:
layout in class Widget
 o handleEvent
  public boolean handleEvent(Event evt)
Handle user events.
Overrides:
handleEvent in class Widget
 o tick
  public long tick(long tm,
                   Object arg)
Auto repeat.
Overrides:
tick in class Widget

All Packages  Class Hierarchy  This Package  Previous  Next  Index