Class marimba.gui.CheckBoxWidget
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class marimba.gui.CheckBoxWidget

java.lang.Object
   |
   +----marimba.gui.Widget
           |
           +----marimba.gui.ButtonWidget
                   |
                   +----marimba.gui.CheckBoxWidget

public class CheckBoxWidget
extends ButtonWidget
A checkbox widget. Checkboxes support options that are either on or off; When the choice is set, a check mark appears in the box. When the choice is not set, the check box is empty. Grouping checkboxes does not prevent setting the check boxes on or off in combination; each check box's setting is typically independent of the others.
Version:
1.34, 12/09/96
Author:
Klaas Waslander

Variable Index

 o align
The current alignment.
 o alignOptions
The available options for the alignment.

Constructor Index

 o CheckBoxWidget()
Default constructor.
 o CheckBoxWidget(String, boolean)
Constructor with label

Method Index

 o getAlign()
Get the align of this button (LEFT or RIGHT).
 o getAlignOptions()
Get the possible align options.
 o getEditor()
Get the editor.
 o getProperties(PropertyList)
Get the properties of the checkbox.
 o paintButton(Graphics)
Paint the checkbox and also the focus rectangle if there is no label.
 o paintLabel(Graphics)
Paint the label and also the input focus rectangle, if there is a label.
 o paramString(StringBuffer)
Debugging.
 o setAlign(int)
Set the mode for the button.
 o setProperties(PropertyList)
Set the properties of the checkbox.

Variables

 o align
  public int align
The current alignment.
See Also:
alignOptions
 o alignOptions
  public static Options alignOptions
The available options for the alignment.
See Also:
align, getAlignOptions

Constructors

 o CheckBoxWidget
  public CheckBoxWidget()
Default constructor.
 o CheckBoxWidget
  public CheckBoxWidget(String label,
                        boolean value)
Constructor with label

Methods

 o getProperties
  public void getProperties(PropertyList list)
Get the properties of the checkbox.
Overrides:
getProperties in class ButtonWidget
 o setProperties
  public void setProperties(PropertyList list)
Set the properties of the checkbox.
Overrides:
setProperties in class ButtonWidget
 o getAlignOptions
  public Options getAlignOptions()
Get the possible align options.
See Also:
alignOptions
 o getEditor
  public String getEditor()
Get the editor.
Overrides:
getEditor in class Widget
 o getAlign
  public int getAlign()
Get the align of this button (LEFT or RIGHT).
See Also:
align
 o setAlign
  public void setAlign(int align)
Set the mode for the button.
See Also:
align
 o paintLabel
  public void paintLabel(Graphics g)
Paint the label and also the input focus rectangle, if there is a label.
Overrides:
paintLabel in class ButtonWidget
 o paintButton
  public void paintButton(Graphics g)
Paint the checkbox and also the focus rectangle if there is no label.
Overrides:
paintButton in class ButtonWidget
 o paramString
  public void paramString(StringBuffer buf)
Debugging.
Overrides:
paramString in class ButtonWidget

All Packages  Class Hierarchy  This Package  Previous  Next  Index