Class FileItem
- 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
-
-
Field Summary
Fields Modifier and Type Field Description static StringANALYSIS_VIEW_SUFFIXstatic StringURL_SUFFIXstatic StringXACTION_SUFFIX
-
Constructor Summary
Constructors Constructor Description FileItem(org.pentaho.gwt.widgets.client.filechooser.RepositoryFile repositoryFile, FilesListPanel filesListPanel, FileTypeEnabledOptions options, boolean supportsACLs, String fileIconStr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFileSelectionChangedListener(IFileItemListener listener)com.google.gwt.event.shared.HandlerRegistrationaddMouseDownHandler(com.google.gwt.event.dom.client.MouseDownHandler handler)com.google.gwt.event.shared.HandlerRegistrationaddMouseMoveHandler(com.google.gwt.event.dom.client.MouseMoveHandler handler)com.google.gwt.event.shared.HandlerRegistrationaddMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler)com.google.gwt.event.shared.HandlerRegistrationaddMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler)com.google.gwt.event.shared.HandlerRegistrationaddMouseUpHandler(com.google.gwt.event.dom.client.MouseUpHandler handler)DND required methods belowcom.google.gwt.event.shared.HandlerRegistrationaddMouseWheelHandler(com.google.gwt.event.dom.client.MouseWheelHandler handler)voiddeselect()voidenableDrag()voidfireFileSelectionEvent()StringgetIcon()DategetLastModifiedDate()StringgetLocalizedName()StringgetName()StringgetPath()org.pentaho.gwt.widgets.client.filechooser.RepositoryFilegetRepositoryFile()StringgetURL()booleanisCommandEnabled(FileCommand.COMMAND command, HashMap<String,String> metadataPerms)booleanisInTrash()FileItemmakeDragProxy()voidonBrowserEvent(com.google.gwt.user.client.Event event)voidremoveFileSelectionChangedListener(IFileItemListener listener)voidselect()voidsetDroppable(boolean canDrop)voidsetLastModifiedDate(Date lastModifiedDate)voidsetLocalizedName(String localizedName)voidsetName(String name)voidsetRepositoryFile(org.pentaho.gwt.widgets.client.filechooser.RepositoryFile repositoryFile)voidsetURL(String url)voidtoggleSelect(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 java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
ANALYSIS_VIEW_SUFFIX
public static final String ANALYSIS_VIEW_SUFFIX
- See Also:
- Constant Field Values
-
XACTION_SUFFIX
public static final String XACTION_SUFFIX
- See Also:
- Constant Field Values
-
URL_SUFFIX
public static final String URL_SUFFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FileItem
public FileItem(org.pentaho.gwt.widgets.client.filechooser.RepositoryFile repositoryFile, FilesListPanel filesListPanel, FileTypeEnabledOptions options, boolean supportsACLs, String fileIconStr)
-
-
Method Detail
-
select
public void select()
-
deselect
public void deselect()
-
onBrowserEvent
public void onBrowserEvent(com.google.gwt.user.client.Event event)
- Specified by:
onBrowserEventin interfacecom.google.gwt.user.client.EventListener- Overrides:
onBrowserEventin classcom.google.gwt.user.client.ui.Widget
-
isCommandEnabled
public boolean isCommandEnabled(FileCommand.COMMAND command, HashMap<String,String> metadataPerms)
-
getName
public String getName()
- Specified by:
getNamein interfaceIFileSummary
-
setName
public void setName(String name)
-
getLastModifiedDate
public Date getLastModifiedDate()
-
setLastModifiedDate
public void setLastModifiedDate(Date lastModifiedDate)
-
getLocalizedName
public String getLocalizedName()
- Specified by:
getLocalizedNamein interfaceIFileSummary
-
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:
getPathin interfaceIFileSummary
-
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:
addMouseUpHandlerin interfacecom.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:
addMouseOutHandlerin interfacecom.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:
addMouseMoveHandlerin interfacecom.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:
addMouseWheelHandlerin interfacecom.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:
addMouseOverHandlerin interfacecom.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:
addMouseDownHandlerin interfacecom.google.gwt.event.dom.client.HasMouseDownHandlers
-
makeDragProxy
public FileItem makeDragProxy()
-
enableDrag
public void enableDrag()
-
setDroppable
public void setDroppable(boolean canDrop)
-
isInTrash
public boolean isInTrash()
-
-