org.alfresco.web.ui.common.component.evaluator
Class BaseEvaluator

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.springframework.extensions.webscripts.ui.common.component.SelfRenderingComponent
              extended by org.alfresco.web.ui.common.component.evaluator.BaseEvaluator
All Implemented Interfaces:
javax.faces.component.StateHolder
Direct Known Subclasses:
ActionInstanceEvaluator, BooleanEvaluator, PermissionEvaluator, StringEqualsEvaluator, ValueSetEvaluator

public abstract class BaseEvaluator
extends org.springframework.extensions.webscripts.ui.common.component.SelfRenderingComponent


Field Summary
protected static org.apache.commons.logging.Log s_logger
           
 
Constructor Summary
BaseEvaluator()
           
 
Method Summary
 void encodeBegin(javax.faces.context.FacesContext context)
           
 void encodeChildren(javax.faces.context.FacesContext context)
           
 void encodeEnd(javax.faces.context.FacesContext context)
           
abstract  boolean evaluate()
          Evaluate against the component attributes.
 java.lang.String getFamily()
           
 boolean getRendersChildren()
           
 java.lang.Object getValue()
          Get the value for this component to be evaluated against
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setValue(java.lang.Object value)
          Set the value for this component to be evaluated against
 
Methods inherited from class org.springframework.extensions.webscripts.ui.common.component.SelfRenderingComponent
outputAttribute
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, 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

s_logger

protected static final org.apache.commons.logging.Log s_logger
Constructor Detail

BaseEvaluator

public BaseEvaluator()
Method Detail

getFamily

public final java.lang.String getFamily()
Specified by:
getFamily in class javax.faces.component.UIComponent
See Also:
UIComponent.getFamily()

getRendersChildren

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

encodeBegin

public final 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)

encodeChildren

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

encodeEnd

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

getValue

public java.lang.Object getValue()
Get the value for this component to be evaluated against

Returns:
the value for this component to be evaluated against

setValue

public void setValue(java.lang.Object value)
Set the value for this component to be evaluated against

Parameters:
value - the value for this component to be evaluated against

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.UIComponentBase
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.UIComponentBase
See Also:
StateHolder.saveState(javax.faces.context.FacesContext)

evaluate

public abstract boolean evaluate()
Evaluate against the component attributes. Return true to allow the inner components to render, false to hide them during rendering.

Returns:
true to allow rendering of child components, false otherwise


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