public class Checkbox extends ToggleButton
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."ToggleButton,
ButtonController,
直列化された形式group, itemListener, itemListenerK, TOGGLE_BACKGROUNDactionCommand, controlleralignment, CENTER, EAST, label, LEFT, NORTH, NORTHEAST, NORTHWEST, RIGHT, SOUTH, SOUTHEAST, SOUTHWEST, WESTDefaultToolkit, doubleBuffered, focusTraversable, offscreenBuffer, toolTip| コンストラクタと説明 |
|---|
Checkbox()
Creates a check box with no label.
|
Checkbox(java.lang.String label)
Creates a check box with the specified label.
|
Checkbox(java.lang.String label,
boolean state)
Creates a check box with the specified label.
|
Checkbox(java.lang.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.
|
Checkbox(java.lang.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(Text text)
Creates a check box with the specified text.
|
Checkbox(Text text,
boolean state)
Creates a check box with the specified text.
|
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.
|
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.
|
Checkbox(Visualizable visualizable)
Creates a check box with the specified visual object.
|
Checkbox(Visualizable visualizable,
boolean state)
Creates a check box with the specified visual object.
|
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.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected java.awt.Color |
getButtonBackground()
Gets the background color for the check box.
|
CheckboxGroup |
getCheckboxGroup()
Determines this check box's group.
|
void |
setBooleanStateGroup(BooleanStateGroup g)
Sets this check box's group to be the specified group.
|
void |
setCheckboxGroup(CheckboxGroup g)
Sets this check box's group to be the specified check box group.
|
actionPerformed, addItemListener, getBooleanStateGroup, getSelectedObjects, getState, itemStateChanged, notifyItemListeners, processEvent, removeItemListener, setState, setStateInternalgetActionCommand, getController, getLabel, getVButton, isFocusTraversable, setActionCommand, setLabel, setVButton, setVButtonInnergetAlignment, getMinimumSize, getPreferredSize, getText, getTEXT, getVisualizable, getVLabel, paintOn, setAlignment, setBackground, setBounds, setEnabled, setFont, setForeground, setLabelSize, setText, setText, setTEXT, setVisualizable, setVLabeladdNotify, bounds, disable, doLayout, enable, enable, getBounds, getFrame, getLocation, getPreferredGraphics, getPreferredGraphics, getSize, getToolTipText, getToolTipVisual, hide, isDirectNotification, isDoubleBuffered, layout, location, minimumSize, paint, postOldEvent, preferredSize, processMouseEvent, processMouseMotionEvent, repaintNow, requestFocus, reshape, setDoubleBuffered, setFocusTraversable, setToolTipText, setToolTipText, setToolTipVisual, setVisible, show, show, size, syncGraphics, syncGraphics, syncGraphics, updateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disableEvents, dispatchEvent, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocationOnScreen, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, list, list, locate, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, prepareImage, prepareImage, print, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validatepublic Checkbox()
public Checkbox(java.lang.String label)
label - a string label for this check box.public Checkbox(java.lang.String label,
boolean state)
state argument, and it is not
part of any check box group.label - a string label for this check box.state - the initial state of this check box.public Checkbox(java.lang.String label,
boolean state,
BooleanStateGroup group)
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.public Checkbox(java.lang.String label,
BooleanStateGroup group,
boolean state)
public Checkbox(Text text)
text - a text for this check box.public Checkbox(Text text, boolean state)
state argument, and it is not
part of any check box group.text - a text for this check box.state - the initial state of this check box.public Checkbox(Text text, boolean state, BooleanStateGroup group)
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.public Checkbox(Visualizable visualizable)
visualizable - a visual object for this check box.public Checkbox(Visualizable visualizable, boolean state)
state argument, and it is
not part of any check box group.visualizable - a visual object for this check box.state - the initial state of this check box.public Checkbox(Visualizable visualizable, boolean state, BooleanStateGroup group)
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.public Checkbox(VAbstractButton checkbox, boolean state, BooleanStateGroup group)
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.protected java.awt.Color getButtonBackground()
getButtonBackground クラス内 ToggleButtonpublic CheckboxGroup getCheckboxGroup()
null
if the check box is not part of a check box group.setCheckboxGroup(jp.kyasu.awt.CheckboxGroup)public void setCheckboxGroup(CheckboxGroup g)
g - the new check box group, or null to remove this
check box from any check box group.getCheckboxGroup(),
#setBooleanStateGroup(jp.kyasu.awt.setBooleanStateGroup)public void setBooleanStateGroup(BooleanStateGroup g)
setBooleanStateGroup クラス内 ToggleButtong - the new group, or null to remove this
toggle button/check box from any group.ToggleButton.getBooleanStateGroup()