public class BrowseController extends org.pentaho.ui.xul.impl.AbstractXulEventHandler implements IUISupportController, IBrowseController
Modifier and Type | Field and Description |
---|---|
protected org.pentaho.ui.xul.binding.BindingFactory |
bf |
protected org.pentaho.ui.xul.components.XulConfirmBox |
confirmBox |
protected ContextChangeVetoerCollection |
contextChangeVetoers |
protected org.pentaho.ui.xul.binding.Binding |
directoryBinding |
protected Map<ObjectId,UIRepositoryDirectory> |
dirMap
Allows for lookup of a UIRepositoryDirectory by ObjectId.
|
protected org.pentaho.ui.xul.containers.XulTree |
fileTable |
protected org.pentaho.ui.xul.containers.XulTree |
folderTree |
protected static String |
HOME_PATH |
protected MainController |
mainController |
protected org.pentaho.ui.xul.components.XulMessageBox |
messageBox |
protected static String |
PUBLIC_PATH |
protected UIRepositoryDirectory |
repoDir |
protected Repository |
repository |
protected List<UIRepositoryDirectory> |
repositoryDirectories |
protected UIRepositoryDirectory |
repositoryDirectory |
protected List<UIRepositoryObject> |
selectedFileItems |
protected List<UIRepositoryDirectory> |
selectedFolderItems |
protected org.pentaho.ui.xul.binding.Binding |
selectedItemsBinding |
Constructor and Description |
---|
BrowseController() |
bind, bind, getData, getXulDomContainer, setData, setName, setXulDomContainer
protected UIRepositoryDirectory repoDir
protected org.pentaho.ui.xul.containers.XulTree folderTree
protected org.pentaho.ui.xul.containers.XulTree fileTable
protected UIRepositoryDirectory repositoryDirectory
protected ContextChangeVetoerCollection contextChangeVetoers
protected org.pentaho.ui.xul.binding.BindingFactory bf
protected org.pentaho.ui.xul.binding.Binding directoryBinding
protected org.pentaho.ui.xul.binding.Binding selectedItemsBinding
protected List<UIRepositoryDirectory> selectedFolderItems
protected List<UIRepositoryObject> selectedFileItems
protected List<UIRepositoryDirectory> repositoryDirectories
protected Repository repository
protected MainController mainController
protected org.pentaho.ui.xul.components.XulMessageBox messageBox
protected org.pentaho.ui.xul.components.XulConfirmBox confirmBox
protected static final String HOME_PATH
protected static final String PUBLIC_PATH
protected Map<ObjectId,UIRepositoryDirectory> dirMap
public void init(Repository repository) throws ControllerInitializationException
init
in interface IUISupportController
ControllerInitializationException
protected void createBindings()
protected void doCreateBindings()
protected org.pentaho.ui.xul.binding.Binding createDirectoryBinding()
public String getName()
getName
in interface IUISupportController
getName
in interface org.pentaho.ui.xul.impl.XulEventHandler
getName
in class org.pentaho.ui.xul.impl.AbstractXulEventHandler
public UIRepositoryDirectory getRepositoryDirectory()
protected void populateDirMap(UIRepositoryDirectory repDir)
public void expandAllFolders()
public void collapseAllFolders()
public void openContent()
public void openContent(Object[] items)
protected void confirm(String title, String message, Callable<Void> onAccept) throws org.pentaho.ui.xul.XulException
org.pentaho.ui.xul.XulException
protected void confirm(String title, String message) throws org.pentaho.ui.xul.XulException
org.pentaho.ui.xul.XulException
protected void confirmDialog(String title, String msg, String ok) throws Exception
Exception
protected void confirmDialog(Callable<Void> callback, String title, String msg, String yes, String no) throws Exception
Exception
protected void deleteContent(UIRepositoryObject repoObject) throws Exception
Exception
protected void deleteFolder(UIRepositoryDirectory repoDir) throws Exception
Exception
protected void renameRepositoryObject(UIRepositoryObject object) throws org.pentaho.ui.xul.XulException
org.pentaho.ui.xul.XulException
protected org.pentaho.ui.xul.components.XulPromptBox promptForName(UIRepositoryObject object) throws org.pentaho.ui.xul.XulException
org.pentaho.ui.xul.XulException
public void onDragFromGlobalTree(org.pentaho.ui.xul.dnd.DropEvent event)
public void onDragFromLocalTable(org.pentaho.ui.xul.dnd.DropEvent event)
public void onDrop(org.pentaho.ui.xul.dnd.DropEvent event)
protected void moveFiles(List<UIRepositoryObject> objects, UIRepositoryDirectory targetDirectory) throws Exception
Exception
public void onDoubleClick(Object[] selectedItems)
public void onToggle(Object[] toggled, boolean expanded)
public List<UIRepositoryDirectory> getSelectedFolderItems()
public void setSelectedFolderItems(List<UIRepositoryDirectory> selectedFolderItems)
public List<UIRepositoryObject> getSelectedFileItems()
public void setSelectedFileItems(List<UIRepositoryObject> selectedFileItems)
public org.pentaho.ui.xul.binding.Binding getSelectedItemsBinding()
public void setSelectedItemsBinding(org.pentaho.ui.xul.binding.Binding selectedItemsBinding)
public void setRepositoryObjects(List<UIRepositoryObject> selectedFileItems)
public List<UIRepositoryObject> getRepositoryObjects()
public void setRepositoryItems(List<UIRepositoryObject> selectedItems)
public List<UIRepositoryObject> getRepositoryItems()
public List<UIRepositoryDirectory> getRepositoryDirectories()
public void setRepositoryDirectories(List<UIRepositoryDirectory> selectedFolderItems)
public UIRepositoryObjects getSelectedRepoDirChildren()
public void addContextChangeVetoer(ContextChangeVetoer listener)
addContextChangeVetoer
in interface IBrowseController
public void removeContextChangeVetoer(ContextChangeVetoer listener)
removeContextChangeVetoer
in interface IBrowseController
protected org.eclipse.swt.widgets.Shell getShell()
Copyright © 2019 Hitachi Vantara. All rights reserved.