APIdia Launch Partner
Top Description Fields Methods
java.awt.peer

public Interface CheckboxPeer

extends ComponentPeer
Known Direct Implementers
sun.awt.X11.XCheckboxPeer
Imports
java.awt.Checkbox, .CheckboxGroup

The peer interface for 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.

Field Summary

Inherited from java.awt.peer.ComponentPeer:
DEFAULT_OPERATIONNO_EMBEDDED_CHECKRESET_OPERATIONSET_BOUNDSSET_CLIENT_SIZESET_LOCATIONSET_SIZE

Method Summary

Modifier and TypeMethod and Description
public void
setCheckboxGroup(CheckboxGroup
the checkbox group to set, or null when this checkbox should not be placed in any group
g
)

Sets the checkbox group for this checkbox.

public void
setLabel(String
the label to be displayed on the checkbox, or null when no label should be displayed.
label
)

Sets the label that should be displayed on the checkbox.

public void
setState(boolean
the state to set on the checkbox
state
)

Sets the state of the checkbox to be checked true or unchecked false.

Inherited from java.awt.peer.ComponentPeer:
applyShapecanDetermineObscuritycoalescePaintEventcreateBufferscreateImagecreateVolatileImagedestroyBuffersdisposeflipgetBackBuffergetColorModelgetFontMetricsgetGraphicsgetGraphicsConfigurationgetLocationOnScreengetMinimumSizegetPreferredSizehandleEventhandlesWheelScrollingisFocusableisObscuredisReparentSupportedlayoutpaintprintreparentrequestFocussetBackgroundsetBoundssetEnabledsetFontsetForegroundsetVisiblesetZOrderupdateCursorImmediatelyupdateGraphicsData

Method Detail

setCheckboxGroupback to summary
public void setCheckboxGroup(CheckboxGroup g)

Sets the checkbox group for this checkbox. Checkboxes in one checkbox group can only be selected exclusively (like radio buttons). A value of null removes this checkbox from any checkbox group.

Parameters
g:CheckboxGroup

the checkbox group to set, or null when this checkbox should not be placed in any group

See Also
Checkbox#setCheckboxGroup(CheckboxGroup)
setLabelback to summary
public void setLabel(String label)

Sets the label that should be displayed on the checkbox. A value of null means that no label should be displayed.

Parameters
label:String

the label to be displayed on the checkbox, or null when no label should be displayed.

setStateback to summary
public void setState(boolean state)

Sets the state of the checkbox to be checked true or unchecked false.

Parameters
state:boolean

the state to set on the checkbox

See Also
Checkbox#setState(boolean)