org.apache.struts.faces.component
Class BaseComponent

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIOutput
              extended by org.apache.struts.faces.component.BaseComponent
All Implemented Interfaces:
javax.faces.component.StateHolder, javax.faces.component.ValueHolder

public class BaseComponent
extends javax.faces.component.UIOutput

Custom component that replaces the Struts <html:base> tag.


Field Summary
 
Fields inherited from class javax.faces.component.UIOutput
COMPONENT_FAMILY, COMPONENT_TYPE
 
Constructor Summary
BaseComponent()
          Create a new BaseComponent with default properties.
 
Method Summary
 String getFamily()
          Return the component family to which this component belongs.
 String getTarget()
          Return the target frame.
 void restoreState(javax.faces.context.FacesContext context, Object state)
          Restore the state of this component.
 Object saveState(javax.faces.context.FacesContext context)
          Save the state of this component.
 void setTarget(String target)
          Set the target frame.
 
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, getValue, setConverter, setValue
 
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
 

Constructor Detail

BaseComponent

public BaseComponent()

Create a new BaseComponent with default properties.

Method Detail

getFamily

public String getFamily()

Return the component family to which this component belongs.

Overrides:
getFamily in class javax.faces.component.UIOutput

getTarget

public String getTarget()

Return the target frame.


setTarget

public void setTarget(String target)

Set the target frame.

Parameters:
target - The new target frame

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         Object state)

Restore the state of this component.

Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.UIOutput
Parameters:
context - FacesContext for the current request
state - State object from which to restore our state

saveState

public Object saveState(javax.faces.context.FacesContext context)

Save the state of this component.

Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.UIOutput
Parameters:
context - FacesContext for the current request


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.