org.apache.myfaces.custom.document
Class AbstractDocument

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.apache.myfaces.custom.document.AbstractDocument
All Implemented Interfaces:
javax.faces.component.StateHolder
Direct Known Subclasses:
Document, DocumentHead

public class AbstractDocument
extends javax.faces.component.UIComponentBase

Base class to handle the document family

Version:
$Revision: 673833 $ $Date: 2008-07-03 16:58:05 -0500 (Thu, 03 Jul 2008) $
Author:
Mario Ivankovits (latest modification by $Author: skitching $)

Field Summary
static String COMPONENT_FAMILY
           
 
Constructor Summary
AbstractDocument(String renderType)
           
 
Method Summary
 String getFamily()
           
 String getState()
          state="start|end".
 boolean hasState()
           
 boolean isEndState()
           
 boolean isStartState()
           
 void restoreState(javax.faces.context.FacesContext context, Object state)
           
 Object saveState(javax.faces.context.FacesContext context)
           
 void setState(String state)
           
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, 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
 

Field Detail

COMPONENT_FAMILY

public static final String COMPONENT_FAMILY
See Also:
Constant Field Values
Constructor Detail

AbstractDocument

public AbstractDocument(String renderType)
Method Detail

getFamily

public String getFamily()
Specified by:
getFamily in class javax.faces.component.UIComponent

setState

public void setState(String state)

getState

public String getState()
state="start|end". Used to demarkate the document boundaries


hasState

public boolean hasState()

isStartState

public boolean isStartState()

isEndState

public boolean isEndState()

saveState

public Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.UIComponentBase

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.UIComponentBase


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