java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.HTMLTable
com.google.gwt.user.client.ui.FlexTable
org.pentaho.mantle.client.solutionbrowser.filelist.FileItem
All Implemented Interfaces:
com.google.gwt.event.dom.client.HasAllDragAndDropHandlers, com.google.gwt.event.dom.client.HasAllMouseHandlers, com.google.gwt.event.dom.client.HasClickHandlers, com.google.gwt.event.dom.client.HasDoubleClickHandlers, com.google.gwt.event.dom.client.HasDragEndHandlers, com.google.gwt.event.dom.client.HasDragEnterHandlers, com.google.gwt.event.dom.client.HasDragHandlers, com.google.gwt.event.dom.client.HasDragLeaveHandlers, com.google.gwt.event.dom.client.HasDragOverHandlers, com.google.gwt.event.dom.client.HasDragStartHandlers, com.google.gwt.event.dom.client.HasDropHandlers, com.google.gwt.event.dom.client.HasMouseDownHandlers, com.google.gwt.event.dom.client.HasMouseMoveHandlers, com.google.gwt.event.dom.client.HasMouseOutHandlers, com.google.gwt.event.dom.client.HasMouseOverHandlers, com.google.gwt.event.dom.client.HasMouseUpHandlers, com.google.gwt.event.dom.client.HasMouseWheelHandlers, 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.IsWidget, com.google.gwt.user.client.ui.SourcesTableEvents, Iterable<com.google.gwt.user.client.ui.Widget>, IFileSummary

