public interface ToolBarTagDeclaration extends PanelTagDeclaration
'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>
Modifier and Type | Method and Description |
---|---|
void |
setIconSize(String iconSize)
Size of button images, possible values are: small, big, off.
|
void |
setLabelPosition(String labelPosition)
Position of the button label, possible values are: right, bottom, off.
|
void |
setOrientation(String orientation)
Orientation of toolbar
|
setBinding
setRendered
setCustomClass, setMarkup, setStyle
void setLabelPosition(String labelPosition)
void setIconSize(String iconSize)
void setOrientation(String orientation)
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.