Save This Page
Home » openjdk-7 » java » awt » peer » [javadoc | source]
java.awt.peer
public interface: CheckboxPeer [javadoc | source]

All Implemented Interfaces:
    ComponentPeer

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.
Method from java.awt.peer.CheckboxPeer Summary:
setCheckboxGroup,   setLabel,   setState
Method from java.awt.peer.CheckboxPeer Detail:
 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 {@code null} removes this checkbox from any checkbox group.
 public  void setLabel(String label)
    Sets the label that should be displayed on the ckeckbox. A value of {@code null} means that no label should be displayed.
 public  void setState(boolean state)
    Sets the state of the checkbox to be checked ({@code true}) or unchecked ({@code false}).