org.apache.myfaces.tobago.taglib.component
Interface ToolBarTagDeclaration
- All Superinterfaces:
- BodyTag, HasBinding, HasDeprecatedDimension, HasDeprecatedHeight, HasDeprecatedWidth, HasId, HasIdBindingAndRendered, IsRendered, IterationTag, JspTag, PanelTagDeclaration, Tag, TobagoBodyTagDeclaration, TobagoTagDeclaration
- All Known Implementing Classes:
- ToolBarTag
public interface ToolBarTagDeclaration
- extends PanelTagDeclaration
Renders a toolbar.
Allowed subcomponents are subtypes of UICommand i.e.
'button'
and 'link'
tags.
These are rendered by ToolbarRenderer, so the result has
no difference.
To add an dropdown menu to a button add a facet 'menupopup'
containing a
<tc:menu>
tag to the button. Label's and Image's on those menu tag's are ignored
and replaced by the renderer.
<tc:button onclick="alert('test 0')"
label="Alert 0" >
<f:facet name="menupopup">
<tc:menu>
<tc:menuItem onclick="alert('test 1')" label="Alert 1"/>
<tc:menuItem onclick="alert('test 2')" label="Alert 2"/>
<tc:menuItem onclick="alert('test 3')" label="Alert 3"/>
</tc:menu>
</f:facet>
</tc:button>
Methods inherited from interface org.apache.myfaces.tobago.taglib.decl.HasId |
setId |
setLabelPosition
void setLabelPosition(String labelPosition)
- Position of the button label, possible values are: right, bottom, off.
If toolbar is facet of box: bottom is changed to right!
setIconSize
void setIconSize(String iconSize)
- Size of button images, possible values are: small, big, off.
setOrientation
void setOrientation(String orientation)
- Orientation of toolbar
Copyright © 2002-2008 Apache Software Foundation. All Rights Reserved.