Class LinkTag
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
org.apache.empire.jsf2.components.LinkTag
- All Implemented Interfaces:
EventListener,javax.faces.component.PartialStateHolder,javax.faces.component.StateHolder,javax.faces.component.TransientStateHolder,javax.faces.component.ValueHolder,javax.faces.event.ComponentSystemEventListener,javax.faces.event.FacesListener,javax.faces.event.SystemEventListenerHolder,TagEncodingHelperFactory.TagEncodingHolder
- Direct Known Subclasses:
MenuItemTag
public class LinkTag
extends javax.faces.component.UIOutput
implements TagEncodingHelperFactory.TagEncodingHolder
-
Field Summary
FieldsFields inherited from class javax.faces.component.UIOutput
COMPONENT_FAMILY, COMPONENT_TYPEFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddOrSetParam(javax.faces.component.html.HtmlOutcomeTargetLink link, String paramName, String paramValue) protected voidaddOrSetParams(javax.faces.component.html.HtmlOutcomeTargetLink link) protected javax.faces.component.html.HtmlOutcomeTargetLinkcreateOutcomeTargetLink(javax.faces.context.FacesContext context) voidencodeBegin(javax.faces.context.FacesContext context) voidencodeChildren(javax.faces.context.FacesContext context) voidencodeEnd(javax.faces.context.FacesContext context) protected javax.faces.component.html.HtmlGraphicImageencodeImage(javax.faces.context.FacesContext context, javax.faces.component.html.HtmlOutcomeTargetLink parent, String imagePath) protected voidencodeLinkComponent(javax.faces.context.FacesContext context, javax.faces.component.html.HtmlOutcomeTargetLink linkComponent) voidforceEncodeChildren(javax.faces.context.FacesContext context) required for MenuItemTaggetClientId(javax.faces.context.FacesContext context) protected javax.faces.component.html.HtmlOutcomeTargetLinkprotected Stringprotected ObjectgetLinkValue(boolean hasColumn) protected booleanisEncodeLinkChildren(Object linkValue) protected booleanvoidprotected voidsetLinkProperties(javax.faces.component.html.HtmlOutcomeTargetLink link) booleanvisitTree(javax.faces.component.visit.VisitContext visitContext, javax.faces.component.visit.VisitCallback callback) protected StringwriteStartElement(javax.faces.context.ResponseWriter writer) Methods inherited from class javax.faces.component.UIOutput
clearInitialState, getConverter, getLocalValue, getValue, markInitialState, resetValue, restoreState, saveState, setConverter, setValueMethods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, broadcast, decode, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getDefaultEventName, getEventNames, 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, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEventMethods 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
-
Field Details
-
helper
-
SPAN_ELEM
- See Also:
-
-
Constructor Details
-
LinkTag
public LinkTag()
-
-
Method Details
-
getFamily
- Overrides:
getFamilyin classjavax.faces.component.UIOutput
-
getEncodingHelper
- Specified by:
getEncodingHelperin interfaceTagEncodingHelperFactory.TagEncodingHolder
-
setId
- Overrides:
setIdin classjavax.faces.component.UIComponentBase
-
visitTree
public boolean visitTree(javax.faces.component.visit.VisitContext visitContext, javax.faces.component.visit.VisitCallback callback) - Overrides:
visitTreein classjavax.faces.component.UIComponent
-
getClientId
- Overrides:
getClientIdin classjavax.faces.component.UIComponentBase
-
encodeBegin
- Overrides:
encodeBeginin classjavax.faces.component.UIComponentBase- Throws:
IOException
-
encodeChildren
- Overrides:
encodeChildrenin classjavax.faces.component.UIComponentBase- Throws:
IOException
-
forceEncodeChildren
required for MenuItemTag- Parameters:
context- the faces context- Throws:
IOException- from base
-
encodeEnd
- Overrides:
encodeEndin classjavax.faces.component.UIComponentBase- Throws:
IOException
-
getLinkStyleClass
-
isLinkDisabled
protected boolean isLinkDisabled() -
getLinkValue
-
setLinkProperties
protected void setLinkProperties(javax.faces.component.html.HtmlOutcomeTargetLink link) -
addOrSetParams
protected void addOrSetParams(javax.faces.component.html.HtmlOutcomeTargetLink link) -
addOrSetParam
-
writeStartElement
- Throws:
IOException
-
createOutcomeTargetLink
protected javax.faces.component.html.HtmlOutcomeTargetLink createOutcomeTargetLink(javax.faces.context.FacesContext context) -
getLinkComponent
protected javax.faces.component.html.HtmlOutcomeTargetLink getLinkComponent() -
isEncodeLinkChildren
-
encodeLinkComponent
protected void encodeLinkComponent(javax.faces.context.FacesContext context, javax.faces.component.html.HtmlOutcomeTargetLink linkComponent) throws IOException - Throws:
IOException
-
encodeImage
protected javax.faces.component.html.HtmlGraphicImage encodeImage(javax.faces.context.FacesContext context, javax.faces.component.html.HtmlOutcomeTargetLink parent, String imagePath)
-