net.sf.jguiraffe.gui.builder.action.tags
Interface ActionContainer

All Known Implementing Classes:
MenuBarTag, MenuTag, ToolbarTag

public interface ActionContainer

Definition 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 ActionManager interface. It is passed to the action manager, which can add further elements to it.

Version:
$Id: ActionContainer.java 156 2009-03-03 21:04:47Z oheger $
Author:
Oliver Heger

Method Summary
 void addSeparator()
          Adds a separator element to this container.
 java.lang.Object getContainer()
          Returns the container object.
 

Method Detail

getContainer

java.lang.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 FormActionException
Adds 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 current ActionManager for adding the separator is called.

Throws:
FormActionException - if an error occurs


Copyright © 2009 The JGUIraffe Team. All Rights Reserved.