org.alfresco.web.ui.common.component
Class UIOutputText

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIOutput
              extended by org.alfresco.web.ui.common.component.UIOutputText
All Implemented Interfaces:
javax.faces.component.StateHolder, javax.faces.component.ValueHolder

public class UIOutputText
extends javax.faces.component.UIOutput

Component that simply renders text


Field Summary
 
Fields inherited from class javax.faces.component.UIOutput
COMPONENT_FAMILY, COMPONENT_TYPE
 
Constructor Summary
UIOutputText()
          Default constructor
 
Method Summary
 void encodeBegin(javax.faces.context.FacesContext context)
           
 java.lang.String getFamily()
           
 boolean isEncodeForJavaScript()
          Returns whether the text is going to be encoded or not
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setEncodeForJavaScript(boolean encodeForJavaScript)
          Sets whether the text should be encoded for JavaScript consumption
 
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, getValue, setConverter, setValue
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIOutputText

public UIOutputText()
Default constructor

Method Detail

getFamily

public java.lang.String getFamily()
Overrides:
getFamily in class javax.faces.component.UIOutput
See Also:
UIComponent.getFamily()

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.UIOutput
See Also:
StateHolder.restoreState(javax.faces.context.FacesContext, java.lang.Object)

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.UIOutput
See Also:
StateHolder.saveState(javax.faces.context.FacesContext)

setEncodeForJavaScript

public void setEncodeForJavaScript(boolean encodeForJavaScript)
Sets whether the text should be encoded for JavaScript consumption

Parameters:
encodeForJavaScript - true to escape text

isEncodeForJavaScript

public boolean isEncodeForJavaScript()
Returns whether the text is going to be encoded or not

Returns:
true if the text is going to be encoded

encodeBegin

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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.