public class AppControllerExplorer extends Object implements com.google.gwt.event.shared.EventHandler, TreeAppControllerInterface
TreeAppControllerInterface.VisualizationType
Modifier and Type | Field and Description |
---|---|
com.google.gwt.user.client.rpc.AsyncCallback<WindowOpenParameter> |
downloadHandlerCallback |
static String |
myLogin |
static String |
myLoginFirstName |
static GWTWorkspaceServiceAsync |
rpcWorkspaceService |
Constructor and Description |
---|
AppControllerExplorer()
Instantiates a new app controller explorer.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addFile(String itemIdentifier,
String name,
String parentIdentifier)
method not used.
|
boolean |
addFolder(String itemIdentifier,
String name,
String parentIdentifier)
method not used.
|
boolean |
deleteItem(String itemIdentifier) |
void |
doClickUrl(OpenUrlEvent openUrlEvent)
Do click url.
|
protected void |
doUpdateWorkspaceSize(UpdateWorkspaceSizeEvent updateWorkspaceSizeEvent)
Do update workspace size.
|
void |
expandFolder(String itemIdentifier) |
void |
findItemAndSelectItemInTree(String itemIdentifier) |
static com.google.gwt.event.shared.HandlerManager |
getEventBus()
Gets the event bus.
|
static AppControllerExplorer |
getInstance()
Gets the single instance of AppControllerExplorer.
|
List<FileModel> |
getListParentsByIdentifierFromTree(String itemIdentifier) |
ExplorerPanel |
getPanel()
Instance only Async Tree.
|
ExplorerPanel |
getPanel(boolean instancingSmartFolder,
boolean instancingMessages,
boolean selectRootItem)
Instance by default asyncronus Tree while Smart Folders and Messages was instanced as input value.
|
GWTWorkspaceServiceAsync |
getRpcWorkspaceService()
Gets the rpc workspace service.
|
FileModel |
getSelectedFolderInTree()
Gets the selected folder in tree.
|
AsyncTreePanel |
getTree(int width,
int height)
Instance only Async Tree with specific width - height - select by default the root item .
|
ExplorerPanel |
getTreePanel()
Deprecated.
|
void |
go(com.google.gwt.user.client.ui.HasWidgets rootPanel,
boolean onlyTree,
boolean instancingSmartFolder,
boolean instancingMessages,
boolean selectRootItem)
Go.
|
void |
hideSharingFacilities()
Hide sharing facilities.
|
void |
notifySubscriber(GuiEventInterface event)
Notify subscriber.
|
static String |
portalURL()
Portal url.
|
void |
refreshRoot(boolean selectRootItem)
Refresh root.
|
boolean |
reloadFolderChildren(String itemIdentifier)
method not used.
|
boolean |
renameItem(String itemIdentifier,
String newName,
String extension) |
void |
searching(boolean isSearch) |
void |
selectRootItem() |
void |
setVisualizationType(TreeAppControllerInterface.VisualizationType type)
method not used.
|
void |
subscribe(SubscriberInterface subscriber,
EventsTypeEnum key)
Subscribe.
|
void |
subscribe(SubscriberInterface subscriber,
EventsTypeEnum[] keys)
Subscribe.
|
boolean |
treeLevelIsExpanded(String folderId)
Tree level is expanded.
|
void |
unsubscribe(SubscriberInterface subscriber,
EventsTypeEnum key)
Unsubscribe.
|
public static final GWTWorkspaceServiceAsync rpcWorkspaceService
public static String myLogin
public static String myLoginFirstName
public com.google.gwt.user.client.rpc.AsyncCallback<WindowOpenParameter> downloadHandlerCallback
public AppControllerExplorer()
public static AppControllerExplorer getInstance()
public static com.google.gwt.event.shared.HandlerManager getEventBus()
public GWTWorkspaceServiceAsync getRpcWorkspaceService()
protected void doUpdateWorkspaceSize(UpdateWorkspaceSizeEvent updateWorkspaceSizeEvent)
updateWorkspaceSizeEvent
- the update workspace size eventpublic static String portalURL()
public void notifySubscriber(GuiEventInterface event)
event
- the eventpublic boolean treeLevelIsExpanded(String folderId)
folderId
- the folder idpublic void subscribe(SubscriberInterface subscriber, EventsTypeEnum[] keys)
subscriber
- the subscriberkeys
- the keyspublic void subscribe(SubscriberInterface subscriber, EventsTypeEnum key)
subscriber
- the subscriberkey
- the keypublic void unsubscribe(SubscriberInterface subscriber, EventsTypeEnum key)
subscriber
- the subscriberkey
- the keypublic void go(com.google.gwt.user.client.ui.HasWidgets rootPanel, boolean onlyTree, boolean instancingSmartFolder, boolean instancingMessages, boolean selectRootItem)
rootPanel
- the root panelonlyTree
- the only treeinstancingSmartFolder
- the instancing smart folderinstancingMessages
- the instancing messagesselectRootItem
- the select root itempublic ExplorerPanel getTreePanel()
public AsyncTreePanel getTree(int width, int height)
width
- the widthheight
- the heightpublic void hideSharingFacilities()
public void refreshRoot(boolean selectRootItem)
selectRootItem
- the select root itempublic ExplorerPanel getPanel()
public ExplorerPanel getPanel(boolean instancingSmartFolder, boolean instancingMessages, boolean selectRootItem)
instancingSmartFolder
- the instancing smart folderinstancingMessages
- the instancing messagesselectRootItem
- the select root itempublic List<FileModel> getListParentsByIdentifierFromTree(String itemIdentifier)
getListParentsByIdentifierFromTree
in interface TreeAppControllerInterface
public boolean renameItem(String itemIdentifier, String newName, String extension)
renameItem
in interface TreeAppControllerInterface
public boolean deleteItem(String itemIdentifier)
deleteItem
in interface TreeAppControllerInterface
public boolean addFolder(String itemIdentifier, String name, String parentIdentifier)
addFolder
in interface TreeAppControllerInterface
itemIdentifier
- the item identifiername
- the nameparentIdentifier
- the parent identifierpublic boolean addFile(String itemIdentifier, String name, String parentIdentifier)
addFile
in interface TreeAppControllerInterface
itemIdentifier
- the item identifiername
- the nameparentIdentifier
- the parent identifierpublic boolean reloadFolderChildren(String itemIdentifier)
reloadFolderChildren
in interface TreeAppControllerInterface
itemIdentifier
- the item identifierpublic void setVisualizationType(TreeAppControllerInterface.VisualizationType type)
setVisualizationType
in interface TreeAppControllerInterface
type
- the new visualization typepublic void selectRootItem()
selectRootItem
in interface TreeAppControllerInterface
public FileModel getSelectedFolderInTree()
getSelectedFolderInTree
in interface TreeAppControllerInterface
public void findItemAndSelectItemInTree(String itemIdentifier)
findItemAndSelectItemInTree
in interface TreeAppControllerInterface
public void expandFolder(String itemIdentifier)
expandFolder
in interface TreeAppControllerInterface
public void searching(boolean isSearch)
searching
in interface TreeAppControllerInterface
public void doClickUrl(OpenUrlEvent openUrlEvent)
openUrlEvent
- the open url eventCopyright © 2016. All Rights Reserved.