|
eXchaNGeR | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The action specifies different ways of using an element. The normal way of associating an element by adding a service for the element-type can be used for opening, changing and moving the element. The action however makes it possible to make use of the element in other ways. If the element is an 'address' for example, the action could be: - 'send an email (to the address)' or - 'create an account (for the address)'.
Method Summary | |
void |
execute(XElement element)
Executes the action. |
String |
getDescription()
Returns the description for the action as can be displayed to the user. |
ImageIcon |
getIcon()
Returns the icon for the action as could be used to display to the user. |
String |
getName()
Returns the name for the action as displayed to the user. |
boolean |
isEnabled(XElement element)
Returns wether the action is enabled and can be executed for this element. |
Method Detail |
public void execute(XElement element)
element
- the element to execute this action for.public boolean isEnabled(XElement element)
element
- the specific element to check.true
, when the action can be executed for the element.public String getName()
public String getDescription()
public ImageIcon getIcon()
|
eXchaNGeR | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |