com.arsdigita.cms.ui.folder
Class FolderManipulator
java.lang.Object
com.arsdigita.bebop.Completable
com.arsdigita.bebop.SimpleComponent
com.arsdigita.bebop.TextStylable
com.arsdigita.bebop.BlockStylable
com.arsdigita.bebop.SimpleContainer
com.arsdigita.cms.ui.folder.FolderManipulator
- All Implemented Interfaces:
- Cloneable, com.arsdigita.bebop.Component, com.arsdigita.bebop.Container, EventListener, com.arsdigita.bebop.event.FormProcessListener, com.arsdigita.bebop.event.FormSubmissionListener, com.arsdigita.bebop.event.FormValidationListener, com.arsdigita.util.Lockable, com.arsdigita.bebop.Resettable
- public class FolderManipulator
- extends com.arsdigita.bebop.SimpleContainer
- implements com.arsdigita.bebop.event.FormProcessListener, com.arsdigita.bebop.event.FormValidationListener, com.arsdigita.bebop.event.FormSubmissionListener, com.arsdigita.bebop.Resettable
Browse folders and manipulate them with various actions
(move/copy/delete).
- Version:
- $Id: //cms/dev/src/com/arsdigita/cms/ui/folder/FolderManipulator.java#19 $
- Author:
- David Lutterkort
Fields inherited from class com.arsdigita.bebop.BlockStylable |
ABSBOTTOM, ABSMIDDLE, BASELINE, BOTTOM, CENTER, FULL_WIDTH, INSERT, LEFT, MIDDLE, RIGHT, TEXTTOP, TOP |
Fields inherited from class com.arsdigita.bebop.SimpleComponent |
m_attr |
Fields inherited from interface com.arsdigita.bebop.Component |
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE |
Methods inherited from class com.arsdigita.bebop.SimpleContainer |
add, add, children, contains, generateChildrenXML, generateParent, generateXML, get, getNamespace, getTag, indexOf, isEmpty, setNamespace, setTag, size |
Methods inherited from class com.arsdigita.bebop.BlockStylable |
setBorder, setBorder, setBorderColor, setHorizontalAlignment, setMargin, setMargin, setPadding, setPadding, setVerticalAlignment |
Methods inherited from class com.arsdigita.bebop.TextStylable |
setBackgroundColor, setColor |
Methods inherited from class com.arsdigita.bebop.SimpleComponent |
clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, lock, register, respond, setAttribute, setClassAttr, setIdAttr, setKey, setMetaDataAttribute, setStyleAttr, setVisible |
Methods inherited from class com.arsdigita.bebop.Completable |
addCompletionListener, fireCompletionEvent |
Methods inherited from interface com.arsdigita.bebop.Component |
getClassAttr, getIdAttr, getKey, getStyleAttr, isVisible, register, respond, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible |
Methods inherited from interface com.arsdigita.util.Lockable |
isLocked, lock |
versionId
public static final String versionId
- See Also:
- Constant Field Values
RESOURCE_BUNDLE
public static final String RESOURCE_BUNDLE
- See Also:
- Constant Field Values
FolderManipulator
public FolderManipulator(FolderSelectionModel folderSel)
register
public void register(com.arsdigita.bebop.Page p)
- Specified by:
register
in interface com.arsdigita.bebop.Component
getSources
public final BigDecimal[] getSources(com.arsdigita.bebop.PageState s)
getSrcFolderSel
public final FolderSelectionModel getSrcFolderSel()
getTarget
public final Folder getTarget(com.arsdigita.bebop.PageState s)
isMove
protected final boolean isMove(com.arsdigita.bebop.PageState s)
isCopy
protected final boolean isCopy(com.arsdigita.bebop.PageState s)
moveItems
protected void moveItems(Folder target,
BigDecimal[] items)
copyItems
protected void copyItems(Folder target,
BigDecimal[] items)
getItemView
public final com.arsdigita.bebop.Form getItemView()
- Returns the form that contains the folder browser and the move/copy
dropdown.
getTargetSelector
public final com.arsdigita.bebop.Form getTargetSelector()
- Returns the form to choose the target folder for move/copy
getBrowser
public final FolderBrowser getBrowser()
- Return the browser contained in the ItemView form
process
public void process(com.arsdigita.bebop.event.FormSectionEvent e)
- Specified by:
process
in interface com.arsdigita.bebop.event.FormProcessListener
validate
public void validate(com.arsdigita.bebop.event.FormSectionEvent e)
- Specified by:
validate
in interface com.arsdigita.bebop.event.FormValidationListener
submitted
public void submitted(com.arsdigita.bebop.event.FormSectionEvent e)
throws com.arsdigita.bebop.FormProcessException
- Specified by:
submitted
in interface com.arsdigita.bebop.event.FormSubmissionListener
- Throws:
com.arsdigita.bebop.FormProcessException
reset
public void reset(com.arsdigita.bebop.PageState s)
- Specified by:
reset
in interface com.arsdigita.bebop.Resettable
globalize
public static com.arsdigita.globalization.GlobalizedMessage globalize(String key)
- Getting the GlobalizedMessage using a CMS Class targetBundle.
- Parameters:
key
- The resource key
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2352 UTC