Packages  This Package  Prev  Next  Index  

§3.4 Interface CheckboxPeer

The check box peer interface specifies the methods that all implementations of Abstract Window Toolkit check boxes must define.

public  interface  java.awt.peer.CheckboxPeer
    extends java.awt.peer.ComponentPeer  (II-§3.6)
{
        // Methods
    public abstract void setCheckboxGroup(CheckboxGroup  g);	§3.4.1
    public abstract void setLabel(String  label);	§3.4.2
    public abstract void setState(boolean  state);	§3.4.3
}

Methods

setCheckboxGroup

public abstract void setCheckboxGroup(CheckboxGroup g)
Sets the group of the checkbox to be the specified CheckboxGroup
Parameters:
g - the new check box group, or null to remove the check box from any checkbox group

setLabel

public abstract void setLabel(String label)
Changes the check box's label to be the string argument.
Parameters:
label - the new label, or null for no label

setState

public abstract void setState(boolean state)
Sets the check box to the specifed boolean state: true indicates "on"; false indicates "off."
Parameters:
state - the boolean state

Packages  This Package  Prev  Next  Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to doug.kramer@sun.com