Class Action

Implements the action framework. This class contains subinterfaces for action handling and listing, and for action handler registrations and unregistration.

Synopsis

Since

3.0

Inheritance Path.  java.lang.Object-> com.itmill.toolkit.event.Action

Action(String)

Parameters

caption

caption for the new action.

Constructs a new action with the given caption.

Action(String, Resource)

Parameters

caption

caption for the new action.

icon

icon for the new action

Constructs a new action with the given caption string and icon.

getCaption()

Parameters

return

the action's caption as a String

Returns the action's caption.

getIcon()

Parameters

return

Icon

Returns the action's icon.

setCaption(String)

Parameters

caption

The caption to set

Sets the caption.

setIcon(Resource)

Parameters

icon

The icon to set

Sets the icon.