Interface ActionContainer
-
- All Known Implementing Classes:
MenuBarTag,MenuTag,ToolbarTag
public interface ActionContainerDefinition of an interface for objects with container facilities.
Some of the objects involved in the action builder process act as containers, e.g. menu bars or toolbars. For certain tags it is necessary to find these containers so that new elements can be added to them. This is done through this interface.
The interface itself is very simple. It only provides access to a container object whose concrete type depends on the GUI library specific implementation of the
interface. It is passed to the action manager, which can add further elements to it.ActionManager- Version:
- $Id: ActionContainer.java 205 2012-01-29 18:29:57Z oheger $
- Author:
- Oliver Heger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddSeparator()Adds a separator element to this container.ObjectgetContainer()Returns the container object.
-
-
-
Method Detail
-
getContainer
Object getContainer()
Returns the container object. This method will be called when new elements need to be added to this container.- Returns:
- the container object
-
addSeparator
void addSeparator() throws FormActionExceptionAdds a separator element to this container. This method will be invoked when a<separator>tag is executed. An implementation must ensure that the corresponding method of the currentfor adding the separator is called.ActionManager- Throws:
FormActionException- if an error occurs
-
-