org.alfresco.web.ui.repo.component
Class UIActions

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.repo.component.UIActions
All Implemented Interfaces:
javax.faces.component.StateHolder

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


Field Summary
static java.lang.Class[] ACTION_CLASS_ARGS
           
static java.lang.String COMPONENT_ACTIONEVAL
           
static java.lang.String COMPONENT_ACTIONLINK
           
static java.lang.String COMPONENT_PERMISSIONEVAL
           
static java.lang.String RENDERER_ACTIONLINK
           
 
Constructor Summary
UIActions()
           
 
Method Summary
 void encodeBegin(javax.faces.context.FacesContext context)
           
 void encodeChildren(javax.faces.context.FacesContext context)
           
 void encodeEnd(javax.faces.context.FacesContext context)
           
 java.lang.Object getContext()
          Get the object that forms the context for this group of actions
 java.lang.String getFamily()
           
 boolean getRendersChildren()
           
 boolean getShowLink()
          Get whether to show the link as well as the image if specified
 java.lang.String getValue()
          Get the value (for this component the value is the ID of an Action Group config block)
 int getVerticalSpacing()
           
 void reset()
          Resets the component to force a re-initialisation.
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setContext(java.lang.Object context)
          Set the the object that forms the context for this group of actions
 void setShowLink(boolean showLink)
          Set whether to show the link as well as the image if specified
 void setValue(java.lang.String value)
          Set the value (for this component the value is the ID of an Action Group config block)
 void setVerticalSpacing(int verticalSpacing)
           
 
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

RENDERER_ACTIONLINK

public static final java.lang.String RENDERER_ACTIONLINK
See Also:
Constant Field Values

COMPONENT_ACTIONLINK

public static final java.lang.String COMPONENT_ACTIONLINK
See Also:
Constant Field Values

COMPONENT_PERMISSIONEVAL

public static final java.lang.String COMPONENT_PERMISSIONEVAL
See Also:
Constant Field Values

COMPONENT_ACTIONEVAL

public static final java.lang.String COMPONENT_ACTIONEVAL
See Also:
Constant Field Values

ACTION_CLASS_ARGS

public static final java.lang.Class[] ACTION_CLASS_ARGS
Constructor Detail

UIActions

public UIActions()
Method Detail

getFamily

public java.lang.String getFamily()
Specified by:
getFamily in class javax.faces.component.UIComponent
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.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)

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)

getRendersChildren

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

encodeChildren

public 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 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.String getValue()
Get the value (for this component the value is the ID of an Action Group config block)

Returns:
the value

setValue

public void setValue(java.lang.String value)
Set the value (for this component the value is the ID of an Action Group config block)

Parameters:
value - the value

getContext

public java.lang.Object getContext()
Get the object that forms the context for this group of actions

Returns:
the context

setContext

public void setContext(java.lang.Object context)
Set the the object that forms the context for this group of actions

Parameters:
context - the context

getShowLink

public boolean getShowLink()
Get whether to show the link as well as the image if specified

Returns:
true to show the link as well as the image if specified

setShowLink

public void setShowLink(boolean showLink)
Set whether to show the link as well as the image if specified

Parameters:
showLink - Whether to show the link as well as the image if specified

getVerticalSpacing

public int getVerticalSpacing()
Returns:
Returns the vertical spacing value in pixels or zero if not set.

setVerticalSpacing

public void setVerticalSpacing(int verticalSpacing)
Parameters:
verticalSpacing - The verticalSpacing to set.

reset

public void reset()
Resets the component to force a re-initialisation.



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