public interface ActionComponent
Modifier and Type | Interface and Description |
---|---|
static class |
ActionComponent.ActionPropertyChangeListener |
static class |
ActionComponent.Utils |
Modifier and Type | Method and Description |
---|---|
Action |
getAction()
Returns the action which this component is connected to.
|
void |
setAction(Action action)
Connects this component with an action.
|
void |
setCaption(String caption)
Sets the caption of the component.
|
void |
setDescription(String description)
Sets the component's description.
|
void |
setEnabled(boolean enabled)
Enables or disables the component.
|
void |
setIcon(Resource icon)
Sets the icon of the component.
|
Action getAction()
void setAction(Action action)
The main action of this component, like click of a button, will trigger
the actions ActionListener.actionPerformed(com.xdev.ui.event.ActionEvent)
method.
action
- the connected actionvoid setCaption(String caption)
caption
- the new caption for the component. If the caption is
null
, no caption is shown and it does not normally
take any spaceComponent.setCaption(String)
void setIcon(Resource icon)
icon
- the icon of the component. If null, no icon is shown and it
does not normally take any spaceComponent.setIcon(Resource)
void setDescription(String description)
description
- the new description string for the componentAbstractComponent.setDescription(String)
void setEnabled(boolean enabled)
enabled
- a boolean value specifying if the component should be enabled
or notComponent.setEnabled(boolean)