|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIPanel
org.apache.myfaces.tobago.internal.component.AbstractUIToolBar
org.apache.myfaces.tobago.component.UIToolBar
public class UIToolBar
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 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 component1.2.stg with class
ToolBarTagDeclaration.
| Field Summary | |
|---|---|
static String |
COMPONENT_TYPE
|
| Fields inherited from class org.apache.myfaces.tobago.internal.component.AbstractUIToolBar |
|---|
ICON_BIG, ICON_OFF, ICON_SMALL, LABEL_BOTTOM, LABEL_OFF, LABEL_RIGHT, ORIENTATION_LEFT, ORIENTATION_RIGHT |
| Fields inherited from class javax.faces.component.UIPanel |
|---|
COMPONENT_FAMILY |
| Fields inherited from class javax.faces.component.UIComponent |
|---|
bindings |
| Constructor Summary | |
|---|---|
UIToolBar()
|
|
| Method Summary | |
|---|---|
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. |
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. |
void |
restoreState(javax.faces.context.FacesContext context,
Object componentState)
|
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)
|
| Methods inherited from class javax.faces.component.UIPanel |
|---|
getFamily |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
| Methods inherited from class javax.faces.component.UIComponent |
|---|
encodeAll, getContainerClientId, getValueExpression, setValueExpression |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.myfaces.tobago.layout.LayoutComponent |
|---|
isRendered |
| Methods inherited from interface org.apache.myfaces.tobago.config.Configurable |
|---|
getRendererType |
| Field Detail |
|---|
public static final String COMPONENT_TYPE
| Constructor Detail |
|---|
public UIToolBar()
| Method Detail |
|---|
public Markup getMarkup()
getMarkup in interface SupportsMarkuppublic void setMarkup(Markup markup)
setMarkup in interface SupportsMarkuppublic Measure getMarginLeft()
getMarginLeft in interface LayoutBasepublic void setMarginLeft(Measure marginLeft)
setMarginLeft in interface LayoutBasepublic Measure getMinimumHeight()
getMinimumHeight in interface LayoutBasepublic void setMinimumHeight(Measure minimumHeight)
setMinimumHeight in interface LayoutBasepublic Measure getBorderLeft()
public void setBorderLeft(Measure borderLeft)
public String getTip()
public void setTip(String tip)
public Measure getHeight()
getHeight in interface LayoutBasepublic void setHeight(Measure height)
setHeight in interface LayoutBasepublic Measure getMinimumWidth()
getMinimumWidth in interface LayoutBasepublic void setMinimumWidth(Measure minimumWidth)
setMinimumWidth in interface LayoutBasepublic boolean isOverflowX()
public void setOverflowX(boolean overflowX)
public Integer getRowSpan()
getRowSpan in interface LayoutComponentpublic void setRowSpan(Integer rowSpan)
setRowSpan in interface LayoutComponentpublic boolean isOverflowY()
public void setOverflowY(boolean overflowY)
public Measure getLeft()
getLeft in interface LayoutBasepublic void setLeft(Measure left)
setLeft in interface LayoutBasepublic Integer getColumnSpan()
getColumnSpan in interface LayoutComponentpublic void setColumnSpan(Integer columnSpan)
setColumnSpan in interface LayoutComponentpublic Measure getBorderRight()
public void setBorderRight(Measure borderRight)
public Measure getPaddingBottom()
public void setPaddingBottom(Measure paddingBottom)
public Measure getMaximumHeight()
getMaximumHeight in interface LayoutBasepublic void setMaximumHeight(Measure maximumHeight)
setMaximumHeight in interface LayoutBasepublic Measure getTop()
getTop in interface LayoutBasepublic void setTop(Measure top)
setTop in interface LayoutBasepublic String getOrientation()
leftleft,right
public void setOrientation(String orientation)
public Measure getCurrentWidth()
getCurrentWidth in interface LayoutBasepublic void setCurrentWidth(Measure currentWidth)
setCurrentWidth in interface LayoutBasepublic Measure getPaddingTop()
public void setPaddingTop(Measure paddingTop)
public Measure getMarginTop()
getMarginTop in interface LayoutBasepublic void setMarginTop(Measure marginTop)
setMarginTop in interface LayoutBasepublic Measure getMarginRight()
getMarginRight in interface LayoutBasepublic void setMarginRight(Measure marginRight)
setMarginRight in interface LayoutBasepublic Measure getWidth()
getWidth in interface LayoutBasepublic void setWidth(Measure width)
setWidth in interface LayoutBasepublic Measure getCurrentHeight()
getCurrentHeight in interface LayoutBasepublic void setCurrentHeight(Measure currentHeight)
setCurrentHeight in interface LayoutBasepublic Measure getPreferredHeight()
getPreferredHeight in interface LayoutBasepublic void setPreferredHeight(Measure preferredHeight)
setPreferredHeight in interface LayoutBasepublic String getLabelPosition()
bottombottom,right,off
public void setLabelPosition(String labelPosition)
public Display getDisplay()
getDisplay in interface LayoutComponentpublic void setDisplay(Display display)
setDisplay in interface LayoutComponentpublic Measure getBorderBottom()
public void setBorderBottom(Measure borderBottom)
public Measure getMaximumWidth()
getMaximumWidth in interface LayoutBasepublic void setMaximumWidth(Measure maximumWidth)
setMaximumWidth in interface LayoutBasepublic Measure getPaddingLeft()
public void setPaddingLeft(Measure paddingLeft)
public Measure getPaddingRight()
public void setPaddingRight(Measure paddingRight)
public Measure getPreferredWidth()
getPreferredWidth in interface LayoutBasepublic void setPreferredWidth(Measure preferredWidth)
setPreferredWidth in interface LayoutBasepublic Measure getMarginBottom()
getMarginBottom in interface LayoutBasepublic void setMarginBottom(Measure marginBottom)
setMarginBottom in interface LayoutBasepublic String getIconSize()
smallsmall,big,off
public void setIconSize(String iconSize)
public Integer getVerticalIndex()
getVerticalIndex in interface LayoutComponentpublic void setVerticalIndex(Integer verticalIndex)
setVerticalIndex in interface LayoutComponentpublic Measure getBorderTop()
public void setBorderTop(Measure borderTop)
public Markup getCurrentMarkup()
getCurrentMarkup in interface SupportsMarkupgetCurrentMarkup in interface Configurablepublic void setCurrentMarkup(Markup currentMarkup)
setCurrentMarkup in interface SupportsMarkuppublic Integer getHorizontalIndex()
getHorizontalIndex in interface LayoutComponentpublic void setHorizontalIndex(Integer horizontalIndex)
setHorizontalIndex in interface LayoutComponent
public void restoreState(javax.faces.context.FacesContext context,
Object componentState)
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.UIComponentBasepublic Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class javax.faces.component.UIComponentBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||