public class ExtendedScrollTable extends com.google.gwt.gen2.table.client.ScrollTable implements OriginPanel
com.google.gwt.gen2.table.client.AbstractScrollTable.ColumnResizePolicy, com.google.gwt.gen2.table.client.AbstractScrollTable.ResizePolicy, com.google.gwt.gen2.table.client.AbstractScrollTable.ScrollPolicy, com.google.gwt.gen2.table.client.AbstractScrollTable.ScrollTableImages, com.google.gwt.gen2.table.client.AbstractScrollTable.SortPolicy
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
Modifier and Type | Field and Description |
---|---|
static int |
ACTION_NONE |
static int |
ACTION_RENAMING |
int |
colDataIndex |
int |
colMassiveIndex |
int |
colStatusIndex |
Map<Integer,Object> |
data |
List<Integer> |
massiveSelected |
FILE_BROWSER, NONE, TREE_ROOT, TREE_TRASH
Constructor and Description |
---|
ExtendedScrollTable(com.google.gwt.gen2.table.client.FixedWidthGrid dataTable,
com.google.gwt.gen2.table.client.FixedWidthFlexTable headerTable,
com.google.gwt.gen2.table.client.AbstractScrollTable.ScrollTableImages scrollTableImages) |
Modifier and Type | Method and Description |
---|---|
void |
addNoteIconToSelectedRow()
addNoteIconToSelectedRow
|
void |
addRow(GWTDocument doc)
Sets the document to the row
|
void |
addRow(GWTDocument doc,
boolean update)
Sets the document to the row
Update indicates should be updated selected row otherside inserts new
|
void |
addRow(GWTFolder folder)
addRow
|
void |
addRow(GWTFolder folder,
boolean update)
Sets the values in specifed row/column
Expects a Comparable Object for sorting
Update indicates should be updated selected row otherside inserts new
|
void |
addRow(GWTMail mail)
addRow
|
void |
addRow(GWTMail mail,
boolean update)
Sets the mail to the row
Update indicates should be updated selected row otherside inserts new
|
void |
delete()
Deletes document row
|
void |
deleteNoteIconToSelectedRow()
deleteNoteIconToSelectedRow
|
void |
deselecSelectedRow()
Deselects the selected row
|
void |
downloadDocument(boolean checkout)
Download document
|
void |
downloadDocumentPdf()
Download document as PDF
|
void |
downloadDocuments(boolean checkout,
List<String> uuidList)
Download documents
|
void |
downloadMail()
Download mail
|
int |
findSelectedRowById(String id)
Finds row by id document or folder
|
List<String> |
getAllSelectedDocumentsPaths()
getAllSelectedDocumentsPaths
|
List<String> |
getAllSelectedDocumentsUUIDs()
getAllSelectedDocumentsUUIDs
|
List<String> |
getAllSelectedMailUUIDs()
getAllSelectedMailUUIDs
|
List<String> |
getAllSelectedPaths()
getAllSelectedPaths
|
List<GWTDocument> |
getAllSelectedPdfDocuments()
getAllSelectedPdfDocuments
|
List<String> |
getAllSelectedUUIDs()
getAllSelectedUUIDs
|
int |
getColDataIndex()
getColDataIndex
|
GWTDocument |
getDocument()
Gets a actual document object row
|
GWTFolder |
getFolder()
Gets a actual Folder object row
|
GWTMail |
getMail()
Gets a actual Mail object row
|
int |
getMouseX()
Gets the X position on mouse click
|
int |
getMouseY()
Gets the Y position on mouse click
|
String |
getSelectedId()
Gets the path of the selected document or folder
|
int |
getSelectedRow()
Gets the selected row
|
boolean |
hasRows()
hasRows
|
boolean |
isCheckout()
Gets the checkout flag
|
boolean |
isDocumentSelected()
Return true or false if actual selected row is document
|
boolean |
isFolderSelected()
Return true or false if actual selected row is folder
|
boolean |
isLocked()
Gets the locked flag
|
boolean |
isMailSelected()
Return true or false if actual selected row is mail
|
boolean |
isMassive()
isMassive
|
boolean |
isSelectedRow()
Return true or false if it's a selected row
|
boolean |
isSorted()
isSorted
|
void |
onBrowserEvent(com.google.gwt.user.client.Event event) |
void |
print()
print
|
void |
refreshSort()
refreshSort
|
void |
removeAllMassive()
removeAllMassive
|
void |
reset()
Resets the values
|
void |
resetAction()
Resets the row action
|
void |
resetSelectedRows()
Reset selected rows
|
void |
restoreSelectedRow(int selectedRow)
Restores the selected row value
|
void |
selectAllDocumentsMassive()
selectAllDocumentsMassive
|
void |
selectAllFoldersMassive()
selectAllFoldersMassive
|
void |
selectAllMailsMassive()
selectAllMailsMassive
|
void |
selectAllMassive()
selectAllMassive
|
void |
selectDown()
selectDown
|
void |
selectPrevRow()
After deletes document or folder selects a row
|
void |
selectUp()
selectUp
|
void |
setAction(int action)
Sets the actual action on rows
|
void |
setColDataIndex(int colDataIndex)
setDataColumn
|
void |
setColMassiveIndex(int colMassiveIndex)
setColMassiveIndex
|
void |
setDocument(GWTDocument doc)
Sets the document object to actual row
|
void |
setFolder(GWTFolder folder)
Sets the folder to the selected row
|
void |
setMail(GWTMail mail)
Sets the mail to the row
|
void |
setProfileFileBrowser(GWTProfileFileBrowser profileFileBrowser)
setProfileFileBrowser
|
void |
setSelectedRow(int row)
Sets the selected row
|
getMaximumColumnWidth, getMinimumColumnWidth, getPreferredColumnWidth, isColumnSortable, isColumnTruncatable, isFooterColumnTruncatable, isHeaderColumnTruncatable, setColumnSortable, setColumnTruncatable, setFooterColumnTruncatable, setHeaderColumnTruncatable, setMaximumColumnWidth, setMinimumColumnWidth, setPreferredColumnWidth
addScrollHandler, applySortedColumnIndicator, createWrapper, fillWidth, getCellPadding, getCellSpacing, getColumnResizePolicy, getColumnWidth, getDataTable, getDataWrapper, getFooterTable, getHeaderTable, getMinimumOffsetWidth, getResizePolicy, getScrollPolicy, getSortPolicy, maybeFillWidth, onHeaderSort, onLoad, onResize, onUnload, redraw, remove, resetColumnWidths, resizeTablesVertically, resizeTablesVerticallyNow, scrollTables, setCellPadding, setCellSpacing, setColumnResizePolicy, setColumnWidth, setFooterTable, setHeight, setResizePolicy, setScrollPolicy, setSortPolicy
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, insert, insert, iterator, remove
add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan
addDomHandler, addHandler, createLegacyHandlerManager, fireEvent, getHandlerManager, isEventHandled, removeHandler, setStyleName, toString
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, unsinkEvents
public static final int ACTION_NONE
public static final int ACTION_RENAMING
public int colDataIndex
public int colStatusIndex
public int colMassiveIndex
public ExtendedScrollTable(com.google.gwt.gen2.table.client.FixedWidthGrid dataTable, com.google.gwt.gen2.table.client.FixedWidthFlexTable headerTable, com.google.gwt.gen2.table.client.AbstractScrollTable.ScrollTableImages scrollTableImages)
dataTable
- headerTable
- scrollTableImages
- public boolean isSorted()
public void refreshSort()
public void reset()
public void setSelectedRow(int row)
row
- The row numberpublic void addRow(GWTFolder folder)
folder
- public void addRow(GWTFolder folder, boolean update)
rows
- The actual table rowGWTFolder
- The folderpublic void addNoteIconToSelectedRow()
public void deleteNoteIconToSelectedRow()
public void addRow(GWTDocument doc)
rows
- The table rowdoc
- The documentpublic void addRow(GWTDocument doc, boolean update)
public void addRow(GWTMail mail)
public void addRow(GWTMail mail, boolean update)
public void deselecSelectedRow()
public void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent
in interface com.google.gwt.user.client.EventListener
onBrowserEvent
in class com.google.gwt.gen2.table.client.AbstractScrollTable
public String getSelectedId()
public int findSelectedRowById(String id)
id
- The idpublic int getSelectedRow()
public void resetSelectedRows()
public void restoreSelectedRow(int selectedRow)
selectedRow
- The selected rowpublic int getMouseX()
public int getMouseY()
public GWTDocument getDocument()
public void setDocument(GWTDocument doc)
doc
- The documentpublic void delete()
public void selectPrevRow()
public void selectUp()
public void selectDown()
public GWTFolder getFolder()
public GWTMail getMail()
public void setMail(GWTMail mail)
rows
- The table rowdoc
- The documentpublic void setFolder(GWTFolder folder)
folder
- The folder objectpublic boolean isDocumentSelected()
public boolean isFolderSelected()
public boolean isMailSelected()
public boolean isSelectedRow()
public void downloadDocuments(boolean checkout, List<String> uuidList)
public void downloadDocument(boolean checkout)
public void downloadMail()
public void downloadDocumentPdf()
public void print()
public boolean isCheckout()
public boolean isLocked()
public void setAction(int action)
action
- The actionpublic void resetAction()
public boolean hasRows()
public void selectAllMassive()
public void selectAllFoldersMassive()
public void selectAllDocumentsMassive()
public void selectAllMailsMassive()
public void removeAllMassive()
public boolean isMassive()
public List<String> getAllSelectedDocumentsUUIDs()
public List<String> getAllSelectedDocumentsPaths()
public List<GWTDocument> getAllSelectedPdfDocuments()
public int getColDataIndex()
public void setColDataIndex(int colDataIndex)
dataColumn
- public void setColMassiveIndex(int colMassiveIndex)
colMassiveIndex
- public void setProfileFileBrowser(GWTProfileFileBrowser profileFileBrowser)
profileFileBrowser
- Copyright © 2018 Open Knowledge Management System S.L.. All rights reserved.