|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.millstone.base.event.Action
Implements the MillStone action framework. This class contains subinterfaces for action handling and listing, and for action handler registrations and unregistration.
| Nested Class Summary | |
static interface |
Action.Container
Interface implemented by all components where actions can be registered. |
static interface |
Action.Handler
Interface implemented by classes who wish to handle actions. |
| Constructor Summary | |
Action(java.lang.String caption)
Constructs a new action with the given caption. |
|
Action(java.lang.String caption,
Resource icon)
Constructs a new action with the given caption string and icon. |
|
| Method Summary | |
java.lang.String |
getCaption()
Returns the action's caption. |
Resource |
getIcon()
Returns the action's icon. |
void |
setCaption(java.lang.String caption)
Sets the caption. |
void |
setIcon(Resource icon)
Sets the icon. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Action(java.lang.String caption)
caption - caption for the new action.
public Action(java.lang.String caption,
Resource icon)
caption - caption for the new action.icon - icon for the new action| Method Detail |
public java.lang.String getCaption()
Stringpublic Resource getIcon()
public void setCaption(java.lang.String caption)
caption - The caption to setpublic void setIcon(Resource icon)
icon - The icon to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||