org.apache.myfaces.custom.navmenu.htmlnavmenu
Class AbstractHtmlCommandNavigationItem
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UICommand
javax.faces.component.html.HtmlCommandLink
org.apache.myfaces.component.html.ext.AbstractHtmlCommandLink
org.apache.myfaces.component.html.ext.HtmlCommandLink
org.apache.myfaces.custom.navmenu.htmlnavmenu.AbstractHtmlCommandNavigationItem
- All Implemented Interfaces:
- EventListener, javax.faces.component.ActionSource, javax.faces.component.ActionSource2, javax.faces.component.behavior.ClientBehaviorHolder, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.component.TransientStateHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder, ForceIdAware, UserRoleAware
- Direct Known Subclasses:
- HtmlCommandNavigationItem
public abstract class AbstractHtmlCommandNavigationItem
- extends HtmlCommandLink
Must be nested inside a panel_navigation action and renders a
clickable navigation item.
This action is derived from the standard command_link action
and has equal attributes. (Replaces former "navigation_item"
tag.)
Unless otherwise specified, all attributes accept static
values or EL expressions.
Many thanks to the guys from Swiss Federal Institute of Intellectual Property and Marc Bouquet
for helping to develop this component.
- Since:
- 1.1.7
- Author:
- Manfred Geiler, Thomas Spiegl
Fields inherited from class javax.faces.component.UIComponent |
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY |
Methods inherited from class org.apache.myfaces.component.html.ext.HtmlCommandLink |
addClientBehavior, getAccesskey, getActionFor, getCharset, getCoords, getDir, getDisabledStyle, getDisabledStyleClass, getEnabledOnUserRole, getFamily, getHreflang, getLang, getOnblur, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getRel, getRev, getShape, getStyle, getStyleClass, getTabindex, getTarget, getTitle, getType, getVisibleOnUserRole, isDisabled, isForceId, isForceIdIndex, setAccesskey, setActionFor, setCharset, setCoords, setDir, setDisabled, setDisabledStyle, setDisabledStyleClass, setEnabledOnUserRole, setForceId, setForceIdIndex, setHreflang, setLang, setOnblur, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setRel, setRev, setShape, setStyle, setStyleClass, setTabindex, setTarget, setTitle, setType, setValueBinding, setValueExpression, setVisibleOnUserRole |
Methods inherited from class javax.faces.component.html.HtmlCommandLink |
getDefaultEventName, getEventNames |
Methods inherited from class javax.faces.component.UICommand |
addActionListener, getAction, getActionExpression, getActionListener, getActionListeners, getValue, queueEvent, removeActionListener, setAction, setActionExpression, setActionListener, setImmediate, setValue |
Methods inherited from class javax.faces.component.UIComponentBase |
addFacesListener, clearInitialState, decode, encodeAll, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, initialStateMarked, invokeOnComponent, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, visitTree |
Methods inherited from class javax.faces.component.UIComponent |
getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, subscribeToEvent, unsubscribeFromEvent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.faces.component.behavior.ClientBehaviorHolder |
getClientBehaviors |
COMPONENT_TYPE
public static final String COMPONENT_TYPE
- See Also:
- Constant Field Values
COMPONENT_FAMILY
public static final String COMPONENT_FAMILY
- See Also:
- Constant Field Values
AbstractHtmlCommandNavigationItem
public AbstractHtmlCommandNavigationItem()
isImmediate
public boolean isImmediate()
- Specified by:
isImmediate
in interface javax.faces.component.ActionSource
- Overrides:
isImmediate
in class javax.faces.component.UICommand
setImmediate
public void setImmediate(Boolean immediate)
isOpen
public abstract boolean isOpen()
- Menu node is open.
isSetOpen
protected abstract boolean isSetOpen()
isLocalOpen
protected abstract boolean isLocalOpen()
setOpen
public abstract void setOpen(boolean open)
getOpenDirectly
public Boolean getOpenDirectly()
getActiveDirectly
public Boolean getActiveDirectly()
isActive
public abstract boolean isActive()
- Menu node is active.
isSetActive
protected abstract boolean isSetActive()
isLocalActive
protected abstract boolean isLocalActive()
setActive
public abstract void setActive(boolean active)
getActiveOnViewIds
public abstract String getActiveOnViewIds()
- A comma separated list of viewIds for which this item
should be active.
getExternalLink
public abstract String getExternalLink()
- The external link where to redirect when this is clicked.
isRendered
public boolean isRendered()
- Overrides:
isRendered
in class AbstractHtmlCommandLink
- Returns:
- false, if this item is child of another HtmlCommandNavigation, which is closed
toggleOpen
public void toggleOpen()
getActiveOnVieIds
public String[] getActiveOnVieIds()
deactivateAll
public void deactivateAll()
deactivateChildren
public void deactivateChildren()
broadcast
public void broadcast(javax.faces.event.FacesEvent event)
throws javax.faces.event.AbortProcessingException
- Overrides:
broadcast
in class javax.faces.component.UICommand
- Throws:
javax.faces.event.AbortProcessingException
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.