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

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UICommand
              extended by org.alfresco.web.ui.repo.component.UINodeDescendants
All Implemented Interfaces:
javax.faces.component.ActionSource, javax.faces.component.StateHolder

public class UINodeDescendants
extends javax.faces.component.UICommand


Nested Class Summary
static class UINodeDescendants.NodeSelectedEvent
          Class representing the clicking of a node descendant element.
 
Field Summary
 
Fields inherited from class javax.faces.component.UICommand
COMPONENT_FAMILY, COMPONENT_TYPE
 
Constructor Summary
UINodeDescendants()
          Default constructor
 
Method Summary
 java.lang.String getFamily()
           
 int getMaxChildren()
           
 boolean getShowEllipses()
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setMaxChildren(int value)
           
 void setShowEllipses(boolean showEllipses)
           
 
Methods inherited from class javax.faces.component.UICommand
addActionListener, broadcast, getAction, getActionListener, getActionListeners, getValue, isImmediate, queueEvent, removeActionListener, setAction, setActionListener, setImmediate, setValue
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, 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, 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

UINodeDescendants

public UINodeDescendants()
Default constructor

Method Detail

getFamily

public java.lang.String getFamily()
Overrides:
getFamily in class javax.faces.component.UICommand
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.UICommand
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.UICommand
See Also:
StateHolder.saveState(javax.faces.context.FacesContext)

getMaxChildren

public int getMaxChildren()
Returns:
the maximum number of child descendants to be displayed, default maximum is 3.

setMaxChildren

public void setMaxChildren(int value)
Parameters:
value - The maximum allowed before the no more links are shown

getShowEllipses

public boolean getShowEllipses()
Returns:
whether to show ellipses "..." if more descendants than the maxChildren value are found

setShowEllipses

public void setShowEllipses(boolean showEllipses)
Parameters:
showEllipses - True to show ellipses "..." if more descendants than maxChildren are found


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