|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.AbstractComponent
nextapp.echo.NativeCheckBox
public class NativeCheckBox
A selectable "check" button.
Field Summary |
---|
Fields inherited from interface nextapp.echo.ToolTipSupport |
---|
TOOL_TIP_TEXT_CHANGED_PROPERTY |
Constructor Summary | |
---|---|
NativeCheckBox()
Creates an initially unselected check box with no text or image. |
|
NativeCheckBox(java.lang.String text)
Creates an initially unselected check box with the specified text. |
|
NativeCheckBox(java.lang.String text,
boolean selected)
Creates a check box with the specified text and selection state. |
Method Summary | |
---|---|
void |
addActionListener(ActionListener listener)
|
void |
applyStyle(Style style)
Sets stylistic properties of this component based on a Style
object. |
void |
fire()
|
java.lang.String |
getActionCommand()
|
int |
getStateMargin()
|
java.lang.String |
getText()
|
ToolTipPopUp |
getToolTipPopUp()
Returns the ToolTipPopUp component used to
configure the rich tool tip support. |
java.lang.String |
getToolTipText()
Returns the default tool tip text. |
boolean |
hasActionListeners()
|
boolean |
isSelected()
|
void |
removeActionListener(ActionListener listener)
|
void |
setActionCommand(java.lang.String actionCommand)
|
void |
setSelected(boolean selected)
|
void |
setStateMargin(int stateMargin)
|
void |
setText(java.lang.String text)
|
void |
setToolTipText(java.lang.String newValue)
Sets the default tool tip text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NativeCheckBox()
public NativeCheckBox(java.lang.String text)
text
- The text to be displayed in the button.public NativeCheckBox(java.lang.String text, boolean selected)
text
- The text to be displayed in the button.selected
- The selection state of the check box.Method Detail |
---|
public void addActionListener(ActionListener listener)
public void removeActionListener(ActionListener listener)
public void fire()
public java.lang.String getActionCommand()
public void setActionCommand(java.lang.String actionCommand)
public boolean isSelected()
public void setSelected(boolean selected)
public int getStateMargin()
public void setStateMargin(int stateMargin)
public java.lang.String getText()
public void setText(java.lang.String text)
public java.lang.String getToolTipText()
ToolTipSupport
getToolTipText
in interface ToolTipSupport
public void setToolTipText(java.lang.String newValue)
ToolTipSupport
setToolTipText
in interface ToolTipSupport
newValue
- The new tool tip text.public ToolTipPopUp getToolTipPopUp()
ToolTipPopUpSupport
ToolTipPopUp
component used to
configure the rich tool tip support.
getToolTipPopUp
in interface ToolTipPopUpSupport
public boolean hasActionListeners()
public void applyStyle(Style style)
Component
Style
object. The version of this method in Component
will set
foreground and background colors and the font from the style if they are
present. Components should override this method if they allow more
properties to be set from a style object, and should call
super.applyStyle() if necessary.
applyStyle
in interface Component
applyStyle
in class AbstractComponent
style
- The style object from which to retrieve properties for this
Component
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |