com.arsdigita.cms.ui.folder
Class FolderSelectionModel
java.lang.Object
com.arsdigita.kernel.ui.ACSObjectSelectionModel
com.arsdigita.cms.ItemSelectionModel
com.arsdigita.cms.ui.folder.FolderSelectionModel
- All Implemented Interfaces:
- com.arsdigita.kernel.ui.DomainObjectSelectionModel, com.arsdigita.bebop.SingleSelectionModel
- public class FolderSelectionModel
- extends ItemSelectionModel
Keeps track of the selection of an item in a folder. The objects that
are selected by this model are all subclasses of Folder
.
- Version:
- $Id: //cms/dev/src/com/arsdigita/cms/ui/folder/FolderSelectionModel.java#10 $
- Author:
- David Lutterkort
Method Summary |
void |
clearSelection(com.arsdigita.bebop.PageState s)
Clear the selection by resetting it to the root folder id. |
protected BigDecimal |
getRootFolderID(com.arsdigita.bebop.PageState s)
Return the ID of the root folder. |
Object |
getSelectedKey(com.arsdigita.bebop.PageState s)
|
boolean |
isSelected(com.arsdigita.bebop.PageState s)
Return true, since this selection model will always have
a folder selected in it |
Methods inherited from class com.arsdigita.kernel.ui.ACSObjectSelectionModel |
addChangeListener, getJavaClass, getObjectType, getSelectedObject, getSingleSelectionModel, getStateParameter, isInitialized, loadACSObject, removeChangeListener, setSelectedKey, setSelectedObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
versionId
public static final String versionId
- See Also:
- Constant Field Values
FolderSelectionModel
public FolderSelectionModel(String name)
FolderSelectionModel
public FolderSelectionModel(com.arsdigita.bebop.SingleSelectionModel model)
getSelectedKey
public Object getSelectedKey(com.arsdigita.bebop.PageState s)
clearSelection
public void clearSelection(com.arsdigita.bebop.PageState s)
- Clear the selection by resetting it to the root folder id.
- Parameters:
s
- represents the curent request.
getRootFolderID
protected BigDecimal getRootFolderID(com.arsdigita.bebop.PageState s)
- Return the ID of the root folder. By default, this is the root folder
of the content section in which the current request is made. If this
model is to be used outside a content section, this method has to be
overriden appropriately.
- Parameters:
s
- represents the current request
- Returns:
- the ID of the root folder
isSelected
public boolean isSelected(com.arsdigita.bebop.PageState s)
- Return true, since this selection model will always have
a folder selected in it
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2352 UTC