java.lang.Object | |||||
↳ | javax.faces.component.UIComponent | ||||
↳ | javax.faces.component.UIComponentBase | ||||
↳ | javax.faces.component.UIPanel | ||||
↳ | org.apache.myfaces.tobago.internal.component.AbstractUIToolBar | ||||
↳ | org.apache.myfaces.tobago.component.UIToolBar |
'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: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>UIComponent class, generated from template
component1.2.stg
with class
org.apache.myfaces.tobago.internal.taglib.component.ToolBarTagDeclaration.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | COMPONENT_TYPE |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This attribute is for internal use only.
| |||||||||||
This attribute is for internal use only.
| |||||||||||
This attribute is for internal use only.
| |||||||||||
This attribute is for internal use only.
| |||||||||||
This value will usually be set by the layout manager.
| |||||||||||
This value will usually be set by the layout manager.
| |||||||||||
This attribute is for internal use only.
| |||||||||||
This value will usually be set by the layout manager.
| |||||||||||
This attribute is for internal use only.
| |||||||||||
Size of button images, possible values are: small, big, off.
| |||||||||||
Position of the button label, possible values are: right, bottom, off.
| |||||||||||
This value will usually be set by the layout manager.
| |||||||||||
Orientation of toolbar
Default: left Allowed Values: left,right
| |||||||||||
This attribute is for internal use only.
| |||||||||||
This attribute is for internal use only.
| |||||||||||
This attribute is for internal use only.
| |||||||||||
This attribute is for internal use only.
| |||||||||||
Text value to display as tooltip.
| |||||||||||
This value will usually be set by the layout manager.
| |||||||||||
This attribute is for internal use only.
| |||||||||||
This value will usually be set by the layout manager.
| |||||||||||
This attribute is for internal use only.
| |||||||||||
This attribute is for internal use only.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
This value will usually be set by the layout manager. It holds the current height computed by the layout manager.
This value will usually be set by the layout manager. It holds the current width computed by the layout manager.
Size of button images, possible values are: small, big, off.
Default: small
Allowed Values: small,big,off
Position of the button label, possible values are: right, bottom, off.
If toolbar is facet of box: bottom is changed to right!
Default: bottom
Allowed Values: bottom,right,off
This attribute is for internal use only.
This attribute is for internal use only.