Class BrowseController
java.lang.Object
org.pentaho.ui.xul.XulEventSourceAdapter
org.pentaho.ui.xul.impl.AbstractXulEventHandler
org.pentaho.di.ui.repository.repositoryexplorer.controllers.BrowseController
- All Implemented Interfaces:
IBrowseController
,IUISupportController
,org.pentaho.ui.xul.impl.XulEventHandler
,org.pentaho.ui.xul.XulEventSource
public class BrowseController
extends org.pentaho.ui.xul.impl.AbstractXulEventHandler
implements IUISupportController, IBrowseController
This is the XulEventHandler for the browse panel of the repository explorer. It sets up the bindings for browse
functionality.
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.pentaho.ui.xul.binding.BindingFactory
protected org.pentaho.ui.xul.components.XulConfirmBox
protected ContextChangeVetoerCollection
protected org.pentaho.ui.xul.binding.Binding
protected Map<org.pentaho.di.repository.ObjectId,
UIRepositoryDirectory> Allows for lookup of a UIRepositoryDirectory by ObjectId.protected org.pentaho.ui.xul.containers.XulTree
protected org.pentaho.ui.xul.containers.XulTree
protected static final String
protected MainController
protected org.pentaho.ui.xul.components.XulMessageBox
protected static final String
protected UIRepositoryDirectory
protected org.pentaho.di.repository.Repository
protected List<UIRepositoryDirectory>
protected UIRepositoryDirectory
protected List<UIRepositoryObject>
protected List<UIRepositoryDirectory>
protected org.pentaho.ui.xul.binding.Binding
Fields inherited from class org.pentaho.ui.xul.impl.AbstractXulEventHandler
document, name, xulDomContainer
Fields inherited from class org.pentaho.ui.xul.XulEventSourceAdapter
changeSupport
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addContextChangeVetoer
(ContextChangeVetoer listener) void
protected void
protected void
protected void
confirmDialog
(String title, String msg, String ok) protected void
protected void
protected org.pentaho.ui.xul.binding.Binding
void
void
protected void
deleteContent
(UIRepositoryObject repoObject) void
protected void
deleteFolder
(UIRepositoryDirectory repoDir) protected void
void
void
getName()
org.pentaho.ui.xul.binding.Binding
protected org.eclipse.swt.widgets.Shell
getShell()
void
init
(org.pentaho.di.repository.Repository repository) protected void
moveFiles
(List<UIRepositoryObject> objects, UIRepositoryDirectory targetDirectory) void
onDoubleClick
(Object[] selectedItems) void
onDragFromGlobalTree
(org.pentaho.ui.xul.dnd.DropEvent event) void
onDragFromLocalTable
(org.pentaho.ui.xul.dnd.DropEvent event) void
onDrop
(org.pentaho.ui.xul.dnd.DropEvent event) void
void
void
openContent
(Object[] items) protected void
populateDirMap
(UIRepositoryDirectory repDir) protected org.pentaho.ui.xul.components.XulPromptBox
promptForName
(UIRepositoryObject object) void
removeContextChangeVetoer
(ContextChangeVetoer listener) void
void
protected void
void
setRepositoryDirectories
(List<UIRepositoryDirectory> selectedFolderItems) void
setRepositoryItems
(List<UIRepositoryObject> selectedItems) void
setRepositoryObjects
(List<UIRepositoryObject> selectedFileItems) void
setSelectedFileItems
(List<UIRepositoryObject> selectedFileItems) void
setSelectedFolderItems
(List<UIRepositoryDirectory> selectedFolderItems) void
setSelectedItemsBinding
(org.pentaho.ui.xul.binding.Binding selectedItemsBinding) Methods inherited from class org.pentaho.ui.xul.impl.AbstractXulEventHandler
bind, bind, getData, getXulDomContainer, setData, setName, setXulDomContainer
Methods inherited from class org.pentaho.ui.xul.XulEventSourceAdapter
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, removePropertyChangeListener, removePropertyChangeListener
-
Field Details
-
repoDir
-
folderTree
protected org.pentaho.ui.xul.containers.XulTree folderTree -
fileTable
protected org.pentaho.ui.xul.containers.XulTree fileTable -
repositoryDirectory
-
contextChangeVetoers
-
bf
protected org.pentaho.ui.xul.binding.BindingFactory bf -
directoryBinding
protected org.pentaho.ui.xul.binding.Binding directoryBinding -
selectedItemsBinding
protected org.pentaho.ui.xul.binding.Binding selectedItemsBinding -
selectedFolderItems
-
selectedFileItems
-
repositoryDirectories
-
repository
protected org.pentaho.di.repository.Repository repository -
mainController
-
messageBox
protected org.pentaho.ui.xul.components.XulMessageBox messageBox -
confirmBox
protected org.pentaho.ui.xul.components.XulConfirmBox confirmBox -
HOME_PATH
- See Also:
-
PUBLIC_PATH
- See Also:
-
dirMap
Allows for lookup of a UIRepositoryDirectory by ObjectId. This allows the reuse of instances that are inside a UI tree.
-
-
Constructor Details
-
BrowseController
public BrowseController()
-
-
Method Details
-
init
public void init(org.pentaho.di.repository.Repository repository) throws ControllerInitializationException - Specified by:
init
in interfaceIUISupportController
- Throws:
ControllerInitializationException
-
createBindings
protected void createBindings() -
doCreateBindings
protected void doCreateBindings() -
createDirectoryBinding
protected org.pentaho.ui.xul.binding.Binding createDirectoryBinding() -
getName
- Specified by:
getName
in interfaceIUISupportController
- Specified by:
getName
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
- Overrides:
getName
in classorg.pentaho.ui.xul.impl.AbstractXulEventHandler
-
getRepositoryDirectory
-
populateDirMap
-
expandAllFolders
public void expandAllFolders() -
collapseAllFolders
public void collapseAllFolders() -
openContent
public void openContent() -
openContent
-
renameContent
- Throws:
Exception
-
confirm
protected void confirm(String title, String message, Callable<Void> onAccept) throws org.pentaho.ui.xul.XulException - Throws:
org.pentaho.ui.xul.XulException
-
confirm
- Throws:
org.pentaho.ui.xul.XulException
-
confirmDialog
- Throws:
Exception
-
confirmDialog
protected void confirmDialog(Callable<Void> callback, String title, String msg, String yes, String no) throws Exception - Throws:
Exception
-
deleteContent
- Throws:
Exception
-
deleteContent
- Throws:
Exception
-
createFolder
- Throws:
Exception
-
exportFolder
- Throws:
Exception
-
deleteFolder
- Throws:
Exception
-
deleteFolder
- Throws:
Exception
-
renameFolder
- Throws:
Exception
-
renameRepositoryObject
protected void renameRepositoryObject(UIRepositoryObject object) throws org.pentaho.ui.xul.XulException - Throws:
org.pentaho.ui.xul.XulException
-
promptForName
protected org.pentaho.ui.xul.components.XulPromptBox promptForName(UIRepositoryObject object) throws org.pentaho.ui.xul.XulException - Throws:
org.pentaho.ui.xul.XulException
-
onDragFromGlobalTree
public void onDragFromGlobalTree(org.pentaho.ui.xul.dnd.DropEvent event) -
onDragFromLocalTable
public void onDragFromLocalTable(org.pentaho.ui.xul.dnd.DropEvent event) -
onDrop
public void onDrop(org.pentaho.ui.xul.dnd.DropEvent event) -
moveFiles
protected void moveFiles(List<UIRepositoryObject> objects, UIRepositoryDirectory targetDirectory) throws Exception - Throws:
Exception
-
onDoubleClick
-
onToggle
-
getSelectedFolderItems
-
setSelectedFolderItems
-
getSelectedFileItems
-
setSelectedFileItems
-
getSelectedItemsBinding
public org.pentaho.ui.xul.binding.Binding getSelectedItemsBinding() -
setSelectedItemsBinding
public void setSelectedItemsBinding(org.pentaho.ui.xul.binding.Binding selectedItemsBinding) -
setRepositoryObjects
-
getRepositoryObjects
-
setRepositoryItems
-
getRepositoryItems
-
getRepositoryDirectories
-
setRepositoryDirectories
-
getSelectedRepoDirChildren
-
addContextChangeVetoer
- Specified by:
addContextChangeVetoer
in interfaceIBrowseController
-
removeContextChangeVetoer
- Specified by:
removeContextChangeVetoer
in interfaceIBrowseController
-
getShell
protected org.eclipse.swt.widgets.Shell getShell()
-