All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.awt.Checkbox

java.lang.Object
   |
   +----java.awt.Component
           |
           +----jp.kyasu.awt.KComponent
                   |
                   +----jp.kyasu.awt.Label
                           |
                           +----jp.kyasu.awt.AbstractButton
                                   |
                                   +----jp.kyasu.awt.ToggleButton
                                           |
                                           +----jp.kyasu.awt.Checkbox

public class Checkbox
extends ToggleButton
The Checkbox class implements a graphical component that can be in either an "on" (true) or "off" (false) state. Clicking on a check box changes its state from "on" to "off," or from "off" to "on."

Version:
12 Jun 1998
Author:
Kazuki YASUMATSU
See Also:
ToggleButton, ButtonController

Constructor Index

 o Checkbox()
Creates a check box with no label.
 o Checkbox(String)
Creates a check box with the specified label.
 o Checkbox(String, boolean)
Creates a check box with the specified label.
 o Checkbox(String, boolean, BooleanStateGroup)
Creates a check box with the specified label, in the specified check box group, and set to the specified state.
 o Checkbox(String, BooleanStateGroup, boolean)
Constructs a check box with the specified label, set to the specified state, and in the specified check box group.
 o Checkbox(Text)
Creates a check box with the specified text.
 o Checkbox(Text, boolean)
Creates a check box with the specified text.
 o Checkbox(Text, boolean, BooleanStateGroup)
Creates a check box with the specified text, in the specified check box group, and set to the specified state.
 o Checkbox(VAbstractButton, boolean, BooleanStateGroup)
Creates a check box with the specified visual check box, in the specified check box group, and set to the specified state.
 o Checkbox(Visualizable)
Creates a check box with the specified visual object.
 o Checkbox(Visualizable, boolean)
Creates a check box with the specified visual object.
 o Checkbox(Visualizable, boolean, BooleanStateGroup)
Creates a check box with the specified visual object, in the specified check box group, and set to the specified state.

Method Index

 o getCheckboxGroup()
Determines this check box's group.
 o setBooleanStateGroup(BooleanStateGroup)
Sets this check box's group to be the specified group.
 o setCheckboxGroup(CheckboxGroup)
Sets this check box's group to be the specified check box group.

Constructors

 o Checkbox
 public Checkbox()
Creates a check box with no label. The state of this check box is set to "off," and it is not part of any check box group.

 o Checkbox
 public Checkbox(String label)
Creates a check box with the specified label. The state of this check box is set to "off," and it is not part of any check box group.

Parameters:
label - a string label for this check box.
 o Checkbox
 public Checkbox(String label,
                 boolean state)
Creates a check box with the specified label. The state of this check box is as specified by the state argument, and it is not part of any check box group.

Parameters:
label - a string label for this check box.
state - the initial state of this check box.
 o Checkbox
 public Checkbox(String label,
                 boolean state,
                 BooleanStateGroup group)
Creates a check box with the specified label, in the specified check box group, and set to the specified state.

Parameters:
label - a string label for this check box.
state - the initial state of this check box.
group - a check box group for this check box, or null for no group.
 o Checkbox
 public Checkbox(String label,
                 BooleanStateGroup group,
                 boolean state)
Constructs a check box with the specified label, set to the specified state, and in the specified check box group.

 o Checkbox
 public Checkbox(Text text)
Creates a check box with the specified text. The state of this check box is set to "off," and it is not part of any check box group.

Parameters:
text - a text for this check box.
 o Checkbox
 public Checkbox(Text text,
                 boolean state)
Creates a check box with the specified text. The state of this check box is as specified by the state argument, and it is not part of any check box group.

Parameters:
text - a text for this check box.
state - the initial state of this check box.
 o Checkbox
 public Checkbox(Text text,
                 boolean state,
                 BooleanStateGroup group)
Creates a check box with the specified text, in the specified check box group, and set to the specified state.

Parameters:
text - a text for this check box.
state - the initial state of this check box.
group - a check box group for this check box, or null for no group.
 o Checkbox
 public Checkbox(Visualizable visualizable)
Creates a check box with the specified visual object. The state of this check box is set to "off," and it is not part of any check box group.

Parameters:
visualizable - a visual object for this check box.
 o Checkbox
 public Checkbox(Visualizable visualizable,
                 boolean state)
Creates a check box with the specified visual object. The state of this check box is as specified by the state argument, and it is not part of any check box group.

Parameters:
visualizable - a visual object for this check box.
state - the initial state of this check box.
 o Checkbox
 public Checkbox(Visualizable visualizable,
                 boolean state,
                 BooleanStateGroup group)
Creates a check box with the specified visual object, in the specified check box group, and set to the specified state.

Parameters:
visualizable - a visual object for this check box.
state - the initial state of this check box.
group - a check box group for this check box, or null for no group.
 o Checkbox
 public Checkbox(VAbstractButton checkbox,
                 boolean state,
                 BooleanStateGroup group)
Creates a check box with the specified visual check box, in the specified check box group, and set to the specified state.

Parameters:
checkbox - a visual check box for this check box.
state - the initial state of this check box.
group - a check box group for this check box, or null for no group.

Methods

 o getCheckboxGroup
 public CheckboxGroup getCheckboxGroup()
Determines this check box's group.

Returns:
this check box's group, or null if the check box is not part of a check box group.
See Also:
setCheckboxGroup
 o setCheckboxGroup
 public void setCheckboxGroup(CheckboxGroup g)
Sets this check box's group to be the specified check box group. If this check box is already in a different check box group, it is first taken out of that group.

Parameters:
g - the new check box group, or null to remove this check box from any check box group.
See Also:
getCheckboxGroup, setBooleanStateGroup
 o setBooleanStateGroup
 public void setBooleanStateGroup(BooleanStateGroup g)
Sets this check box's group to be the specified group.

Overrides:
setBooleanStateGroup in class ToggleButton

All Packages  Class Hierarchy  This Package  Previous  Next  Index