public class FolderTree extends com.google.gwt.user.client.ui.Composite implements OriginPanel
Modifier and Type | Field and Description |
---|---|
static int |
ACTION_CREATE |
static int |
ACTION_NONE |
static int |
ACTION_RENAME |
static int |
ACTION_SECURITY_REFRESH |
com.google.gwt.user.client.ui.TreeItem |
actualItem |
int |
folderAction |
GWTFolder |
folderRoot |
FolderSelectPopup |
folderSelectPopup |
MenuPopup |
menuPopup |
com.google.gwt.user.client.ui.TreeItem |
rootItem |
com.google.gwt.user.client.ui.TreeItem |
tmpFolder |
FILE_BROWSER, NONE, TREE_ROOT, TREE_TRASH
Constructor and Description |
---|
FolderTree()
Directory Tree
|
Modifier and Type | Method and Description |
---|---|
void |
addSubscription()
Adds a subscription
|
void |
addTmpFolderCreate()
Add temporary folder on creation
|
void |
cancelRename()
Cancels the renaming folder
|
boolean |
canDrag()
canDrag
|
void |
centerActulItemOnScroll()
Centers the actualItem on scroll
|
void |
changePathBeforeRenaming(String oldPath,
String newPath,
com.google.gwt.user.client.ui.TreeItem itemToChange)
Change recursivelly all the childs path
|
void |
confirmDelete()
Show a previos message to confirm delete
|
void |
confirmPurge()
Confirm the purge
|
void |
confirmPurgeTrash()
Confirm if really wants to purge trash
|
void |
copy()
Copy folder on file browser ( only trash mode )
|
void |
create(String path)
Creates a new folder on actual item
|
void |
delete()
Deletes a folder, the folder deleted is the actual item and refresh the
parent
|
void |
deleteMovedOrRestored()
Deletes folder on trash after is moved
|
void |
disableDragged()
disableDragged
|
com.google.gwt.user.client.ui.TreeItem |
elementClicked(com.google.gwt.user.client.Element element)
elementClicked
Returns the treeItem when and element is clicked, used to capture drag
and drop tree Item
|
void |
evaluateSpecialTmpFolderCases()
Evaluates the special case when creating or renaming a folder, user
changes to other active view or active panel to create folder or remove
the tmp folder
|
void |
evaluesFolderIcon(com.google.gwt.user.client.ui.TreeItem item)
Evalues actual folder icon to prevent other user interaction with the
same folder this ensures icon and object hasChildsValue are consistent
|
void |
exportFolderToFile()
Export to file
|
void |
fileBrowserRefreshDone() |
void |
forceSetSelectedPanel()
Used only on changing stack
|
com.google.gwt.user.client.ui.TreeItem |
getActualItem()
Gets the actual tree item of the selected directory tree
|
String |
getActualPath()
Gets the actual path of the selected directory tree
|
com.google.gwt.user.client.ui.TreeItem |
getChildFolder(String path)
Get the child folder if folder child path exists on actual tree Item
selected
|
void |
getChilds(String path)
Refresh the folders on a item node
|
GWTFolder |
getFolder()
Gets the actual folder
|
int |
getFolderAction()
Gets the actual folder action
|
void |
getOnlyChilds(String path)
Refresh the folders on a item node Used on firstTime loading for
personal, trash and templates.
|
GWTFolder |
getParentFolder()
getParentFolder
|
void |
hideMenuPopup()
Hides the menu Popup
|
void |
init()
Inits on first load
|
boolean |
isActualItemRoot()
Return true if actualItem selected is root node, other case false
|
boolean |
isFolderCreating()
Indicates if is folder creating
|
boolean |
isFolderRenaming()
Indicates if is folder renaming
|
boolean |
isPanelSelected()
Indicates if panel is selected
|
void |
langRefresh()
Refresh language values
|
void |
massiveCopy()
massiveCopy
|
void |
massiveMove()
massiveMove
|
void |
move()
Move folder on file browser ( only trash mode )
|
void |
openAllPathFolder(String fldId,
String docPath)
Opens all path since folder path
|
void |
preventFolderInconsitences(com.google.gwt.user.client.ui.TreeItem item)
Prevents folder incosistences between server ( multi user deletes folder
) and tree nodes drawed
|
void |
purge()
Purge folder on file browser ( only trash mode )
|
void |
purgeTrash()
Purge all trash ( only trash mode )
|
void |
refresh(boolean reset)
Refresh the tree node
|
void |
refreshChildValues(GWTFolder folder)
Refresh tree iten values when tree folder is changed ( normally on file
browser, or by security ).
|
void |
removeDeleted(String path)
Remove folder from tree after deleted from repository ( normaly deleted
on file browser )
|
void |
removeSubscription()
Removes a subscription
|
void |
removeTmpFolderCreate()
Remove temporary folder on creation Only executed when user closes popup
name and
|
void |
rename()
Shows input text to rename selected folder
|
void |
rename(String path)
Rename a folder on actual item
|
void |
renameRenamed(String path,
GWTFolder newFolder)
Refreshing when folder is renamed remotelly For example on file browser
view
|
void |
restore()
Restore folder on file browser ( only trash mode )
|
void |
securityRefresh()
Refresh for security changes on actual tree node selected ( icon color )
only refresh the actual
|
void |
setActiveNode(String path,
boolean refreshRootNode,
boolean refreshFileBrowser)
Set a new tree node
|
void |
setHome()
Sets the home
|
void |
setSelectedPanel(boolean selected)
Sets the selected panel value
|
void |
showDirectorySelectPopup()
Shows the directory select popup
|
void |
showTabFolderProperties()
Show Tab Folder Properties
|
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
public static final int ACTION_NONE
public static final int ACTION_CREATE
public static final int ACTION_RENAME
public static final int ACTION_SECURITY_REFRESH
public com.google.gwt.user.client.ui.TreeItem actualItem
public FolderSelectPopup folderSelectPopup
public MenuPopup menuPopup
public com.google.gwt.user.client.ui.TreeItem tmpFolder
public GWTFolder folderRoot
public com.google.gwt.user.client.ui.TreeItem rootItem
public int folderAction
public void init()
public void langRefresh()
public void getChilds(String path)
path
- The folder path selected to list itemspublic void getOnlyChilds(String path)
path
- The folder path selected to list itemspublic void create(String path)
path
- The folder subpath selected by user = namepublic void rename(String path)
path
- The folder subpath selected by user = namepublic void confirmDelete()
public void delete()
public void deleteMovedOrRestored()
public void move()
public void copy()
public void massiveCopy()
public void massiveMove()
public void removeDeleted(String path)
path
- The folderpublic void addSubscription()
public void removeSubscription()
public com.google.gwt.user.client.ui.TreeItem getChildFolder(String path)
path
- The pathpublic void renameRenamed(String path, GWTFolder newFolder)
path
- The tree path ( last value )newFolder
- The new object valuepublic void openAllPathFolder(String fldId, String docPath)
fldId
- The folder pathdocPath
- The document pathpublic boolean canDrag()
public void refresh(boolean reset)
public void setActiveNode(String path, boolean refreshRootNode, boolean refreshFileBrowser)
path
- refreshRootNode
- refreshFileBrowser
- public void addTmpFolderCreate()
public void removeTmpFolderCreate()
public String getActualPath()
public com.google.gwt.user.client.ui.TreeItem getActualItem()
public void rename()
public void cancelRename()
public void showTabFolderProperties()
public void evaluesFolderIcon(com.google.gwt.user.client.ui.TreeItem item)
public void preventFolderInconsitences(com.google.gwt.user.client.ui.TreeItem item)
item
- The tree nodepublic void showDirectorySelectPopup()
public boolean isActualItemRoot()
public boolean isPanelSelected()
public void setSelectedPanel(boolean selected)
selected
- The selected panel valuepublic void forceSetSelectedPanel()
public void hideMenuPopup()
public void evaluateSpecialTmpFolderCases()
public boolean isFolderCreating()
public boolean isFolderRenaming()
public int getFolderAction()
public void securityRefresh()
public void refreshChildValues(GWTFolder folder)
folder
- The new folder valuespublic GWTFolder getFolder()
public GWTFolder getParentFolder()
public com.google.gwt.user.client.ui.TreeItem elementClicked(com.google.gwt.user.client.Element element)
element
- public void changePathBeforeRenaming(String oldPath, String newPath, com.google.gwt.user.client.ui.TreeItem itemToChange)
oldPath
- The old pathnewPath
- The new pathitemToChange
- The tree item to change the pathpublic void setHome()
public void confirmPurge()
public void confirmPurgeTrash()
public void purge()
public void purgeTrash()
public void restore()
public void centerActulItemOnScroll()
public void exportFolderToFile()
public void disableDragged()
public void fileBrowserRefreshDone()
Copyright © 2015. All Rights Reserved.