public class UIToolBar extends AbstractUIToolBar implements SupportsMarkup
'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>
UIComponent class, generated from template component2.0.stg with class
ToolBarTagDeclaration.| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
ICON_BIG, ICON_OFF, ICON_SMALL, LABEL_BOTTOM, LABEL_OFF, LABEL_RIGHT, ORIENTATION_LEFT, ORIENTATION_RIGHT| Constructor and Description |
|---|
UIToolBar() |
| Modifier and Type | Method and Description |
|---|---|
Measure |
getBorderBottom()
This attribute is for internal use only.
|
Measure |
getBorderLeft()
This attribute is for internal use only.
|
Measure |
getBorderRight()
This attribute is for internal use only.
|
Measure |
getBorderTop()
This attribute is for internal use only.
|
Integer |
getColumnSpan() |
Measure |
getCurrentHeight()
This value will usually be set by the layout manager.
|
Markup |
getCurrentMarkup() |
Measure |
getCurrentWidth()
This value will usually be set by the layout manager.
|
Display |
getDisplay()
This attribute is for internal use only.
|
String |
getFamily() |
Measure |
getHeight()
This value will usually be set by the layout manager.
|
Integer |
getHorizontalIndex()
This attribute is for internal use only.
|
String |
getIconSize()
Size of button images, possible values are: small, big, off.
|
String |
getLabelPosition()
Position of the button label, possible values are: right, bottom, off.
|
Measure |
getLeft()
This value will usually be set by the layout manager.
|
Measure |
getMarginBottom() |
Measure |
getMarginLeft() |
Measure |
getMarginRight() |
Measure |
getMarginTop() |
Markup |
getMarkup() |
Measure |
getMaximumHeight() |
Measure |
getMaximumWidth() |
Measure |
getMinimumHeight() |
Measure |
getMinimumWidth() |
String |
getOrientation()
Orientation of toolbar
Default: leftAllowed Values: left,right |
Measure |
getPaddingBottom()
This attribute is for internal use only.
|
Measure |
getPaddingLeft()
This attribute is for internal use only.
|
Measure |
getPaddingRight()
This attribute is for internal use only.
|
Measure |
getPaddingTop()
This attribute is for internal use only.
|
Measure |
getPreferredHeight() |
Measure |
getPreferredWidth() |
Integer |
getRowSpan() |
String |
getTip()
Text value to display as tooltip.
|
Measure |
getTop()
This value will usually be set by the layout manager.
|
Integer |
getVerticalIndex()
This attribute is for internal use only.
|
Measure |
getWidth()
This value will usually be set by the layout manager.
|
boolean |
isOverflowX()
This attribute is for internal use only.
|
boolean |
isOverflowY()
This attribute is for internal use only.
|
Object |
saveState(javax.faces.context.FacesContext context) |
void |
setBorderBottom(Measure borderBottom) |
void |
setBorderLeft(Measure borderLeft) |
void |
setBorderRight(Measure borderRight) |
void |
setBorderTop(Measure borderTop) |
void |
setColumnSpan(Integer columnSpan) |
void |
setCurrentHeight(Measure currentHeight) |
void |
setCurrentMarkup(Markup currentMarkup) |
void |
setCurrentWidth(Measure currentWidth) |
void |
setDisplay(Display display) |
void |
setHeight(Measure height) |
void |
setHorizontalIndex(Integer horizontalIndex) |
void |
setIconSize(String iconSize) |
void |
setLabelPosition(String labelPosition) |
void |
setLeft(Measure left) |
void |
setMarginBottom(Measure marginBottom) |
void |
setMarginLeft(Measure marginLeft) |
void |
setMarginRight(Measure marginRight) |
void |
setMarginTop(Measure marginTop) |
void |
setMarkup(Markup markup) |
void |
setMaximumHeight(Measure maximumHeight) |
void |
setMaximumWidth(Measure maximumWidth) |
void |
setMinimumHeight(Measure minimumHeight) |
void |
setMinimumWidth(Measure minimumWidth) |
void |
setOrientation(String orientation) |
void |
setOverflowX(boolean overflowX) |
void |
setOverflowY(boolean overflowY) |
void |
setPaddingBottom(Measure paddingBottom) |
void |
setPaddingLeft(Measure paddingLeft) |
void |
setPaddingRight(Measure paddingRight) |
void |
setPaddingTop(Measure paddingTop) |
void |
setPreferredHeight(Measure preferredHeight) |
void |
setPreferredWidth(Measure preferredWidth) |
void |
setRowSpan(Integer rowSpan) |
void |
setTip(String tip) |
void |
setTop(Measure top) |
void |
setVerticalIndex(Integer verticalIndex) |
void |
setWidth(Measure width) |
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeAll, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, initialStateMarked, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, visitTreegetClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getValueExpression, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEventclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisRenderedgetRendererTypepublic static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
public String getFamily()
getFamily in class javax.faces.component.UIPanelpublic Integer getColumnSpan()
getColumnSpan in interface LayoutComponentpublic void setColumnSpan(Integer columnSpan)
setColumnSpan in interface LayoutComponentpublic Measure getPreferredWidth()
getPreferredWidth in interface LayoutBasepublic void setPreferredWidth(Measure preferredWidth)
setPreferredWidth in interface LayoutBasepublic Integer getHorizontalIndex()
getHorizontalIndex in interface LayoutComponentpublic void setHorizontalIndex(Integer horizontalIndex)
setHorizontalIndex in interface LayoutComponentpublic Measure getPaddingRight()
public void setPaddingRight(Measure paddingRight)
public Measure getBorderTop()
public void setBorderTop(Measure borderTop)
public Measure getPreferredHeight()
getPreferredHeight in interface LayoutBasepublic void setPreferredHeight(Measure preferredHeight)
setPreferredHeight in interface LayoutBasepublic Measure getMarginRight()
getMarginRight in interface LayoutBasepublic void setMarginRight(Measure marginRight)
setMarginRight in interface LayoutBasepublic Measure getBorderLeft()
public void setBorderLeft(Measure borderLeft)
public Measure getPaddingBottom()
public void setPaddingBottom(Measure paddingBottom)
public Measure getTop()
getTop in interface LayoutBasepublic void setTop(Measure top)
setTop in interface LayoutBasepublic Measure getCurrentWidth()
getCurrentWidth in interface LayoutBasepublic void setCurrentWidth(Measure currentWidth)
setCurrentWidth in interface LayoutBasepublic String getLabelPosition()
bottombottom,right,offpublic void setLabelPosition(String labelPosition)
public Measure getMaximumWidth()
getMaximumWidth in interface LayoutBasepublic void setMaximumWidth(Measure maximumWidth)
setMaximumWidth in interface LayoutBasepublic Measure getCurrentHeight()
getCurrentHeight in interface LayoutBasepublic void setCurrentHeight(Measure currentHeight)
setCurrentHeight in interface LayoutBasepublic String getIconSize()
smallsmall,big,offpublic void setIconSize(String iconSize)
public String getTip()
public void setTip(String tip)
public Measure getPaddingTop()
public void setPaddingTop(Measure paddingTop)
public Measure getBorderBottom()
public void setBorderBottom(Measure borderBottom)
public Measure getHeight()
getHeight in interface LayoutBasepublic void setHeight(Measure height)
setHeight in interface LayoutBasepublic Integer getRowSpan()
getRowSpan in interface LayoutComponentpublic void setRowSpan(Integer rowSpan)
setRowSpan in interface LayoutComponentpublic String getOrientation()
leftleft,rightpublic void setOrientation(String orientation)
public Markup getMarkup()
getMarkup in interface SupportsMarkuppublic void setMarkup(Markup markup)
setMarkup in interface SupportsMarkuppublic Display getDisplay()
getDisplay in interface LayoutComponentpublic void setDisplay(Display display)
setDisplay in interface LayoutComponentpublic Measure getMinimumHeight()
getMinimumHeight in interface LayoutBasepublic void setMinimumHeight(Measure minimumHeight)
setMinimumHeight in interface LayoutBasepublic Markup getCurrentMarkup()
getCurrentMarkup in interface SupportsMarkupgetCurrentMarkup in interface Configurablepublic void setCurrentMarkup(Markup currentMarkup)
setCurrentMarkup in interface SupportsMarkuppublic Measure getMarginLeft()
getMarginLeft in interface LayoutBasepublic void setMarginLeft(Measure marginLeft)
setMarginLeft in interface LayoutBasepublic boolean isOverflowX()
public void setOverflowX(boolean overflowX)
public boolean isOverflowY()
public void setOverflowY(boolean overflowY)
public Measure getLeft()
getLeft in interface LayoutBasepublic void setLeft(Measure left)
setLeft in interface LayoutBasepublic Measure getBorderRight()
public void setBorderRight(Measure borderRight)
public Measure getWidth()
getWidth in interface LayoutBasepublic void setWidth(Measure width)
setWidth in interface LayoutBasepublic Measure getMaximumHeight()
getMaximumHeight in interface LayoutBasepublic void setMaximumHeight(Measure maximumHeight)
setMaximumHeight in interface LayoutBasepublic Measure getMarginBottom()
getMarginBottom in interface LayoutBasepublic void setMarginBottom(Measure marginBottom)
setMarginBottom in interface LayoutBasepublic Integer getVerticalIndex()
getVerticalIndex in interface LayoutComponentpublic void setVerticalIndex(Integer verticalIndex)
setVerticalIndex in interface LayoutComponentpublic Measure getMinimumWidth()
getMinimumWidth in interface LayoutBasepublic void setMinimumWidth(Measure minimumWidth)
setMinimumWidth in interface LayoutBasepublic Measure getPaddingLeft()
public void setPaddingLeft(Measure paddingLeft)
public Measure getMarginTop()
getMarginTop in interface LayoutBasepublic void setMarginTop(Measure marginTop)
setMarginTop in interface LayoutBasepublic Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class javax.faces.component.UIComponentBaseCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.