org.apache.myfaces.custom.suggestajax.tablesuggestajax
Class AbstractHtmlOutputText

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIOutput
              extended by javax.faces.component.html.HtmlOutputText
                  extended by org.apache.myfaces.component.html.ext.AbstractHtmlOutputText
                      extended by org.apache.myfaces.component.html.ext.HtmlOutputText
                          extended by org.apache.myfaces.custom.suggestajax.tablesuggestajax.AbstractHtmlOutputText
All Implemented Interfaces:
javax.faces.component.StateHolder, javax.faces.component.ValueHolder, org.apache.myfaces.component.EventAware, org.apache.myfaces.component.ForceIdAware, org.apache.myfaces.component.UniversalProperties, org.apache.myfaces.component.UserRoleAware

public abstract class AbstractHtmlOutputText
extends org.apache.myfaces.component.html.ext.HtmlOutputText

Extending the outputText component in order to introduce the for attribute.

Author:
Gerald Muellan Date: 15.02.2006 Time: 13:30:43

Field Summary
static java.lang.String COMPONENT_TYPE
           
 
Fields inherited from class org.apache.myfaces.component.html.ext.HtmlOutputText
COMPONENT_FAMILY, DEFAULT_RENDERER_TYPE
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Fields inherited from interface org.apache.myfaces.component.UserRoleAware
ENABLED_ON_USER_ROLE_ATTR, VISIBLE_ON_USER_ROLE_ATTR
 
Constructor Summary
AbstractHtmlOutputText()
           
 
Method Summary
 void encodeBegin(javax.faces.context.FacesContext facesContext)
           
 void encodeChildren(javax.faces.context.FacesContext facesContext)
           
 void encodeEnd(javax.faces.context.FacesContext facesContext)
           
abstract  java.lang.String getFor()
          Specify the id of the dom element where the label should be put in
abstract  java.lang.String getForValue()
          Specify the id of the dom element where the value should be put in.
abstract  java.lang.String getLabel()
          To provide a second value in form of a label.
 boolean getRendersChildren()
           
 
Methods inherited from class org.apache.myfaces.component.html.ext.HtmlOutputText
getDir, getEnabledOnUserRole, getFamily, getLang, getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getTitle, getVisibleOnUserRole, isForceId, isForceIdIndex, restoreState, saveState, setDir, setEnabledOnUserRole, setForceId, setForceIdIndex, setLang, setOnclick, setOndblclick, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setTitle, setVisibleOnUserRole
 
Methods inherited from class org.apache.myfaces.component.html.ext.AbstractHtmlOutputText
getClientId, isRendered
 
Methods inherited from class javax.faces.component.html.HtmlOutputText
getStyle, getStyleClass, isEscape, setEscape, setStyle, setStyleClass
 
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, getValue, setConverter, setValue
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, findComponent, getAttributes, getChildCount, getChildren, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getValueBinding, invokeOnComponent, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getValueExpression, setValueExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values
Constructor Detail

AbstractHtmlOutputText

public AbstractHtmlOutputText()
Method Detail

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext facesContext)
                 throws java.io.IOException
Overrides:
encodeBegin in class javax.faces.component.UIComponentBase
Throws:
java.io.IOException

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext facesContext)
               throws java.io.IOException
Overrides:
encodeEnd in class javax.faces.component.UIComponentBase
Throws:
java.io.IOException

getRendersChildren

public boolean getRendersChildren()
Overrides:
getRendersChildren in class javax.faces.component.UIComponentBase

encodeChildren

public void encodeChildren(javax.faces.context.FacesContext facesContext)
                    throws java.io.IOException
Overrides:
encodeChildren in class javax.faces.component.UIComponentBase
Throws:
java.io.IOException

getFor

public abstract java.lang.String getFor()
Specify the id of the dom element where the label should be put in


getForValue

public abstract java.lang.String getForValue()
Specify the id of the dom element where the value should be put in. This value is also included in the suggested table, but only in a hidden span element following the span for the label in one row.


getLabel

public abstract java.lang.String getLabel()
To provide a second value in form of a label. Usage like SelectItem. Label is brought to client in a hidden span element near the value.



Copyright © 2011 The Apache Software Foundation. All Rights Reserved.