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: left Allowed 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, visitTree
getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getValueExpression, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isRendered
getRendererType
public static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
public String getFamily()
getFamily
in class javax.faces.component.UIPanel
public Integer getColumnSpan()
getColumnSpan
in interface LayoutComponent
public void setColumnSpan(Integer columnSpan)
setColumnSpan
in interface LayoutComponent
public Measure getPreferredWidth()
getPreferredWidth
in interface LayoutBase
public void setPreferredWidth(Measure preferredWidth)
setPreferredWidth
in interface LayoutBase
public Integer getHorizontalIndex()
getHorizontalIndex
in interface LayoutComponent
public void setHorizontalIndex(Integer horizontalIndex)
setHorizontalIndex
in interface LayoutComponent
public Measure getPaddingRight()
public void setPaddingRight(Measure paddingRight)
public Measure getBorderTop()
public void setBorderTop(Measure borderTop)
public Measure getPreferredHeight()
getPreferredHeight
in interface LayoutBase
public void setPreferredHeight(Measure preferredHeight)
setPreferredHeight
in interface LayoutBase
public Measure getMarginRight()
getMarginRight
in interface LayoutBase
public void setMarginRight(Measure marginRight)
setMarginRight
in interface LayoutBase
public Measure getBorderLeft()
public void setBorderLeft(Measure borderLeft)
public Measure getPaddingBottom()
public void setPaddingBottom(Measure paddingBottom)
public Measure getTop()
getTop
in interface LayoutBase
public void setTop(Measure top)
setTop
in interface LayoutBase
public Measure getCurrentWidth()
getCurrentWidth
in interface LayoutBase
public void setCurrentWidth(Measure currentWidth)
setCurrentWidth
in interface LayoutBase
public String getLabelPosition()
bottom
bottom,right,off
public void setLabelPosition(String labelPosition)
public Measure getMaximumWidth()
getMaximumWidth
in interface LayoutBase
public void setMaximumWidth(Measure maximumWidth)
setMaximumWidth
in interface LayoutBase
public Measure getCurrentHeight()
getCurrentHeight
in interface LayoutBase
public void setCurrentHeight(Measure currentHeight)
setCurrentHeight
in interface LayoutBase
public String getIconSize()
small
small,big,off
public 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 LayoutBase
public void setHeight(Measure height)
setHeight
in interface LayoutBase
public Integer getRowSpan()
getRowSpan
in interface LayoutComponent
public void setRowSpan(Integer rowSpan)
setRowSpan
in interface LayoutComponent
public String getOrientation()
left
left,right
public void setOrientation(String orientation)
public Markup getMarkup()
getMarkup
in interface SupportsMarkup
public void setMarkup(Markup markup)
setMarkup
in interface SupportsMarkup
public Display getDisplay()
getDisplay
in interface LayoutComponent
public void setDisplay(Display display)
setDisplay
in interface LayoutComponent
public Measure getMinimumHeight()
getMinimumHeight
in interface LayoutBase
public void setMinimumHeight(Measure minimumHeight)
setMinimumHeight
in interface LayoutBase
public Markup getCurrentMarkup()
getCurrentMarkup
in interface SupportsMarkup
getCurrentMarkup
in interface Configurable
public void setCurrentMarkup(Markup currentMarkup)
setCurrentMarkup
in interface SupportsMarkup
public Measure getMarginLeft()
getMarginLeft
in interface LayoutBase
public void setMarginLeft(Measure marginLeft)
setMarginLeft
in interface LayoutBase
public boolean isOverflowX()
public void setOverflowX(boolean overflowX)
public boolean isOverflowY()
public void setOverflowY(boolean overflowY)
public Measure getLeft()
getLeft
in interface LayoutBase
public void setLeft(Measure left)
setLeft
in interface LayoutBase
public Measure getBorderRight()
public void setBorderRight(Measure borderRight)
public Measure getWidth()
getWidth
in interface LayoutBase
public void setWidth(Measure width)
setWidth
in interface LayoutBase
public Measure getMaximumHeight()
getMaximumHeight
in interface LayoutBase
public void setMaximumHeight(Measure maximumHeight)
setMaximumHeight
in interface LayoutBase
public Measure getMarginBottom()
getMarginBottom
in interface LayoutBase
public void setMarginBottom(Measure marginBottom)
setMarginBottom
in interface LayoutBase
public Integer getVerticalIndex()
getVerticalIndex
in interface LayoutComponent
public void setVerticalIndex(Integer verticalIndex)
setVerticalIndex
in interface LayoutComponent
public Measure getMinimumWidth()
getMinimumWidth
in interface LayoutBase
public void setMinimumWidth(Measure minimumWidth)
setMinimumWidth
in interface LayoutBase
public Measure getPaddingLeft()
public void setPaddingLeft(Measure paddingLeft)
public Measure getMarginTop()
getMarginTop
in interface LayoutBase
public void setMarginTop(Measure marginTop)
setMarginTop
in interface LayoutBase
public Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.component.UIComponentBase
Copyright © 2002-2018 The Apache Software Foundation. All Rights Reserved.