|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Checkbox
A Checkbox object is a graphical user interface element that has a boolean state.
| Field Summary |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
Checkbox()
Constructs a Checkbox with no label, no Checkbox group, and initialized to a false state. |
|
Checkbox(String label)
Constructs a Checkbox with the specified label, no Checkbox group, and initialized to a false state. |
|
Checkbox(String label,
CheckboxGroup group,
boolean state)
Constructs a Checkbox with the specified label, specified Checkbox group, and specified boolean state. |
|
| Method Summary | |
void |
addNotify()
Creates the peer of the Checkbox. |
CheckboxGroup |
getCheckboxGroup()
Returns the checkbox group. |
String |
getLabel()
Gets the label of the button. |
boolean |
getState()
Returns the boolean state of the Checkbox. |
protected String |
paramString()
Returns the parameter String of this Checkbox. |
void |
setCheckboxGroup(CheckboxGroup g)
Sets the CheckboxGroup to the specified group. |
void |
setLabel(String label)
Sets the button with the specified label. |
void |
setState(boolean state)
Sets the Checkbox to the specifed boolean state. |
| Methods inherited from class java.awt.Component |
action, bounds, checkImage, checkImage, createImage, createImage, deliverEvent, disable, enable, enable, getBackground, getColorModel, getFont, getFontMetrics, getForeground, getGraphics, getParent, getPeer, getToolkit, gotFocus, handleEvent, hide, imageUpdate, inside, invalidate, isEnabled, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, removeNotify, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setFont, setForeground, show, show, size, toString, update, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Checkbox()
public Checkbox(String label)
label - the label on the Checkbox
public Checkbox(String label,
CheckboxGroup group,
boolean state)
label - the label on the Checkboxgroup - the CheckboxGroup this Checkbox is instate - is the initial state of this Checkbox| Method Detail |
public void addNotify()
addNotify in class ComponentComponent.getPeer(),
Component.removeNotify()public String getLabel()
setLabel(java.lang.String)public void setLabel(String label)
label - the label of the buttongetLabel()public boolean getState()
setState(boolean)public void setState(boolean state)
state - the boolean stategetState()public CheckboxGroup getCheckboxGroup()
setCheckboxGroup(java.awt.CheckboxGroup)public void setCheckboxGroup(CheckboxGroup g)
g - the new CheckboxGroupgetCheckboxGroup()protected String paramString()
paramString in class Component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||