org.alfresco.web.ui.repo.component.shelf
Class UIShortcutsShelfItem

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.shelf.UIShelfItem
                  extended by org.alfresco.web.ui.repo.component.shelf.UIShortcutsShelfItem
All Implemented Interfaces:
javax.faces.component.StateHolder

public class UIShortcutsShelfItem
extends UIShelfItem

JSF Component providing UI for a list of user defined shortcuts to favorite nodes.


Nested Class Summary
static class UIShortcutsShelfItem.ShortcutEvent
          Class representing the an action relevant to the Shortcut element.
 
Field Summary
 
Fields inherited from class org.alfresco.web.ui.repo.component.shelf.UIShelfItem
SHELF_END, SHELF_START
 
Constructor Summary
UIShortcutsShelfItem()
           
 
Method Summary
 void broadcast(javax.faces.event.FacesEvent event)
           
 void decode(javax.faces.context.FacesContext context)
           
 void encodeBegin(javax.faces.context.FacesContext context)
           
 javax.faces.el.MethodBinding getClickActionListener()
           
 javax.faces.el.MethodBinding getRemoveActionListener()
           
 java.lang.Object getValue()
          Get the value (for this component the value is used as the List of shortcut nodes)
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setClickActionListener(javax.faces.el.MethodBinding binding)
           
 void setRemoveActionListener(javax.faces.el.MethodBinding binding)
           
 void setValue(java.lang.Object value)
          Set the value (for this component the value is used as the List of shortcut nodes)
 
Methods inherited from class org.alfresco.web.ui.repo.component.shelf.UIShelfItem
getFamily
 
Methods inherited from class org.springframework.extensions.webscripts.ui.common.component.SelfRenderingComponent
outputAttribute
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, 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

UIShortcutsShelfItem

public UIShortcutsShelfItem()
Method Detail

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)

getValue

public java.lang.Object getValue()
Get the value (for this component the value is used as the List of shortcut nodes)

Returns:
the value

setValue

public void setValue(java.lang.Object value)
Set the value (for this component the value is used as the List of shortcut nodes)

Parameters:
value - the value

setClickActionListener

public void setClickActionListener(javax.faces.el.MethodBinding binding)
Parameters:
binding - The MethodBinding to call when Click is performed by the user

getClickActionListener

public javax.faces.el.MethodBinding getClickActionListener()
Returns:
The MethodBinding to call when Click is performed by the user

setRemoveActionListener

public void setRemoveActionListener(javax.faces.el.MethodBinding binding)
Parameters:
binding - The MethodBinding to call when Remove is performed by the user

getRemoveActionListener

public javax.faces.el.MethodBinding getRemoveActionListener()
Returns:
The MethodBinding to call when Remove is performed by the user

decode

public void decode(javax.faces.context.FacesContext context)
Overrides:
decode in class javax.faces.component.UIComponentBase
See Also:
UIComponentBase.decode(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)

broadcast

public void broadcast(javax.faces.event.FacesEvent event)
               throws javax.faces.event.AbortProcessingException
Overrides:
broadcast in class javax.faces.component.UIComponentBase
Throws:
javax.faces.event.AbortProcessingException
See Also:
UIComponentBase.broadcast(javax.faces.event.FacesEvent)


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