Package de.xima.fc.gui.model.webdav
Class WebDavLazyTreeNodeAdapter
- java.lang.Object
 - 
- de.xima.fc.gui.model.webdav.WebDavLazyTreeNodeAdapter
 
 
- 
- All Implemented Interfaces:
 ILazyTreeNodeAdapter<WebDAVTreeNodeData>,Serializable
public final class WebDavLazyTreeNodeAdapter extends Object implements ILazyTreeNodeAdapter<WebDAVTreeNodeData>
Tree node adapter for lazily loading the contents of a WebDAV directory.- Author:
 - XIMA MEDIA GmbH
 - See Also:
 - Serialized Form
 
 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.primefaces.model.TreeNode<WebDAVTreeNodeData>createRootNode(WebDavAccess webdav, boolean includeFiles, boolean expandRoot)Creates the root node for a lazy tree that shows the contents of the given WebDAV server connection, starting atWebDavAccess.getServerUrl().BooleanisLeaf(WebDAVTreeNodeData data, LazyTreeNode<WebDAVTreeNodeData> node)List<org.primefaces.model.TreeNode<WebDAVTreeNodeData>>loadChildren(WebDAVTreeNodeData data, LazyTreeNode<WebDAVTreeNodeData> node)Called when the children of a node need to be loaded. 
 - 
 
- 
- 
Method Detail
- 
isLeaf
public Boolean isLeaf(WebDAVTreeNodeData data, LazyTreeNode<WebDAVTreeNodeData> node)
- Specified by:
 isLeafin interfaceILazyTreeNodeAdapter<WebDAVTreeNodeData>- Parameters:
 data- Data of a tree node.node- A node of the tree.- Returns:
 - Whether the node is a leaf, i.e. does not have children. When this info cannot be determined without
     loading the children, this should return 
null. 
 
- 
loadChildren
public List<org.primefaces.model.TreeNode<WebDAVTreeNodeData>> loadChildren(WebDAVTreeNodeData data, LazyTreeNode<WebDAVTreeNodeData> node)
Description copied from interface:ILazyTreeNodeAdapterCalled when the children of a node need to be loaded.- Specified by:
 loadChildrenin interfaceILazyTreeNodeAdapter<WebDAVTreeNodeData>- Parameters:
 data- Data of a tree node.node- A node of the tree.- Returns:
 - The children of the given node.
 
 
- 
createRootNode
public static org.primefaces.model.TreeNode<WebDAVTreeNodeData> createRootNode(WebDavAccess webdav, boolean includeFiles, boolean expandRoot)
Creates the root node for a lazy tree that shows the contents of the given WebDAV server connection, starting atWebDavAccess.getServerUrl().- Parameters:
 webdav- WebDAV connection for which to create a tree.includeFiles- Whenfalse, omits files and only shows folders.expandRoot- If true, expands the root node intially.- Returns:
 - The root 
TreeNodefor the WebDAV resources. 
 
 - 
 
 -