|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.app.Component nextapp.echo.app.button.AbstractButton nextapp.echo.app.button.ToggleButton
public abstract class ToggleButton
An abstract base class for on/off toggle button components.
Field Summary | |
---|---|
static java.lang.String |
PROPERTY_DISABLED_SELECTED_STATE_ICON
|
static java.lang.String |
PROPERTY_DISABLED_STATE_ICON
|
static java.lang.String |
PROPERTY_PRESSED_SELECTED_STATE_ICON
|
static java.lang.String |
PROPERTY_PRESSED_STATE_ICON
|
static java.lang.String |
PROPERTY_ROLLOVER_SELECTED_STATE_ICON
|
static java.lang.String |
PROPERTY_ROLLOVER_STATE_ICON
|
static java.lang.String |
PROPERTY_SELECTED_STATE_ICON
|
static java.lang.String |
PROPERTY_STATE_ALIGNMENT
|
static java.lang.String |
PROPERTY_STATE_ICON
|
static java.lang.String |
PROPERTY_STATE_MARGIN
|
static java.lang.String |
PROPERTY_STATE_POSITION
|
static java.lang.String |
SELECTED_CHANGED_PROPERTY
|
Constructor Summary | |
---|---|
ToggleButton()
|
Method Summary | |
---|---|
void |
addChangeListener(ChangeListener l)
Adds a ChangeListener to receive notification of state
changes, i.e., to the selected state of a ToggleButton . |
void |
fireStateChanged()
Notifies all listeners that have registered for this event type. |
ImageReference |
getDisabledSelectedStateIcon()
Returns the selected state icon when the button is disabled. |
ImageReference |
getDisabledStateIcon()
Returns the default (non-selected) state icon when the button is disabled. |
ImageReference |
getPressedSelectedStateIcon()
Returns the selected state icon displayed when the button is being pressed. |
ImageReference |
getPressedStateIcon()
Returns the default (non-selected) state icon displayed when the button is being pressed. |
ImageReference |
getRolloverSelectedStateIcon()
Returns the selected state icon displayed when the mouse cursor is inside the bounds of the button. |
ImageReference |
getRolloverStateIcon()
Returns the default (non-selected) state icon displayed when the mouse cursor is inside the bounds of the button. |
ImageReference |
getSelectedStateIcon()
Returns the selected state icon. |
Alignment |
getStateAlignment()
Returns the alignment of the state icon relative to the button's text/icon. |
ImageReference |
getStateIcon()
Returns the default (non-selected) state icon. |
Extent |
getStateMargin()
Returns the margin size between the state icon and the toggle button's icon and/or text. |
Alignment |
getStatePosition()
Returns the position of the state icon relative to the button's text/icon. |
boolean |
isSelected()
Determines the selection state. |
void |
processInput(java.lang.String name,
java.lang.Object value)
Processes client input specific to the Component
received from the UpdateManager . |
void |
removeChangeListener(ChangeListener l)
Removes a ChangeListener from being notified of state
changes, i.e., to the selected state of a ToggleButton . |
void |
setDisabledSelectedStateIcon(ImageReference newValue)
Sets the selected state icon when the button is disabled. |
void |
setDisabledStateIcon(ImageReference newValue)
Sets the default (non-selected) state icon when the button is disabled. |
void |
setModel(ButtonModel newValue)
Sets the model that this button represents. |
void |
setPressedSelectedStateIcon(ImageReference newValue)
Sets the selected state icon displayed when the button is being pressed. |
void |
setPressedStateIcon(ImageReference newValue)
Sets the default (non-selected) state icon displayed when the button is being pressed. |
void |
setRolloverSelectedStateIcon(ImageReference newValue)
Sets the selected state icon displayed when the mouse cursor is inside the bounds of the button. |
void |
setRolloverStateIcon(ImageReference newValue)
Sets the default (non-selected) state icon displayed when the mouse cursor is inside the bounds of the button. |
void |
setSelected(boolean newValue)
Sets the selection state. |
void |
setSelectedStateIcon(ImageReference newValue)
Sets the selected state icon. |
void |
setStateAlignment(Alignment newValue)
Sets the alignment of the state icon relative to the text/icon of the button. |
void |
setStateIcon(ImageReference newValue)
Sets the default (non-selected) state icon. |
void |
setStateMargin(Extent newValue)
Sets the margin size between the state icon and the toggle button's icon and/or text. |
void |
setStatePosition(Alignment newValue)
Sets the position of the state icon relative to the text/icon of the button. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPERTY_DISABLED_STATE_ICON
public static final java.lang.String PROPERTY_DISABLED_SELECTED_STATE_ICON
public static final java.lang.String PROPERTY_PRESSED_STATE_ICON
public static final java.lang.String PROPERTY_PRESSED_SELECTED_STATE_ICON
public static final java.lang.String PROPERTY_ROLLOVER_STATE_ICON
public static final java.lang.String PROPERTY_ROLLOVER_SELECTED_STATE_ICON
public static final java.lang.String PROPERTY_STATE_ALIGNMENT
public static final java.lang.String PROPERTY_STATE_ICON
public static final java.lang.String PROPERTY_STATE_MARGIN
public static final java.lang.String PROPERTY_STATE_POSITION
public static final java.lang.String PROPERTY_SELECTED_STATE_ICON
public static final java.lang.String SELECTED_CHANGED_PROPERTY
Constructor Detail |
---|
public ToggleButton()
Method Detail |
---|
public void addChangeListener(ChangeListener l)
ChangeListener
to receive notification of state
changes, i.e., to the selected state of a ToggleButton
.
l
- the listener to addpublic void fireStateChanged()
public ImageReference getDisabledSelectedStateIcon()
public ImageReference getDisabledStateIcon()
public ImageReference getPressedSelectedStateIcon()
public ImageReference getPressedStateIcon()
public ImageReference getRolloverSelectedStateIcon()
public ImageReference getRolloverStateIcon()
public ImageReference getSelectedStateIcon()
public Alignment getStateAlignment()
public ImageReference getStateIcon()
public Extent getStateMargin()
Extent
s with
fixed (i.e., not percent) units.
public Alignment getStatePosition()
public boolean isSelected()
public void processInput(java.lang.String name, java.lang.Object value)
Component
Component
received from the UpdateManager
.
Derivative implementations should take care to invoke
super.processInput()
.
Security note: Because input to this method is
likely from a remote client, it should be treated as potentially hostile.
All input to this method should be carefully verified.
For example, directly invoking set()
method with the
provided input would constitute a security hole.
processInput
in class AbstractButton
name
- the name of the inputvalue
- the value of the inputComponent.processInput(java.lang.String, java.lang.Object)
public void removeChangeListener(ChangeListener l)
ChangeListener
from being notified of state
changes, i.e., to the selected state of a ToggleButton
.
l
- the listener to removepublic void setDisabledSelectedStateIcon(ImageReference newValue)
newValue
- the new iconpublic void setDisabledStateIcon(ImageReference newValue)
newValue
- the new iconpublic void setModel(ButtonModel newValue)
AbstractButton
setModel
in class AbstractButton
newValue
- the new ButtonModel
AbstractButton.setModel(nextapp.echo.app.button.ButtonModel)
public void setPressedSelectedStateIcon(ImageReference newValue)
newValue
- the new iconpublic void setPressedStateIcon(ImageReference newValue)
newValue
- the new iconpublic void setRolloverSelectedStateIcon(ImageReference newValue)
newValue
- the new iconpublic void setRolloverStateIcon(ImageReference newValue)
newValue
- the new iconpublic void setSelectedStateIcon(ImageReference newValue)
newValue
- the new iconpublic void setSelected(boolean newValue)
newValue
- the new selection statepublic void setStateAlignment(Alignment newValue)
Alignment
's
settings should be non-default.
newValue
- the new state alignmentpublic void setStateIcon(ImageReference newValue)
newValue
- the new iconpublic void setStateMargin(Extent newValue)
Extent
s with
fixed (i.e., not percent) units.
newValue
- the new margin sizepublic void setStatePosition(Alignment newValue)
Alignment
's
settings should be non-default.
newValue
- the new state position
|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |