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 String
ANALYSIS_VIEW_SUFFIX
static String
URL_SUFFIX
static String
XACTION_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 void
addFileSelectionChangedListener(IFileItemListener listener)
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 belowcom.google.gwt.event.shared.HandlerRegistration
addMouseWheelHandler(com.google.gwt.event.dom.client.MouseWheelHandler handler)
void
deselect()
void
enableDrag()
void
fireFileSelectionEvent()
String
getIcon()
Date
getLastModifiedDate()
String
getLocalizedName()
String
getName()
String
getPath()
org.pentaho.gwt.widgets.client.filechooser.RepositoryFile
getRepositoryFile()
String
getURL()
boolean
isCommandEnabled(FileCommand.COMMAND command, HashMap<String,String> metadataPerms)
boolean
isInTrash()
FileItem
makeDragProxy()
void
onBrowserEvent(com.google.gwt.user.client.Event event)
void
removeFileSelectionChangedListener(IFileItemListener listener)
void
select()
void
setDroppable(boolean canDrop)
void
setLastModifiedDate(Date lastModifiedDate)
void
setLocalizedName(String localizedName)
void
setName(String name)
void
setRepositoryFile(org.pentaho.gwt.widgets.client.filechooser.RepositoryFile repositoryFile)
void
setURL(String url)
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 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:
onBrowserEvent
in interfacecom.google.gwt.user.client.EventListener
- Overrides:
onBrowserEvent
in classcom.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 interfaceIFileSummary
-
setName
public void setName(String name)
-
getLastModifiedDate
public Date getLastModifiedDate()
-
setLastModifiedDate
public void setLastModifiedDate(Date lastModifiedDate)
-
getLocalizedName
public String getLocalizedName()
- Specified by:
getLocalizedName
in 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:
getPath
in 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:
addMouseUpHandler
in 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:
addMouseOutHandler
in 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:
addMouseMoveHandler
in 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:
addMouseWheelHandler
in 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:
addMouseOverHandler
in 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:
addMouseDownHandler
in 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()
-
-