Class FilesListPanel

  • All Implemented Interfaces:
    com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IndexedPanel, com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget, com.google.gwt.user.client.ui.InsertPanel, com.google.gwt.user.client.ui.InsertPanel.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, Iterable<com.google.gwt.user.client.ui.Widget>, IRepositoryFileProvider, IRepositoryFileTreeListener

    public class FilesListPanel
    extends com.google.gwt.user.client.ui.FlowPanel
    implements IRepositoryFileTreeListener, IRepositoryFileProvider
    Author:
    wseyler
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

        com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
      • Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets

        com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
      • Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel

        com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
      • Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.InsertPanel

        com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected String FILES_LABEL_STYLE_NAME  
      • Fields inherited from class com.google.gwt.user.client.ui.UIObject

        DEBUG_ID_PREFIX
    • Constructor Summary

      Constructors 
      Constructor Description
      FilesListPanel()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void beforeFetchRepositoryFileTree()  
      void deselect()  
      List<FileItem> getAllFileItems()  
      int getFileCount()  
      FileItem getFileItem​(int index)  
      int getFileItemIndex​(FileItem fileItem)  
      List<org.pentaho.gwt.widgets.client.filechooser.RepositoryFile> getRepositoryFiles()  
      List<FileItem> getSelectedFileItems()  
      org.pentaho.gwt.widgets.client.toolbar.Toolbar getToolbar()  
      boolean isShowHiddenFiles()  
      void onFetchRepositoryFileTree​(org.pentaho.gwt.widgets.client.filechooser.RepositoryFileTree fileTree, List<org.pentaho.gwt.widgets.client.filechooser.RepositoryFile> trashItems)  
      void populateFilesList​(SolutionBrowserPanel perspective, SolutionTree solutionTree, com.google.gwt.user.client.ui.TreeItem item, com.google.gwt.core.client.JsArrayString filters)  
      void selectNextItem​(List<FileItem> currentItems)  
      void selectPreviousItem​(List<FileItem> currentItems)  
      void setSelectedFileItems​(List<FileItem> fileItems)  
      void setShowHiddenFiles​(boolean showHiddenFiles)  
      • Methods inherited from class com.google.gwt.user.client.ui.FlowPanel

        add, clear, insert, insert
      • Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel

        add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
      • Methods inherited from class com.google.gwt.user.client.ui.Panel

        add, adopt, doAttachChildren, doDetachChildren, orphan, remove
      • Methods inherited from class com.google.gwt.user.client.ui.Widget

        addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
      • Methods inherited from class com.google.gwt.user.client.ui.UIObject

        addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
      • Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel

        getWidget, getWidgetCount, getWidgetIndex, remove
      • Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget

        getWidgetIndex
      • Methods inherited from interface com.google.gwt.user.client.ui.InsertPanel.ForIsWidget

        add
    • Field Detail

      • FILES_LABEL_STYLE_NAME

        protected String FILES_LABEL_STYLE_NAME
    • Constructor Detail

      • FilesListPanel

        public FilesListPanel()
    • Method Detail

      • isShowHiddenFiles

        public boolean isShowHiddenFiles()
      • setShowHiddenFiles

        public void setShowHiddenFiles​(boolean showHiddenFiles)
      • populateFilesList

        public void populateFilesList​(SolutionBrowserPanel perspective,
                                      SolutionTree solutionTree,
                                      com.google.gwt.user.client.ui.TreeItem item,
                                      com.google.gwt.core.client.JsArrayString filters)
      • deselect

        public void deselect()
      • getSelectedFileItems

        public List<FileItem> getSelectedFileItems()
      • setSelectedFileItems

        public void setSelectedFileItems​(List<FileItem> fileItems)
      • selectNextItem

        public void selectNextItem​(List<FileItem> currentItems)
      • selectPreviousItem

        public void selectPreviousItem​(List<FileItem> currentItems)
      • getFileItem

        public FileItem getFileItem​(int index)
      • getFileItemIndex

        public int getFileItemIndex​(FileItem fileItem)
      • getFileCount

        public int getFileCount()
        Returns:
      • getToolbar

        public org.pentaho.gwt.widgets.client.toolbar.Toolbar getToolbar()
        Returns:
      • onFetchRepositoryFileTree

        public void onFetchRepositoryFileTree​(org.pentaho.gwt.widgets.client.filechooser.RepositoryFileTree fileTree,
                                              List<org.pentaho.gwt.widgets.client.filechooser.RepositoryFile> trashItems)
        Specified by:
        onFetchRepositoryFileTree in interface IRepositoryFileTreeListener