Class CommandLinkComponent
java.lang.Object
jakarta.faces.component.UIComponent
jakarta.faces.component.UIComponentBase
jakarta.faces.component.UICommand
org.apache.struts.faces.component.CommandLinkComponent
- All Implemented Interfaces:
ActionSource
,ActionSource2
,PartialStateHolder
,StateHolder
,TransientStateHolder
,ComponentSystemEventListener
,FacesListener
,SystemEventListenerHolder
,EventListener
Custom component that emulates the JSF standard component class
jakarta.faces.component.html.HtmlCommandLink
(and its
corresponding renderer) but is not tied to a particular implementation of
renderer for jakarta.faces.component.UIForm
.-
Field Summary
Fields inherited from class jakarta.faces.component.UICommand
COMPONENT_FAMILY, COMPONENT_TYPE
Fields inherited from class jakarta.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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDir()
Return the component family to which this component belongs.getLang()
getRel()
getRev()
getStyle()
getTitle()
getType()
void
restoreState
(FacesContext context, Object state) Restore the state of this component.saveState
(FacesContext context) Save the state of this component.void
setAccesskey
(String accesskey) void
setCharset
(String charset) void
void
setHreflang
(String hreflang) void
void
void
setOnclick
(String onclick) void
setOndblclick
(String ondblclick) void
setOnfocus
(String onfocus) void
setOnkeydown
(String onkeydown) void
setOnkeypress
(String onkeypress) void
setOnkeyup
(String onkeyup) void
setOnmousedown
(String onmousedown) void
setOnmousemove
(String onmousemove) void
setOnmouseout
(String onmouseout) void
setOnmouseover
(String onmouseover) void
setOnmouseup
(String onmouseup) void
void
void
void
setStyleClass
(String styleClass) void
setTabindex
(String tabindex) void
void
void
Methods inherited from class jakarta.faces.component.UICommand
addActionListener, broadcast, getAction, getActionExpression, getActionListener, getActionListeners, getValue, isImmediate, queueEvent, removeActionListener, setAction, setActionExpression, setActionListener, setImmediate, setValue
Methods inherited from class jakarta.faces.component.UIComponentBase
addClientBehavior, addFacesListener, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
Methods inherited from class jakarta.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
-
Constructor Details
-
CommandLinkComponent
public CommandLinkComponent()Create a new
CommandLinkComponent
with default properties.
-
-
Method Details
-
getAccesskey
-
setAccesskey
-
getCharset
-
setCharset
-
getDir
-
setDir
-
getFamily
Return the component family to which this component belongs.
-
getHreflang
-
setHreflang
-
getLang
-
setLang
-
getOnblur
-
setOnblur
-
getOnclick
-
setOnclick
-
getOndblclick
-
setOndblclick
-
getOnfocus
-
setOnfocus
-
getOnkeydown
-
setOnkeydown
-
getOnkeypress
-
setOnkeypress
-
getOnkeyup
-
setOnkeyup
-
getOnmousedown
-
setOnmousedown
-
getOnmousemove
-
setOnmousemove
-
getOnmouseout
-
setOnmouseout
-
getOnmouseover
-
setOnmouseover
-
getOnmouseup
-
setOnmouseup
-
getRel
-
setRel
-
getRev
-
setRev
-
getStyle
-
setStyle
-
getStyleClass
-
setStyleClass
-
getTabindex
-
setTabindex
-
getTarget
-
setTarget
-
getTitle
-
setTitle
-
getType
-
setType
-
restoreState
Restore the state of this component.
- Specified by:
restoreState
in interfaceStateHolder
- Overrides:
restoreState
in classUIComponentBase
- Parameters:
context
-FacesContext
for the current requeststate
- State object from which to restore our state
-
saveState
Save the state of this component.
- Specified by:
saveState
in interfaceStateHolder
- Overrides:
saveState
in classUIComponentBase
- Parameters:
context
-FacesContext
for the current request
-