org.apache.myfaces.tobago.taglib.component
Interface ToolBarTagDeclaration

All Superinterfaces:
BodyTag, HasBinding, HasDeprecatedDimension, HasDeprecatedHeight, HasDeprecatedWidth, HasId, HasIdBindingAndRendered, HasTip, 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>
      


Field Summary
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Method Summary
 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
 
Methods inherited from interface org.apache.myfaces.tobago.taglib.component.PanelTagDeclaration
setMarkup
 
Methods inherited from interface javax.servlet.jsp.tagext.BodyTag
doInitBody, setBodyContent
 
Methods inherited from interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
 
Methods inherited from interface org.apache.myfaces.tobago.taglib.decl.HasId
setId
 
Methods inherited from interface org.apache.myfaces.tobago.taglib.decl.HasBinding
setBinding
 
Methods inherited from interface org.apache.myfaces.tobago.taglib.decl.IsRendered
setRendered
 
Methods inherited from interface org.apache.myfaces.tobago.taglib.decl.HasDeprecatedWidth
setWidth
 
Methods inherited from interface org.apache.myfaces.tobago.taglib.decl.HasDeprecatedHeight
setHeight
 
Methods inherited from interface org.apache.myfaces.tobago.taglib.decl.HasTip
setTip
 

Method Detail

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-2011 Apache Software Foundation. All Rights Reserved.