org.pentaho.di.ui.repository.repositoryexplorer.controllers
Class BrowseController

java.lang.Object
  extended by org.pentaho.ui.xul.XulEventSourceAdapter
      extended by org.pentaho.ui.xul.impl.AbstractXulEventHandler
          extended by 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.


Constructor Summary
BrowseController()
           
 
Method Summary
 void addContextChangeVetoer(ContextChangeVetoer listener)
           
 void collapseAllFolders()
           
 void createFolder()
           
 void deleteContent()
           
 void deleteFolder()
           
 void expandAllFolders()
           
 void exportFolder()
           
 String getName()
           
 List<UIRepositoryDirectory> getRepositoryDirectories()
           
 UIRepositoryDirectory getRepositoryDirectory()
           
 List<UIRepositoryObject> getRepositoryItems()
           
 List<UIRepositoryObject> getRepositoryObjects()
           
 List<UIRepositoryObject> getSelectedFileItems()
           
 List<UIRepositoryDirectory> getSelectedFolderItems()
           
 org.pentaho.ui.xul.binding.Binding getSelectedItemsBinding()
           
 UIRepositoryObjects getSelectedRepoDirChildren()
           
 void init(Repository repository)
           
 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 openContent()
           
 void openContent(Object[] items)
           
 void removeContextChangeVetoer(ContextChangeVetoer listener)
           
 void renameContent()
           
 void renameFolder()
           
 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, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowseController

public BrowseController()
Method Detail

init

public void init(Repository repository)
          throws ControllerInitializationException
Specified by:
init in interface IUISupportController
Throws:
ControllerInitializationException

getName

public String getName()
Specified by:
getName in interface IUISupportController
Specified by:
getName in interface org.pentaho.ui.xul.impl.XulEventHandler
Overrides:
getName in class org.pentaho.ui.xul.impl.AbstractXulEventHandler

getRepositoryDirectory

public UIRepositoryDirectory getRepositoryDirectory()

expandAllFolders

public void expandAllFolders()

collapseAllFolders

public void collapseAllFolders()

openContent

public void openContent()

openContent

public void openContent(Object[] items)

renameContent

public void renameContent()
                   throws Exception
Throws:
Exception

deleteContent

public void deleteContent()
                   throws Exception
Throws:
Exception

createFolder

public void createFolder()
                  throws Exception
Throws:
Exception

exportFolder

public void exportFolder()
                  throws Exception
Throws:
Exception

deleteFolder

public void deleteFolder()
                  throws Exception
Throws:
Exception

renameFolder

public void renameFolder()
                  throws Exception
Throws:
Exception

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)

onDoubleClick

public void onDoubleClick(Object[] selectedItems)

getSelectedFolderItems

public List<UIRepositoryDirectory> getSelectedFolderItems()

setSelectedFolderItems

public void setSelectedFolderItems(List<UIRepositoryDirectory> selectedFolderItems)

getSelectedFileItems

public List<UIRepositoryObject> getSelectedFileItems()

setSelectedFileItems

public void setSelectedFileItems(List<UIRepositoryObject> selectedFileItems)

getSelectedItemsBinding

public org.pentaho.ui.xul.binding.Binding getSelectedItemsBinding()

setSelectedItemsBinding

public void setSelectedItemsBinding(org.pentaho.ui.xul.binding.Binding selectedItemsBinding)

setRepositoryObjects

public void setRepositoryObjects(List<UIRepositoryObject> selectedFileItems)

getRepositoryObjects

public List<UIRepositoryObject> getRepositoryObjects()

setRepositoryItems

public void setRepositoryItems(List<UIRepositoryObject> selectedItems)

getRepositoryItems

public List<UIRepositoryObject> getRepositoryItems()

getRepositoryDirectories

public List<UIRepositoryDirectory> getRepositoryDirectories()

setRepositoryDirectories

public void setRepositoryDirectories(List<UIRepositoryDirectory> selectedFolderItems)

getSelectedRepoDirChildren

public UIRepositoryObjects getSelectedRepoDirChildren()

addContextChangeVetoer

public void addContextChangeVetoer(ContextChangeVetoer listener)
Specified by:
addContextChangeVetoer in interface IBrowseController

removeContextChangeVetoer

public void removeContextChangeVetoer(ContextChangeVetoer listener)
Specified by:
removeContextChangeVetoer in interface IBrowseController