Class HtmlOutcomeTargetLink
- java.lang.Object
-
- javax.faces.component.UIComponent
-
- javax.faces.component.UIComponentBase
-
- javax.faces.component.UIOutput
-
- javax.faces.component.UIOutcomeTarget
-
- javax.faces.component.html.HtmlOutcomeTargetLink
-
- All Implemented Interfaces:
java.util.EventListener,ClientBehaviorHolder,PartialStateHolder,StateHolder,TransientStateHolder,ValueHolder,ComponentSystemEventListener,FacesListener,SystemEventListenerHolder
public class HtmlOutcomeTargetLink extends UIOutcomeTarget implements ClientBehaviorHolder
Represents an HTML
a(hyperlink) element that may be used to link to a URL handled by the Faces Servlet resolved preemptively using the logical outcome defined by theoutcomeproperty.By default, the
rendererTypeproperty must be set to "javax.faces.Link". This value can be changed by calling thesetRendererType()method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classHtmlOutcomeTargetLink.PropertyKeys
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOMPONENT_TYPEThe standard component type for this component.-
Fields inherited from class javax.faces.component.UIOutcomeTarget
COMPONENT_FAMILY
-
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
-
-
Constructor Summary
Constructors Constructor Description HtmlOutcomeTargetLink()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAccesskey()Return the value of theaccesskeyproperty.java.lang.StringgetCharset()Return the value of thecharsetproperty.java.lang.StringgetCoords()Return the value of thecoordsproperty.java.lang.StringgetDefaultEventName()This is a default implementation ofClientBehaviorHolder.getDefaultEventName().java.lang.StringgetDir()Return the value of thedirproperty.java.util.Collection<java.lang.String>getEventNames()This is a default implementation ofClientBehaviorHolder.getEventNames().java.lang.StringgetHreflang()Return the value of thehreflangproperty.java.lang.StringgetLang()Return the value of thelangproperty.java.lang.StringgetOnblur()Return the value of theonblurproperty.java.lang.StringgetOnclick()Return the value of theonclickproperty.java.lang.StringgetOndblclick()Return the value of theondblclickproperty.java.lang.StringgetOnfocus()Return the value of theonfocusproperty.java.lang.StringgetOnkeydown()Return the value of theonkeydownproperty.java.lang.StringgetOnkeypress()Return the value of theonkeypressproperty.java.lang.StringgetOnkeyup()Return the value of theonkeyupproperty.java.lang.StringgetOnmousedown()Return the value of theonmousedownproperty.java.lang.StringgetOnmousemove()Return the value of theonmousemoveproperty.java.lang.StringgetOnmouseout()Return the value of theonmouseoutproperty.java.lang.StringgetOnmouseover()Return the value of theonmouseoverproperty.java.lang.StringgetOnmouseup()Return the value of theonmouseupproperty.java.lang.StringgetRel()Return the value of therelproperty.java.lang.StringgetRev()Return the value of therevproperty.java.lang.StringgetRole()Return the value of theroleproperty.java.lang.StringgetShape()Return the value of theshapeproperty.java.lang.StringgetStyle()Return the value of thestyleproperty.java.lang.StringgetStyleClass()Return the value of thestyleClassproperty.java.lang.StringgetTabindex()Return the value of thetabindexproperty.java.lang.StringgetTarget()Return the value of thetargetproperty.java.lang.StringgetTitle()Return the value of thetitleproperty.java.lang.StringgetType()Return the value of thetypeproperty.booleanisDisabled()Return the value of thedisabledproperty.voidsetAccesskey(java.lang.String accesskey)Set the value of theaccesskeyproperty.voidsetCharset(java.lang.String charset)Set the value of thecharsetproperty.voidsetCoords(java.lang.String coords)Set the value of thecoordsproperty.voidsetDir(java.lang.String dir)Set the value of thedirproperty.voidsetDisabled(boolean disabled)Set the value of thedisabledproperty.voidsetHreflang(java.lang.String hreflang)Set the value of thehreflangproperty.voidsetLang(java.lang.String lang)Set the value of thelangproperty.voidsetOnblur(java.lang.String onblur)Set the value of theonblurproperty.voidsetOnclick(java.lang.String onclick)Set the value of theonclickproperty.voidsetOndblclick(java.lang.String ondblclick)Set the value of theondblclickproperty.voidsetOnfocus(java.lang.String onfocus)Set the value of theonfocusproperty.voidsetOnkeydown(java.lang.String onkeydown)Set the value of theonkeydownproperty.voidsetOnkeypress(java.lang.String onkeypress)Set the value of theonkeypressproperty.voidsetOnkeyup(java.lang.String onkeyup)Set the value of theonkeyupproperty.voidsetOnmousedown(java.lang.String onmousedown)Set the value of theonmousedownproperty.voidsetOnmousemove(java.lang.String onmousemove)Set the value of theonmousemoveproperty.voidsetOnmouseout(java.lang.String onmouseout)Set the value of theonmouseoutproperty.voidsetOnmouseover(java.lang.String onmouseover)Set the value of theonmouseoverproperty.voidsetOnmouseup(java.lang.String onmouseup)Set the value of theonmouseupproperty.voidsetRel(java.lang.String rel)Set the value of therelproperty.voidsetRev(java.lang.String rev)Set the value of therevproperty.voidsetRole(java.lang.String role)Set the value of theroleproperty.voidsetShape(java.lang.String shape)Set the value of theshapeproperty.voidsetStyle(java.lang.String style)Set the value of thestyleproperty.voidsetStyleClass(java.lang.String styleClass)Set the value of thestyleClassproperty.voidsetTabindex(java.lang.String tabindex)Set the value of thetabindexproperty.voidsetTarget(java.lang.String target)Set the value of thetargetproperty.voidsetTitle(java.lang.String title)Set the value of thetitleproperty.voidsetType(java.lang.String type)Set the value of thetypeproperty.-
Methods inherited from class javax.faces.component.UIOutcomeTarget
getFamily, getOutcome, isDisableClientWindow, isIncludeViewParams, setDisableClientWindow, setIncludeViewParams, setOutcome
-
Methods inherited from class javax.faces.component.UIOutput
clearInitialState, getConverter, getLocalValue, getValue, markInitialState, resetValue, restoreState, saveState, setConverter, setValue
-
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
-
Methods inherited from class javax.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
-
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
addClientBehavior, getClientBehaviors
-
-
-
-
Field Detail
-
COMPONENT_TYPE
public static final java.lang.String COMPONENT_TYPE
The standard component type for this component.
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAccesskey
public java.lang.String getAccesskey()
Return the value of the
accesskeyproperty.Contents: Access key that, when pressed, transfers focus to this element.
-
setAccesskey
public void setAccesskey(java.lang.String accesskey)
Set the value of the
accesskeyproperty.
-
getCharset
public java.lang.String getCharset()
Return the value of the
charsetproperty.Contents: The character encoding of the resource designated by this hyperlink.
-
setCharset
public void setCharset(java.lang.String charset)
Set the value of the
charsetproperty.
-
getCoords
public java.lang.String getCoords()
Return the value of the
coordsproperty.Contents: The position and shape of the hot spot on the screen (for use in client-side image maps).
-
setCoords
public void setCoords(java.lang.String coords)
Set the value of the
coordsproperty.
-
getDir
public java.lang.String getDir()
Return the value of the
dirproperty.Contents: Direction indication for text that does not inherit directionality. Valid values are "LTR" (left-to-right) and "RTL" (right-to-left). These attributes are case sensitive when rendering to XHTML, so care must be taken to have the correct case.
-
setDir
public void setDir(java.lang.String dir)
Set the value of the
dirproperty.
-
isDisabled
public boolean isDisabled()
Return the value of the
disabledproperty.Contents: Flag indicating that this element must never receive focus or be included in a subsequent submit.
-
setDisabled
public void setDisabled(boolean disabled)
Set the value of the
disabledproperty.
-
getHreflang
public java.lang.String getHreflang()
Return the value of the
hreflangproperty.Contents: The language code of the resource designated by this hyperlink.
-
setHreflang
public void setHreflang(java.lang.String hreflang)
Set the value of the
hreflangproperty.
-
getLang
public java.lang.String getLang()
Return the value of the
langproperty.Contents: Code describing the language used in the generated markup for this component.
-
setLang
public void setLang(java.lang.String lang)
Set the value of the
langproperty.
-
getOnblur
public java.lang.String getOnblur()
Return the value of the
onblurproperty.Contents: Javascript code executed when this element loses focus.
-
setOnblur
public void setOnblur(java.lang.String onblur)
Set the value of the
onblurproperty.
-
getOnclick
public java.lang.String getOnclick()
Return the value of the
onclickproperty.Contents: Javascript code executed when a pointer button is clicked over this element.
-
setOnclick
public void setOnclick(java.lang.String onclick)
Set the value of the
onclickproperty.
-
getOndblclick
public java.lang.String getOndblclick()
Return the value of the
ondblclickproperty.Contents: Javascript code executed when a pointer button is double clicked over this element.
-
setOndblclick
public void setOndblclick(java.lang.String ondblclick)
Set the value of the
ondblclickproperty.
-
getOnfocus
public java.lang.String getOnfocus()
Return the value of the
onfocusproperty.Contents: Javascript code executed when this element receives focus.
-
setOnfocus
public void setOnfocus(java.lang.String onfocus)
Set the value of the
onfocusproperty.
-
getOnkeydown
public java.lang.String getOnkeydown()
Return the value of the
onkeydownproperty.Contents: Javascript code executed when a key is pressed down over this element.
-
setOnkeydown
public void setOnkeydown(java.lang.String onkeydown)
Set the value of the
onkeydownproperty.
-
getOnkeypress
public java.lang.String getOnkeypress()
Return the value of the
onkeypressproperty.Contents: Javascript code executed when a key is pressed and released over this element.
-
setOnkeypress
public void setOnkeypress(java.lang.String onkeypress)
Set the value of the
onkeypressproperty.
-
getOnkeyup
public java.lang.String getOnkeyup()
Return the value of the
onkeyupproperty.Contents: Javascript code executed when a key is released over this element.
-
setOnkeyup
public void setOnkeyup(java.lang.String onkeyup)
Set the value of the
onkeyupproperty.
-
getOnmousedown
public java.lang.String getOnmousedown()
Return the value of the
onmousedownproperty.Contents: Javascript code executed when a pointer button is pressed down over this element.
-
setOnmousedown
public void setOnmousedown(java.lang.String onmousedown)
Set the value of the
onmousedownproperty.
-
getOnmousemove
public java.lang.String getOnmousemove()
Return the value of the
onmousemoveproperty.Contents: Javascript code executed when a pointer button is moved within this element.
-
setOnmousemove
public void setOnmousemove(java.lang.String onmousemove)
Set the value of the
onmousemoveproperty.
-
getOnmouseout
public java.lang.String getOnmouseout()
Return the value of the
onmouseoutproperty.Contents: Javascript code executed when a pointer button is moved away from this element.
-
setOnmouseout
public void setOnmouseout(java.lang.String onmouseout)
Set the value of the
onmouseoutproperty.
-
getOnmouseover
public java.lang.String getOnmouseover()
Return the value of the
onmouseoverproperty.Contents: Javascript code executed when a pointer button is moved onto this element.
-
setOnmouseover
public void setOnmouseover(java.lang.String onmouseover)
Set the value of the
onmouseoverproperty.
-
getOnmouseup
public java.lang.String getOnmouseup()
Return the value of the
onmouseupproperty.Contents: Javascript code executed when a pointer button is released over this element.
-
setOnmouseup
public void setOnmouseup(java.lang.String onmouseup)
Set the value of the
onmouseupproperty.
-
getRel
public java.lang.String getRel()
Return the value of the
relproperty.Contents: The relationship from the current document to the anchor specified by this hyperlink. The value of this attribute is a space-separated list of link types.
-
setRel
public void setRel(java.lang.String rel)
Set the value of the
relproperty.
-
getRev
public java.lang.String getRev()
Return the value of the
revproperty.Contents: A reverse link from the anchor specified by this hyperlink to the current document. The value of this attribute is a space-separated list of link types.
-
setRev
public void setRev(java.lang.String rev)
Set the value of the
revproperty.
-
getRole
public java.lang.String getRole()
Return the value of the
roleproperty.Contents:
Per the WAI-ARIA spec and its relationship to HTML5 (Section title ARIA Role Attriubute), every HTML element may have a "role" attribute whose value must be passed through unmodified on the element on which it is declared in the final rendered markup. The attribute, if specified, must have a value that is a string literal that is, or an EL Expression that evaluates to, a set of space-separated tokens representing the various WAI-ARIA roles that the element belongs to.
It is the page author's responsibility to ensure that the user agent is capable of correctly interpreting the value of this attribute.
-
setRole
public void setRole(java.lang.String role)
Set the value of the
roleproperty.
-
getShape
public java.lang.String getShape()
Return the value of the
shapeproperty.Contents: The shape of the hot spot on the screen (for use in client-side image maps). Valid values are: default (entire region); rect (rectangular region); circle (circular region); and poly (polygonal region).
-
setShape
public void setShape(java.lang.String shape)
Set the value of the
shapeproperty.
-
getStyle
public java.lang.String getStyle()
Return the value of the
styleproperty.Contents: CSS style(s) to be applied when this component is rendered.
-
setStyle
public void setStyle(java.lang.String style)
Set the value of the
styleproperty.
-
getStyleClass
public java.lang.String getStyleClass()
Return the value of the
styleClassproperty.Contents: Space-separated list of CSS style class(es) to be applied when this element is rendered. This value must be passed through as the "class" attribute on generated markup.
-
setStyleClass
public void setStyleClass(java.lang.String styleClass)
Set the value of the
styleClassproperty.
-
getTabindex
public java.lang.String getTabindex()
Return the value of the
tabindexproperty.Contents: Position of this element in the tabbing order for the current document. This value must be an integer between 0 and 32767.
-
setTabindex
public void setTabindex(java.lang.String tabindex)
Set the value of the
tabindexproperty.
-
getTarget
public java.lang.String getTarget()
Return the value of the
targetproperty.Contents: Name of a frame where the resource retrieved via this hyperlink is to be displayed.
-
setTarget
public void setTarget(java.lang.String target)
Set the value of the
targetproperty.
-
getTitle
public java.lang.String getTitle()
Return the value of the
titleproperty.Contents: Advisory title information about markup elements generated for this component.
-
setTitle
public void setTitle(java.lang.String title)
Set the value of the
titleproperty.
-
getType
public java.lang.String getType()
Return the value of the
typeproperty.Contents: The content type of the resource designated by this hyperlink.
-
setType
public void setType(java.lang.String type)
Set the value of the
typeproperty.
-
getEventNames
public java.util.Collection<java.lang.String> getEventNames()
Description copied from class:UIComponentBaseThis is a default implementation of
ClientBehaviorHolder.getEventNames().UIComponentdoes not implement theClientBehaviorHolderinterface, but provides default implementations for the methods defined byClientBehaviorHolderto simplify subclass implementations. Subclasses that wish to support theClientBehaviorHoldercontract must declare that the subclass implementsClientBehaviorHolder, and must override this method to return a non-EmptyCollectionof the client event names that the component supports.- Specified by:
getEventNamesin interfaceClientBehaviorHolder- Overrides:
getEventNamesin classUIComponentBase
-
getDefaultEventName
public java.lang.String getDefaultEventName()
Description copied from class:UIComponentBaseThis is a default implementation of
ClientBehaviorHolder.getDefaultEventName().UIComponentdoes not implement theClientBehaviorHolderinterface, but provides default implementations for the methods defined byClientBehaviorHolderto simplify subclass implementations. Subclasses that wish to support theClientBehaviorHoldercontract must declare that the subclass implementsClientBehaviorHolder, and must provide an implementation ofClientBehaviorHolder.getEventNames().- Specified by:
getDefaultEventNamein interfaceClientBehaviorHolder- Overrides:
getDefaultEventNamein classUIComponentBase
-
-