com.arsdigita.cms.ui.folder
Class FolderTreeModelBuilder
java.lang.Object
com.arsdigita.util.LockableImpl
com.arsdigita.cms.ui.folder.FolderTreeModelBuilder
- All Implemented Interfaces:
- com.arsdigita.util.Lockable, com.arsdigita.bebop.tree.TreeModelBuilder
- public class FolderTreeModelBuilder
- extends com.arsdigita.util.LockableImpl
- implements com.arsdigita.bebop.tree.TreeModelBuilder
A TreeModelBuilder
that produces trees
containing the folder structure underneath a root folder. The root
folder can be changed by overriding getRoot
.
- Version:
- $Id: //cms/dev/src/com/arsdigita/cms/ui/folder/FolderTreeModelBuilder.java#11 $
- Author:
- Tri Tran, David Lutterkort
Method Summary |
protected Folder |
getRoot(com.arsdigita.bebop.PageState s)
Retrn the root folder for the tree model in the current
request. |
com.arsdigita.bebop.tree.TreeModel |
makeModel(com.arsdigita.bebop.Tree t,
com.arsdigita.bebop.PageState s)
Make a tree model that lists the hierarchy of folders underneath the
folder returnedby getRoot . |
Methods inherited from class com.arsdigita.util.LockableImpl |
isLocked, lock |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.arsdigita.util.Lockable |
isLocked, lock |
versionId
public static final String versionId
- See Also:
- Constant Field Values
FolderTreeModelBuilder
public FolderTreeModelBuilder()
makeModel
public com.arsdigita.bebop.tree.TreeModel makeModel(com.arsdigita.bebop.Tree t,
com.arsdigita.bebop.PageState s)
- Make a tree model that lists the hierarchy of folders underneath the
folder returnedby
getRoot
.
- Specified by:
makeModel
in interface com.arsdigita.bebop.tree.TreeModelBuilder
- Parameters:
t
- the tree in which the model is useds
- represents the current request
- Returns:
- a tree model that lists the hierarchy of folders underneath the
folder returnedby
getRoot
.
getRoot
protected Folder getRoot(com.arsdigita.bebop.PageState s)
throws IllegalStateException
- Retrn the root folder for the tree model in the current
request.
- Parameters:
s
- represents the current request
- Returns:
- the root folder for the tree
- Throws:
IllegalStateException
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2352 UTC