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
-
Checkbox()
- Creates a check box with no label.
-
Checkbox(String)
- Creates a check box with the specified label.
-
Checkbox(String, boolean)
- Creates a check box with the specified label.
-
Checkbox(String, boolean, BooleanStateGroup)
- Creates a check box with the specified label, in the specified check
box group, and set to the specified state.
-
Checkbox(String, BooleanStateGroup, boolean)
- Constructs a check box with the specified label, set to the specified
state, and in the specified check box group.
-
Checkbox(Text)
- Creates a check box with the specified text.
-
Checkbox(Text, boolean)
- Creates a check box with the specified text.
-
Checkbox(Text, boolean, BooleanStateGroup)
- Creates a check box with the specified text, in the specified check
box group, and set to the specified state.
-
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.
-
Checkbox(Visualizable)
- Creates a check box with the specified visual object.
-
Checkbox(Visualizable, boolean)
- Creates a check box with the specified visual object.
-
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.
-
getCheckboxGroup()
- Determines this check box's group.
-
setBooleanStateGroup(BooleanStateGroup)
- Sets this check box's group to be the specified group.
-
setCheckboxGroup(CheckboxGroup)
- Sets this check box's group to be the specified check box group.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
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
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