public interface CheckboxPeer extends ComponentPeer
Checkbox
.
The peer interfaces are intended only for use in porting
the AWT. They are not intended for use by application
developers, and developers should not implement peers
nor invoke any of the peer methods directly on the peer
instances.DEFAULT_OPERATION, NO_EMBEDDED_CHECK, RESET_OPERATION, SET_BOUNDS, SET_CLIENT_SIZE, SET_LOCATION, SET_SIZE
Modifier and Type | Method and Description |
---|---|
void |
setCheckboxGroup(CheckboxGroup g)
Sets the checkbox group for this checkbox.
|
void |
setLabel(String label)
Sets the label that should be displayed on the checkbox.
|
void |
setState(boolean state)
Sets the state of the checkbox to be checked
true or
unchecked false . |
applyShape, canDetermineObscurity, checkImage, coalescePaintEvent, createBuffers, createImage, createImage, createVolatileImage, destroyBuffers, dispose, flip, getBackBuffer, getColorModel, getFontMetrics, getGraphics, getGraphicsConfiguration, getLocationOnScreen, getMinimumSize, getPreferredSize, handleEvent, handlesWheelScrolling, isFocusable, isObscured, isReparentSupported, layout, paint, prepareImage, print, reparent, requestFocus, setBackground, setBounds, setEnabled, setFont, setForeground, setVisible, setZOrder, updateCursorImmediately, updateGraphicsData
void setState(boolean state)
true
or
unchecked false
.state
- the state to set on the checkboxCheckbox.setState(boolean)
void setCheckboxGroup(CheckboxGroup g)
null
removes this checkbox from any checkbox group.g
- the checkbox group to set, or null
when this
checkbox should not be placed in any groupCheckbox.setCheckboxGroup(CheckboxGroup)
void setLabel(String label)
null
means that no label should be displayed.label
- the label to be displayed on the checkbox, or
null
when no label should be displayed.Dracula Javadoc Sample, Made with Allan Im.