|
||||||||||
| 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
com.infragistics.faces.shared.component.DataRepeater
com.infragistics.faces.menu.component.MenuItem
Represents an individual menu item and defines the following basics functionalities :
Bound and unbound mode
Just like menus, menu items supports bound as well as unbound mode. In unbound mode, menu items are created declaratively (in a JSP page) or added programmatically.
In bound mode (whenever the dataSource property points to a valid data model of a backing bean) menu items are automatically created, one node for each row of the data model.
Look and Feel
An icon can also be displayed next to a menu item by calling setIconUrl(String) and setHoverIconUrl(String).
Emits ActionEvent whenever clicked-on
| Field Summary | |
static java.lang.String |
COMPONENT_FAMILY
|
static java.lang.String |
COMPONENT_TYPE
|
static java.lang.String |
RENDERER_TYPE
|
| Fields inherited from class com.infragistics.faces.shared.component.DataRepeater |
DATA_ROW |
| Fields inherited from interface javax.faces.component.NamingContainer |
SEPARATOR_CHAR |
| Constructor Summary | |
MenuItem()
|
|
| Method Summary | |
void |
addActionListener(javax.faces.event.ActionListener listener)
|
void |
broadcast(javax.faces.event.FacesEvent event)
|
javax.faces.el.MethodBinding |
getAction()
|
javax.faces.el.MethodBinding |
getActionListener()
|
javax.faces.event.ActionListener[] |
getActionListeners()
|
javax.faces.convert.Converter |
getConverter()
|
java.lang.String |
getFamily()
|
java.lang.String |
getHoverIconUrl()
Returns the URL for image displayed when the mouse is moves over the item |
java.lang.String |
getIconUrl()
Returns the URL for image displayed by default in the item |
java.lang.Object |
getLocalValue()
|
Menu |
getMenu()
Returns the Menu this item belongs to |
java.lang.String |
getShortcut()
Returns the shortcut key associated with this menu item. |
java.util.List |
getSiblings()
Returns a list of all siblings nodes |
java.lang.String |
getTooltip()
Returns the tooltip that is displayed |
java.lang.Object |
getValue()
|
boolean |
isDisabled()
Returns the state of this node: true if disabled, false otherwise |
boolean |
isImmediate()
|
boolean |
isRoot()
Returns whether this is a root node or not. |
void |
queueEvent(javax.faces.event.FacesEvent event)
|
void |
removeActionListener(javax.faces.event.ActionListener listener)
|
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setAction(javax.faces.el.MethodBinding action)
|
void |
setActionListener(javax.faces.el.MethodBinding actionListener)
|
void |
setConverter(javax.faces.convert.Converter converter)
|
void |
setDisabled(boolean disabled)
Sets the state of this node: true if disabled, false otherwise |
void |
setHoverIconUrl(java.lang.String hoverIconUrl)
Sets the URL for image displayed when the mouse is moves over the item |
void |
setIconUrl(java.lang.String iconUrl)
Sets the URL for image displayed by default in the item |
void |
setImmediate(boolean immediate)
|
void |
setShortcut(java.lang.String shortcut)
Sets the shortcut key associated with this menu item |
void |
setTooltip(java.lang.String tooltip)
Sets the tooltip that is displayed |
void |
setValue(java.lang.Object value)
|
| Methods inherited from class com.infragistics.faces.shared.component.DataRepeater |
dataBind, encodeBegin, encodeEnd, export, getDataKeyName, getDataKeyValue, getDataSource, getTemplateItems, popDataRow, processUpdates, processValidators, pushDataRow, setDataKeyName, setDataSource, setValueBinding |
| Methods inherited from class javax.faces.component.UIComponentBase |
decode, encodeChildren, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.lang.String COMPONENT_FAMILY
public static java.lang.String COMPONENT_TYPE
public static java.lang.String RENDERER_TYPE
| Constructor Detail |
public MenuItem()
| Method Detail |
public void addActionListener(javax.faces.event.ActionListener listener)
addActionListener in interface javax.faces.component.ActionSource
public void broadcast(javax.faces.event.FacesEvent event)
throws javax.faces.event.AbortProcessingException
broadcast in class DataRepeaterjavax.faces.event.AbortProcessingExceptionpublic javax.faces.el.MethodBinding getAction()
getAction in interface javax.faces.component.ActionSourcepublic javax.faces.el.MethodBinding getActionListener()
getActionListener in interface javax.faces.component.ActionSourcepublic javax.faces.event.ActionListener[] getActionListeners()
getActionListeners in interface javax.faces.component.ActionSourcepublic javax.faces.convert.Converter getConverter()
getConverter in interface javax.faces.component.ValueHolderpublic java.lang.String getFamily()
getFamily in class DataRepeaterpublic java.lang.Object getLocalValue()
getLocalValue in interface javax.faces.component.ValueHolderpublic Menu getMenu()
Menu this item belongs to
public java.lang.String getShortcut()
public java.util.List getSiblings()
public java.lang.String getTooltip()
public java.lang.Object getValue()
getValue in interface javax.faces.component.ValueHolderpublic boolean isDisabled()
public java.lang.String getHoverIconUrl()
public java.lang.String getIconUrl()
public boolean isImmediate()
isImmediate in interface javax.faces.component.ActionSourcepublic boolean isRoot()
public void queueEvent(javax.faces.event.FacesEvent event)
queueEvent in class DataRepeaterpublic void removeActionListener(javax.faces.event.ActionListener listener)
removeActionListener in interface javax.faces.component.ActionSource
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class DataRepeaterpublic java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class DataRepeaterpublic void setAction(javax.faces.el.MethodBinding action)
setAction in interface javax.faces.component.ActionSourcepublic void setActionListener(javax.faces.el.MethodBinding actionListener)
setActionListener in interface javax.faces.component.ActionSourcepublic void setConverter(javax.faces.convert.Converter converter)
setConverter in interface javax.faces.component.ValueHolderpublic void setDisabled(boolean disabled)
disabled - public void setHoverIconUrl(java.lang.String hoverIconUrl)
hoverIconUrl - Stringpublic void setIconUrl(java.lang.String iconUrl)
iconUrl - Stringpublic void setImmediate(boolean immediate)
setImmediate in interface javax.faces.component.ActionSourcepublic void setShortcut(java.lang.String shortcut)
shortcut - The shortcut to set.public void setTooltip(java.lang.String tooltip)
tooltip - The tooltip to set.public void setValue(java.lang.Object value)
setValue in interface javax.faces.component.ValueHolder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||