org.apache.myfaces.tobago.internal.taglib.component
Interface ToolBarTagDeclaration
- All Superinterfaces:
- HasBinding, HasCurrentMarkup, HasId, HasIdBindingAndRendered, HasMarkup, HasTip, IsGridLayoutComponent, IsGridLayoutComponentBase, IsGridLayoutContainer, IsRendered, PanelTagDeclaration
- All Known Subinterfaces:
- BoxToolBarTagDeclaration, TabGroupToolBarTagDeclaration
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 drop down menu to a button add a facet 'dropDownMenu'
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="dropDownMenu">
<tc:menu>
<tc:menuCommand onclick="alert('test 1')" label="Alert 1"/>
<tc:menuCommand onclick="alert('test 2')" label="Alert 2"/>
<tc:menuCommand onclick="alert('test 3')" label="Alert 3"/>
</tc:menu>
</f:facet>
</tc:button>
Methods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasId |
setId |
Methods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasBinding |
setBinding |
Methods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.IsRendered |
setRendered |
Methods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.IsGridLayoutComponentBase |
setColumnSpan, setCurrentHeight, setCurrentWidth, setDisplay, setHorizontalIndex, setLeft, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaximumHeight, setMaximumWidth, setMinimumHeight, setMinimumWidth, setPreferredHeight, setPreferredWidth, setRowSpan, setTop, setVerticalIndex |
Methods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasMarkup |
setMarkup |
Methods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasTip |
setTip |
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-2013 The Apache Software Foundation. All Rights Reserved.