com.arsdigita.cms.ui.folder
Class FolderManipulator

java.lang.Object
  extended bycom.arsdigita.bebop.Completable
      extended bycom.arsdigita.bebop.SimpleComponent
          extended bycom.arsdigita.bebop.TextStylable
              extended bycom.arsdigita.bebop.BlockStylable
                  extended bycom.arsdigita.bebop.SimpleContainer
                      extended bycom.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

Field Summary
static String RESOURCE_BUNDLE
           
static String versionId
           
 
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
 
Constructor Summary
FolderManipulator(FolderSelectionModel folderSel)
           
 
Method Summary
protected  void copyItems(Folder target, BigDecimal[] items)
           
 FolderBrowser getBrowser()
          Return the browser contained in the ItemView form
 com.arsdigita.bebop.Form getItemView()
          Returns the form that contains the folder browser and the move/copy dropdown.
 BigDecimal[] getSources(com.arsdigita.bebop.PageState s)
           
 FolderSelectionModel getSrcFolderSel()
           
 Folder getTarget(com.arsdigita.bebop.PageState s)
           
 com.arsdigita.bebop.Form getTargetSelector()
          Returns the form to choose the target folder for move/copy
static com.arsdigita.globalization.GlobalizedMessage globalize(String key)
          Getting the GlobalizedMessage using a CMS Class targetBundle.
protected  boolean isCopy(com.arsdigita.bebop.PageState s)
           
protected  boolean isMove(com.arsdigita.bebop.PageState s)
           
protected  void moveItems(Folder target, BigDecimal[] items)
           
 void process(com.arsdigita.bebop.event.FormSectionEvent e)
           
 void register(com.arsdigita.bebop.Page p)
           
 void reset(com.arsdigita.bebop.PageState s)
           
 void submitted(com.arsdigita.bebop.event.FormSectionEvent e)
           
 void validate(com.arsdigita.bebop.event.FormSectionEvent e)
           
 
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 class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values

RESOURCE_BUNDLE

public static final String RESOURCE_BUNDLE
See Also:
Constant Field Values
Constructor Detail

FolderManipulator

public FolderManipulator(FolderSelectionModel folderSel)
Method Detail

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 19 2004:2352 UTC