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

    Fields
    Modifier and Type
    Field
    Description
    protected final TagEncodingHelper
     
    static final String
     

    Fields inherited from class javax.faces.component.UIOutput

    COMPONENT_FAMILY, COMPONENT_TYPE

    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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    addOrSetParam(javax.faces.component.html.HtmlOutcomeTargetLink link, String paramName, String paramValue)
     
    protected void
    addOrSetParams(javax.faces.component.html.HtmlOutcomeTargetLink link)
     
    protected javax.faces.component.html.HtmlOutcomeTargetLink
    createOutcomeTargetLink(javax.faces.context.FacesContext context)
     
    void
    encodeBegin(javax.faces.context.FacesContext context)
     
    void
    encodeChildren(javax.faces.context.FacesContext context)
     
    void
    encodeEnd(javax.faces.context.FacesContext context)
     
    protected javax.faces.component.html.HtmlGraphicImage
    encodeImage(javax.faces.context.FacesContext context, javax.faces.component.html.HtmlOutcomeTargetLink parent, String imagePath)
     
    protected void
    encodeLinkComponent(javax.faces.context.FacesContext context, javax.faces.component.html.HtmlOutcomeTargetLink linkComponent)
     
    void
    forceEncodeChildren(javax.faces.context.FacesContext context)
    required for MenuItemTag
    getClientId(javax.faces.context.FacesContext context)
     
     
     
    protected javax.faces.component.html.HtmlOutcomeTargetLink
     
    protected String
     
    protected Object
    getLinkValue(boolean hasColumn)
     
    protected boolean
     
    protected boolean
     
    void
     
    protected void
    setLinkProperties(javax.faces.component.html.HtmlOutcomeTargetLink link)
     
    boolean
    visitTree(javax.faces.component.visit.VisitContext visitContext, javax.faces.component.visit.VisitCallback callback)
     
    protected String
    writeStartElement(javax.faces.context.ResponseWriter writer)
     

    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, 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, 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • LinkTag

      public LinkTag()
  • Method Details

    • getFamily

      public String getFamily()
      Overrides:
      getFamily in class javax.faces.component.UIOutput
    • getEncodingHelper

      public TagEncodingHelper getEncodingHelper()
      Specified by:
      getEncodingHelper in interface TagEncodingHelperFactory.TagEncodingHolder
    • setId

      public void setId(String id)
      Overrides:
      setId in class javax.faces.component.UIComponentBase
    • visitTree

      public boolean visitTree(javax.faces.component.visit.VisitContext visitContext, javax.faces.component.visit.VisitCallback callback)
      Overrides:
      visitTree in class javax.faces.component.UIComponent
    • getClientId

      public String getClientId(javax.faces.context.FacesContext context)
      Overrides:
      getClientId in class javax.faces.component.UIComponentBase
    • encodeBegin

      public void encodeBegin(javax.faces.context.FacesContext context) throws IOException
      Overrides:
      encodeBegin in class javax.faces.component.UIComponentBase
      Throws:
      IOException
    • encodeChildren

      public void encodeChildren(javax.faces.context.FacesContext context) throws IOException
      Overrides:
      encodeChildren in class javax.faces.component.UIComponentBase
      Throws:
      IOException
    • forceEncodeChildren

      public void forceEncodeChildren(javax.faces.context.FacesContext context) throws IOException
      required for MenuItemTag
      Parameters:
      context - the faces context
      Throws:
      IOException - from base
    • encodeEnd

      public void encodeEnd(javax.faces.context.FacesContext context) throws IOException
      Overrides:
      encodeEnd in class javax.faces.component.UIComponentBase
      Throws:
      IOException
    • getLinkStyleClass

      protected String getLinkStyleClass()
    • isLinkDisabled

      protected boolean isLinkDisabled()
    • getLinkValue

      protected Object getLinkValue(boolean hasColumn)
    • setLinkProperties

      protected void setLinkProperties(javax.faces.component.html.HtmlOutcomeTargetLink link)
    • addOrSetParams

      protected void addOrSetParams(javax.faces.component.html.HtmlOutcomeTargetLink link)
    • addOrSetParam

      protected void addOrSetParam(javax.faces.component.html.HtmlOutcomeTargetLink link, String paramName, String paramValue)
    • writeStartElement

      protected String writeStartElement(javax.faces.context.ResponseWriter writer) throws IOException
      Throws:
      IOException
    • createOutcomeTargetLink

      protected javax.faces.component.html.HtmlOutcomeTargetLink createOutcomeTargetLink(javax.faces.context.FacesContext context)
    • getLinkComponent

      protected javax.faces.component.html.HtmlOutcomeTargetLink getLinkComponent()
    • isEncodeLinkChildren

      protected boolean isEncodeLinkChildren(Object linkValue)
    • 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)