nextapp.echo
Class CheckBox

java.lang.Object
  extended by nextapp.echo.AbstractComponent
      extended by nextapp.echo.AbstractButton
          extended by nextapp.echo.ToggleButton
              extended by nextapp.echo.CheckBox
All Implemented Interfaces:
java.io.Serializable, Component, ToolTipSupport

public class CheckBox
extends ToggleButton

A selectable "check" button.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class nextapp.echo.ToggleButton
ToggleButton.ToggleButtonModel
 
Field Summary
 
Fields inherited from class nextapp.echo.ToggleButton
HORIZONTAL_STATE_ALIGNMENT_CHANGED_PROPERTY, HORIZONTAL_STATE_POSITION_CHANGED_PROPERTY, STATE_MARGIN_CHANGED_PROPERTY, STYLE_HORIZONTAL_STATE_ALIGNMENT, STYLE_HORIZONTAL_STATE_POSITION, STYLE_STATE_MARGIN, STYLE_VERTICAL_STATE_ALIGNMENT, STYLE_VERTICAL_STATE_POSITION, VERTICAL_STATE_ALIGNMENT_CHANGED_PROPERTY, VERTICAL_STATE_POSITION_CHANGED_PROPERTY
 
Fields inherited from class nextapp.echo.AbstractButton
ACTION_COMMAND_CHANGED_PROPERTY, CSS_CLASS_CHANGED_PROPERTY, DISABLED_CSS_CLASS_CHANGED_PROPERTY, HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY, ICON_CHANGED_PROPERTY, ICON_TEXT_MARGIN_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, NOTABSTOP_CHANGED_PROPERTY, ROLLOVER_BACKGROUND_CHANGED_PROPERTY, ROLLOVER_ENABLED_CHANGED_PROPERTY, ROLLOVER_FONT_CHANGED_PROPERTY, ROLLOVER_FOREGROUND_CHANGED_PROPERTY, ROLLOVER_ICON_CHANGED_PROPERTY, ROLLOVER_SELECTED_ICON_CHANGED_PROPERTY, SELECTED_CHANGED_PROPERTY, SELECTED_ICON_CHANGED_PROPERTY, STYLE_HORIZONTAL_ALIGNMENT, STYLE_HORIZONTAL_TEXT_POSITION, STYLE_ICON_TEXT_MARGIN, STYLE_ROLLOVER_BACKGROUND, STYLE_ROLLOVER_ENABLED, STYLE_ROLLOVER_FONT, STYLE_ROLLOVER_FOREGROUND, STYLE_VERTICAL_ALIGNMENT, STYLE_VERTICAL_TEXT_POSITION, TEXT_CHANGED_PROPERTY, VERTICAL_ALIGNMENT_CHANGED_PROPERTY, VERTICAL_TEXT_POSITION_CHANGED_PROPERTY
 
Fields inherited from interface nextapp.echo.ToolTipSupport
TOOL_TIP_TEXT_CHANGED_PROPERTY
 
Fields inherited from interface nextapp.echo.Component
BACKGROUND_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FONT_CHANGED_PROPERTY, FOREGROUND_CHANGED_PROPERTY, IDENTIFIER_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, SELECTABLE_CHANGED_PROPERTY, STYLE_BACKGROUND, STYLE_FONT, STYLE_FOREGROUND, UPDATE_PROPERTY, VISIBLE_CHANGED_PROPERTY
 
Constructor Summary
CheckBox()
          Creates an initially unselected check box with no text or image.
CheckBox(ImageReference icon)
          Creates a initially unselected check box with the specified icon.
CheckBox(ImageReference icon, boolean selected)
          Creates a check box with the specified icon and selection state.
CheckBox(java.lang.String text)
          Creates an initially unselected check box with the specified text.
CheckBox(java.lang.String text, boolean selected)
          Creates a check box with the specified text and selection state.
CheckBox(java.lang.String text, ImageReference icon, boolean selected)
          Creates a check box with the specified text, icon and selection state.
 
Method Summary
 boolean isAsync()
           
 void setAsync(boolean async)
           
 void setEnabled(boolean newValue)
          Sets whether the component is enabled.
 
Methods inherited from class nextapp.echo.ToggleButton
applyStyle, getHorizontalStateAlignment, getHorizontalStatePosition, getStateMargin, getVerticalStateAlignment, getVerticalStatePosition, setHorizontalStateAlignment, setHorizontalStatePosition, setStateMargin, setVerticalStateAlignment, setVerticalStatePosition
 
Methods inherited from class nextapp.echo.AbstractButton
addActionListener, addChangeListener, addItemListener, doAction, fireActionPerformed, fireItemStateChanged, fireStateChanged, getActionCommand, getCssClass, getCssClassDisabled, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextMargin, getModel, getRolloverBackground, getRolloverFont, getRolloverForeground, getRolloverIcon, getRolloverSelectedIcon, getSelectedIcon, getText, getToolTipText, getVerticalAlignment, getVerticalTextPosition, hasActionListeners, isNoTabStop, isRolloverEnabled, isSelected, removeActionListener, removeChangeListener, removeItemListener, setActionCommand, setCssClass, setCssClassDisabled, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextMargin, setModel, setNoTabStop, setRolloverBackground, setRolloverEnabled, setRolloverFont, setRolloverForeground, setRolloverIcon, setRolloverSelectedIcon, setSelected, setSelectedIcon, setText, setToolTipText, setVerticalAlignment, setVerticalTextPosition
 
Methods inherited from class nextapp.echo.AbstractComponent
add, add, addHierarchyListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getClientId, getComponent, getComponentCount, getComponents, getEchoInstance, getFont, getForeground, getIdentifier, getListenerList, getLocale, getParent, indexOf, init, isAncestorOf, isDifferent, isEnabled, isFocused, isRecursivelyVisible, isRegistered, isSelectableForScriptRecorder, isShowing, isVisible, processHierarchyEvent, remove, remove, removeAll, removeHierarchyListener, removePropertyChangeListener, setBackground, setClientId, setFocused, setFont, setForeground, setIdentifier, setLocale, setParent, setRegistered, setSelectableForScriptRecorder, setVisible, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckBox

public CheckBox()
Creates an initially unselected check box with no text or image.


CheckBox

public CheckBox(java.lang.String text)
Creates an initially unselected check box with the specified text.

Parameters:
text - The text to be displayed in the button.

CheckBox

public CheckBox(java.lang.String text,
                boolean selected)
Creates a check box with the specified text and selection state.

Parameters:
text - The text to be displayed in the button.
selected - The selection state of the check box.

CheckBox

public CheckBox(ImageReference icon)
Creates a initially unselected check box with the specified icon.

Parameters:
icon - The icon to be displayed in the button.

CheckBox

public CheckBox(ImageReference icon,
                boolean selected)
Creates a check box with the specified icon and selection state.

Parameters:
icon - The icon to be displayed in the button.
selected - The selection state of the check box.

CheckBox

public CheckBox(java.lang.String text,
                ImageReference icon,
                boolean selected)
Creates a check box with the specified text, icon and selection state.

Parameters:
text - The text to be displayed in the button.
icon - The icon to be displayed in the button.
selected - The selection state of the check box.
Method Detail

setEnabled

public void setEnabled(boolean newValue)
Description copied from interface: Component
Sets whether the component is enabled.

Specified by:
setEnabled in interface Component
Overrides:
setEnabled in class AbstractComponent
Parameters:
newValue - True if the component is enabled.

isAsync

public boolean isAsync()
Overrides:
isAsync in class AbstractButton

setAsync

public void setAsync(boolean async)
Overrides:
setAsync in class AbstractButton