Package java.awt.peer Previous
Previous
Java API
Java API
Index
Index
Next
Next

Interface CheckboxPeer

Methods

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  
{
        // Methods
    public abstract void setCheckboxGroup(CheckboxGroup  g);	
    public abstract void setLabel(String  label);	
    public abstract void setState(boolean  state);	
}


Methods


setCheckboxGroup

public abstract void setCheckboxGroup(CheckboxGroup  g) 

Sets the group of the checkbox to be the specified CheckboxGroup

ParameterDescription
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.

ParameterDescription
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."

ParameterDescription
state the boolean state



Top© 1996 Sun Microsystems, Inc. All rights reserved.