Class ToolbarTag
- java.lang.Object
-
- org.apache.commons.jelly.TagSupport
-
- net.sf.jguiraffe.gui.builder.components.tags.FormBaseTag
-
- net.sf.jguiraffe.gui.builder.components.tags.ComponentBaseTag
-
- net.sf.jguiraffe.gui.builder.components.tags.SimpleComponentTag
-
- net.sf.jguiraffe.gui.builder.action.tags.ToolbarTag
-
- All Implemented Interfaces:
ActionContainer
,ConditionalTag
,org.apache.commons.jelly.Tag
public class ToolbarTag extends SimpleComponentTag implements ActionContainer
A specialized tag handler class for creating a toolbar component.
This tag handler class uses the current
ActionManager
implementation for creating a new platform specific toolbar object. The toolbar is a normal GUI component that will be added to the enclosing container. A constraints object can be provided if needed. All attributes defined by the base classSimpleComponentTag
can be used for this tag, too. Additional attributes are not supported.- Version:
- $Id: ToolbarTag.java 205 2012-01-29 18:29:57Z oheger $
- Author:
- Oliver Heger
-
-
Constructor Summary
Constructors Constructor Description ToolbarTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSeparator()
Adds a separator to the toolbar.protected Object
createComponent(ComponentManager manager, boolean create)
Creates the toolbar component.Object
getContainer()
Returns the container object.-
Methods inherited from class net.sf.jguiraffe.gui.builder.components.tags.SimpleComponentTag
getComponent, process, processBeforeBody
-
Methods inherited from class net.sf.jguiraffe.gui.builder.components.tags.ComponentBaseTag
getBackColor, getBackgroundColor, getConstraints, getFont, getFontRef, getForeColor, getForegroundColor, getName, getToolTipData, insertComponent, setBackColor, setConstraints, setFont, setFontRef, setForeColor, setName, setTooltip, setTooltipres, setTooltipresgrp
-
Methods inherited from class net.sf.jguiraffe.gui.builder.components.tags.FormBaseTag
canProcess, canProcess, convertToClass, convertToNumberWithUnit, convertToNumberWithUnit, doTag, findContainer, getBuilderData, getBuilderData, getIfName, getResourceText, getResourceText, getUnlessName, setIfName, setUnlessName
-
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
-
-
-
-
Method Detail
-
createComponent
protected Object createComponent(ComponentManager manager, boolean create) throws org.apache.commons.jelly.MissingAttributeException, FormBuilderException
Creates the toolbar component. This implementation will use the currentActionManager
to create a toolbar.- Specified by:
createComponent
in classSimpleComponentTag
- Parameters:
manager
- the component manager (ignored by this tag)create
- a flag if the component should be created or initialized- Returns:
- the new toolbar
- Throws:
org.apache.commons.jelly.MissingAttributeException
- if a required attribute is missingFormBuilderException
- if an error occurs
-
getContainer
public Object getContainer()
Returns the container object. This is the created toolbar.- Specified by:
getContainer
in interfaceActionContainer
- Returns:
- the action container object
-
addSeparator
public void addSeparator() throws FormActionException
Adds a separator to the toolbar.- Specified by:
addSeparator
in interfaceActionContainer
- Throws:
FormActionException
- if an error occurs
-
-