|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ActionManager
Definition of an interface for a component that creates GUI library specific action objects and related classes.
This interface plays a similar role for the action builder as the
interface for the form builder: It hides the details of creating GUI library
specific objects. Instead of form elements this interface deals with objects
like actions, menus, and toolbar buttons.
ComponentManager
There will be concrete implementations of this interface for all supported GUI libraries. When the action builder is invoked, an implementation must be provided. This object is then accessed by Jelly tag handler classes to create the objects they represent. With the objects created by this implementation the action related components of an application can be constructed.
| Method Summary | |
|---|---|
void |
addMenuSeparator(ActionBuilder actionBuilder,
java.lang.Object menu)
Adds a separator to the specified menu. |
void |
addToolBarSeparator(ActionBuilder actionBuilder,
java.lang.Object toolBar)
Adds a separator to the specified tool bar. |
FormAction |
createAction(ActionBuilder actionBuilder,
ActionData actionData)
Creates an action object based on the provided information. |
java.lang.Object |
createMenu(ActionBuilder actionBuilder,
java.lang.Object menu,
TextIconData data,
java.lang.Object parent)
Creates a (sub) menu. |
java.lang.Object |
createMenuBar(ActionBuilder actionBuilder)
Creates a menu bar. |
ComponentHandler<?> |
createMenuItem(ActionBuilder actionBuilder,
ActionData actionData,
boolean checked,
java.lang.Object parent)
Creates a menu item based on the specified action data object and returns a component handler for it. |
java.lang.Object |
createMenuItem(ActionBuilder actionBuilder,
FormAction action,
boolean checked,
java.lang.Object parent)
Creates a menu item based on the specified action object. |
java.lang.Object |
createToolbar(ActionBuilder actionBuilder)
Creates a toolbar object. |
ComponentHandler<?> |
createToolbarButton(ActionBuilder actionBuilder,
ActionData data,
boolean checked,
java.lang.Object parent)
Creates a toolbar button based on the given action data object and returns a component handler for it. |
java.lang.Object |
createToolbarButton(ActionBuilder actionBuilder,
FormAction action,
boolean checked,
java.lang.Object parent)
Creates a toolbar button based on the specified action object. |
void |
registerPopupMenuHandler(java.lang.Object component,
PopupMenuHandler handler,
ComponentBuilderData compData)
Registers the specified PopupMenuHandler at the given UI
component. |
| Method Detail |
|---|
FormAction createAction(ActionBuilder actionBuilder,
ActionData actionData)
throws FormActionException
actionBuilder - the central builder data objectactionData - an object with all information about the action to
create
FormActionException - if an error occurs
java.lang.Object createMenuItem(ActionBuilder actionBuilder,
FormAction action,
boolean checked,
java.lang.Object parent)
throws FormActionException
actionBuilder - the action builderaction - the actionchecked - a flag if a checked menu item should be createdparent - the parent menu to which the new item should be added
FormActionException - if an error occurs
ComponentHandler<?> createMenuItem(ActionBuilder actionBuilder,
ActionData actionData,
boolean checked,
java.lang.Object parent)
throws FormActionException
actionBuilder - the action builderactionData - an object with all information about the menu itemchecked - a flag if a checked menu item should be createdparent - the parent menu to which the new item should be added
FormActionException - if an error occurs
java.lang.Object createMenuBar(ActionBuilder actionBuilder)
throws FormActionException
actionBuilder - the action builder
FormActionException - if an error occurs
java.lang.Object createMenu(ActionBuilder actionBuilder,
java.lang.Object menu,
TextIconData data,
java.lang.Object parent)
throws FormActionException
actionBuilder - the action buildermenu - the menu object; this will be null on the first call;
on the second call the object returned by the first call will be passeddata - data defining the new menuparent - the parent menu
FormActionException - if an error occurs
java.lang.Object createToolbar(ActionBuilder actionBuilder)
throws FormActionException
actionBuilder - the action builder
FormActionException - if an error occurs
java.lang.Object createToolbarButton(ActionBuilder actionBuilder,
FormAction action,
boolean checked,
java.lang.Object parent)
throws FormActionException
actionBuilder - the action builderaction - the actionchecked - a flag if a checked (toggle) button should be createdparent - the parent component (a toolbar) to which the new button
should be added
FormActionException - if an error occurs
ComponentHandler<?> createToolbarButton(ActionBuilder actionBuilder,
ActionData data,
boolean checked,
java.lang.Object parent)
throws FormActionException
actionBuilder - the action builderdata - a data object defining all properties of the buttonchecked - a flag if a checked (toggle) button should be createdparent - the parent component (a toolbar) to which the new button
should be added
FormActionException - if an error occurs
void addMenuSeparator(ActionBuilder actionBuilder,
java.lang.Object menu)
throws FormActionException
createMenu() method.
actionBuilder - the action buildermenu - the menu to which the separator should be added
FormActionException - if an error occurs
void addToolBarSeparator(ActionBuilder actionBuilder,
java.lang.Object toolBar)
throws FormActionException
createToolBar() method.
actionBuilder - the action buildertoolBar - the tool bar to which the separator should be added
FormActionException - if an error occurs
void registerPopupMenuHandler(java.lang.Object component,
PopupMenuHandler handler,
ComponentBuilderData compData)
throws FormActionException
PopupMenuHandler at the given UI
component. This will cause the handler to be invoked whenever the user
triggers the context menu for this component (e.g. by right clicking it
with the mouse). A concrete implementation has to install a proper event
listener at the component that takes care of calling the handler when it
detects a gesture that should bring up the context menu.
component - the componenthandler - the handler for creating the menucompData - the ComponentBuilderData object
FormActionException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||