public class FileItem extends com.google.gwt.user.client.ui.FlexTable implements com.google.gwt.event.dom.client.HasAllMouseHandlers, IFileSummary
  • Nested Class Summary

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

    com.google.gwt.user.client.ui.FlexTable.FlexCellFormatter

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

    com.google.gwt.user.client.ui.HTMLTable.Cell, com.google.gwt.user.client.ui.HTMLTable.CellFormatter, com.google.gwt.user.client.ui.HTMLTable.ColumnFormatter, com.google.gwt.user.client.ui.HTMLTable.RowFormatter

    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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     

    Fields inherited from class com.google.gwt.user.client.ui.UIObject

    DEBUG_ID_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    FileItem(org.pentaho.gwt.widgets.client.filechooser.RepositoryFile repositoryFile, FilesListPanel filesListPanel, FileTypeEnabledOptions options, boolean supportsACLs, String fileIconStr)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    com.google.gwt.event.shared.HandlerRegistration
    addMouseDownHandler(com.google.gwt.event.dom.client.MouseDownHandler handler)
     
    com.google.gwt.event.shared.HandlerRegistration
    addMouseMoveHandler(com.google.gwt.event.dom.client.MouseMoveHandler handler)
     
    com.google.gwt.event.shared.HandlerRegistration
    addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler)
     
    com.google.gwt.event.shared.HandlerRegistration
    addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler)
     
    com.google.gwt.event.shared.HandlerRegistration
    addMouseUpHandler(com.google.gwt.event.dom.client.MouseUpHandler handler)
    DND required methods below
    com.google.gwt.event.shared.HandlerRegistration
    addMouseWheelHandler(com.google.gwt.event.dom.client.MouseWheelHandler handler)
     
    void
     
    void
     
    void
     
     
     
     
     
     
    org.pentaho.gwt.widgets.client.filechooser.RepositoryFile
     
     
    boolean
     
    boolean
     
     
    void
    onBrowserEvent(com.google.gwt.user.client.Event event)
     
    void
     
    void
     
    void
    setDroppable(boolean canDrop)
     
    void
    setLastModifiedDate(Date lastModifiedDate)
     
    void
    setLocalizedName(String localizedName)
     
    void
     
    void
    setRepositoryFile(org.pentaho.gwt.widgets.client.filechooser.RepositoryFile repositoryFile)
     
    void
     
    void
    toggleSelect(Boolean addSelection, Boolean extendSelection)
     

    Methods inherited from class com.google.gwt.user.client.ui.FlexTable

    addCell, getCellCount, getFlexCellFormatter, getRowCount, insertCell, insertRow, prepareCell, prepareRow, removeAllRows, removeCell, removeCells, removeRow

    Methods inherited from class com.google.gwt.user.client.ui.HTMLTable

    addClickHandler, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addTableListener, checkCellBounds, checkRowBounds, clear, clear, clearCell, createCell, getBodyElement, getCellForEvent, getCellFormatter, getCellPadding, getCellSpacing, getColumnFormatter, getDOMCellCount, getDOMCellCount, getDOMCellCount, getDOMRowCount, getDOMRowCount, getDOMRowCount, getEventTargetCell, getHTML, getRowFormatter, getText, getWidget, insertCells, internalClearCell, internalClearCell, isCellPresent, iterator, onEnsureDebugId, prepareColumn, remove, removeTableListener, setBorderWidth, setCellFormatter, setCellPadding, setCellSpacing, setColumnFormatter, setHTML, setHTML, setRowFormatter, setText, setWidget, setWidget

    Methods inherited from class com.google.gwt.user.client.ui.Panel

    add, 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, 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, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.gwt.event.shared.HasHandlers

    fireEvent

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Field Details

  • Constructor Details

    • FileItem

      public FileItem(org.pentaho.gwt.widgets.client.filechooser.RepositoryFile repositoryFile, FilesListPanel filesListPanel, FileTypeEnabledOptions options, boolean supportsACLs, String fileIconStr)
  • Method Details

    • select

      public void select()
    • deselect

      public void deselect()
    • toggleSelect

      public void toggleSelect(Boolean addSelection, Boolean extendSelection)
    • onBrowserEvent

      public void onBrowserEvent(com.google.gwt.user.client.Event event)
      Specified by:
      onBrowserEvent in interface com.google.gwt.user.client.EventListener
      Overrides:
      onBrowserEvent in class com.google.gwt.user.client.ui.Widget
    • isCommandEnabled

      public boolean isCommandEnabled(FileCommand.COMMAND command, HashMap<String,String> metadataPerms)
    • getName

      public String getName()
      Specified by:
      getName in interface IFileSummary
    • setName

      public void setName(String name)
    • getLastModifiedDate

      public Date getLastModifiedDate()
    • setLastModifiedDate

      public void setLastModifiedDate(Date lastModifiedDate)
    • getLocalizedName

      public String getLocalizedName()
      Specified by:
      getLocalizedName in interface IFileSummary
    • setLocalizedName

      public void setLocalizedName(String localizedName)
    • getRepositoryFile

      public org.pentaho.gwt.widgets.client.filechooser.RepositoryFile getRepositoryFile()
    • setRepositoryFile

      public void setRepositoryFile(org.pentaho.gwt.widgets.client.filechooser.RepositoryFile repositoryFile)
    • fireFileSelectionEvent

      public void fireFileSelectionEvent()
    • addFileSelectionChangedListener

      public void addFileSelectionChangedListener(IFileItemListener listener)
    • removeFileSelectionChangedListener

      public void removeFileSelectionChangedListener(IFileItemListener listener)
    • getPath

      public String getPath()
      Specified by:
      getPath in interface IFileSummary
    • getURL

      public String getURL()
    • setURL

      public void setURL(String url)
    • getIcon

      public String getIcon()
    • addMouseUpHandler

      public com.google.gwt.event.shared.HandlerRegistration addMouseUpHandler(com.google.gwt.event.dom.client.MouseUpHandler handler)
      DND required methods below
      Specified by:
      addMouseUpHandler in interface com.google.gwt.event.dom.client.HasMouseUpHandlers
    • addMouseOutHandler

      public com.google.gwt.event.shared.HandlerRegistration addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler)
      Specified by:
      addMouseOutHandler in interface com.google.gwt.event.dom.client.HasMouseOutHandlers
    • addMouseMoveHandler

      public com.google.gwt.event.shared.HandlerRegistration addMouseMoveHandler(com.google.gwt.event.dom.client.MouseMoveHandler handler)
      Specified by:
      addMouseMoveHandler in interface com.google.gwt.event.dom.client.HasMouseMoveHandlers
    • addMouseWheelHandler

      public com.google.gwt.event.shared.HandlerRegistration addMouseWheelHandler(com.google.gwt.event.dom.client.MouseWheelHandler handler)
      Specified by:
      addMouseWheelHandler in interface com.google.gwt.event.dom.client.HasMouseWheelHandlers
    • addMouseOverHandler

      public com.google.gwt.event.shared.HandlerRegistration addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler)
      Specified by:
      addMouseOverHandler in interface com.google.gwt.event.dom.client.HasMouseOverHandlers
    • addMouseDownHandler

      public com.google.gwt.event.shared.HandlerRegistration addMouseDownHandler(com.google.gwt.event.dom.client.MouseDownHandler handler)
      Specified by:
      addMouseDownHandler in interface com.google.gwt.event.dom.client.HasMouseDownHandlers
    • makeDragProxy

      public FileItem makeDragProxy()
    • enableDrag

      public void enableDrag()
    • setDroppable

      public void setDroppable(boolean canDrop)
    • isInTrash

      public boolean isInTrash()