|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.ecm.webengine.ui.tree.document.DocumentContentProvider
public class DocumentContentProvider
| Constructor Summary | |
|---|---|
DocumentContentProvider(CoreSession session)
|
|
| Method Summary | |
|---|---|
java.lang.Object[] |
getChildren(java.lang.Object obj)
Gets the children for the given object. |
java.lang.Object[] |
getElements(java.lang.Object input)
Gets the top level items. |
java.lang.String[] |
getFacets(java.lang.Object object)
Gets the object facets. |
java.lang.String |
getLabel(java.lang.Object obj)
Gets the label to be used when displaying the given object. |
java.lang.String |
getName(java.lang.Object obj)
Gets the name of the object. |
CoreSession |
getSession()
|
boolean |
isContainer(java.lang.Object obj)
Whether the given object may have children (e.g it's a container). |
void |
setSession(CoreSession session)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentContentProvider(CoreSession session)
| Method Detail |
|---|
public void setSession(CoreSession session)
public CoreSession getSession()
public java.lang.Object[] getElements(java.lang.Object input)
ContentProviderThe items will be shown on the top level of the tree. These items are computed from the tree input that will be considered the tree root. The tree root is not visible.
getElements in interface ContentProviderinput - the tree view input
public java.lang.Object[] getChildren(java.lang.Object obj)
ContentProviderThis method is used to populate the nested branches of the tree.
getChildren in interface ContentProviderobj - the object
public boolean isContainer(java.lang.Object obj)
ContentProvider
isContainer in interface ContentProviderobj - the object to test
public java.lang.String getLabel(java.lang.Object obj)
ContentProvider
getLabel in interface ContentProviderobj - the object
public java.lang.String[] getFacets(java.lang.Object object)
ContentProviderFacets are arbitrary strings that should describe object capabilities and can be used to decorate later the item.
In a web environment they may be translated to CSS classes.
getFacets in interface ContentProviderpublic java.lang.String getName(java.lang.Object obj)
ContentProviderThe name must be an unique identifier relative to the parent item. It will be used as node names in the tree so that they will construct the item path.
getName in interface ContentProviderobj - the object
|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||