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
setHeight, setWidth
setColumnSpan, setCurrentHeight, setCurrentWidth, setDisplay, setHorizontalIndex, setLeft, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaximumHeight, setMaximumWidth, setMinimumHeight, setMinimumWidth, setPreferredHeight, setPreferredWidth, setRowSpan, setTop, setVerticalIndex
setBorderBottom, setBorderLeft, setBorderRight, setBorderTop, setOverflowX, setOverflowY, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop
setMarkup
setCurrentMarkup
void setLabelPosition(String labelPosition)
void setIconSize(String iconSize)
void setOrientation(String orientation)
Copyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.