Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.webengine.sites
Class SiteContentProvider

java.lang.Object
  extended by org.nuxeo.ecm.webengine.ui.tree.document.DocumentContentProvider
      extended by org.nuxeo.webengine.sites.SiteContentProvider
All Implemented Interfaces:
Serializable, ContentProvider

public class SiteContentProvider
extends DocumentContentProvider

Implementation of provider for the tree.

See Also:
Serialized Form

Constructor Summary
SiteContentProvider(CoreSession session)
           
 
Method Summary
 Object[] getChildren(Object obj)
          Gets the children for the given object.
 String getLabel(Object obj)
          Gets the label to be used when displaying the given object.
 
Methods inherited from class org.nuxeo.ecm.webengine.ui.tree.document.DocumentContentProvider
getElements, getFacets, getName, getSession, isContainer, setSession
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiteContentProvider

public SiteContentProvider(CoreSession session)
Method Detail

getChildren

public Object[] getChildren(Object obj)
Description copied from interface: ContentProvider
Gets the children for the given object.

This method is used to populate the nested branches of the tree.

Specified by:
getChildren in interface ContentProvider
Overrides:
getChildren in class DocumentContentProvider
Parameters:
obj - the object
Returns:
the children or null if no children are supported

getLabel

public String getLabel(Object obj)
Description copied from interface: ContentProvider
Gets the label to be used when displaying the given object.

Specified by:
getLabel in interface ContentProvider
Overrides:
getLabel in class DocumentContentProvider
Parameters:
obj - the object
Returns:
the label

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.