Interface DocumentsGrid
- All Known Implementing Classes:
- DocumentSelectorDocumentsListGrid,- DocumentsListGrid,- DocumentsTileGrid,- NavigatorDocumentsGrid,- SearchHitsGrid,- SearchIndexEntriesGrid
public interface DocumentsGrid
Shows a view on a collecion of documents
- Since:
- 7.0
- Author:
- Marco Meschieri - LogicalDOC
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionvoidClear the actual selectionvoiddestroy()voidExpands all visible rowsvoidReplace the actual data with a new sourceintgetCount()Counts the total number of elementsRetrieves all the documents dispalyed in the gridgetIds()Retrieves the list of all the idsintCounts the total number of selected elementsGets a bean representation of the currently selected item (not all properties are populated)Gets a bean representation of the currently selected items (not all properties are populated)Retrieves the list of all selected document IDsintRetrieves the index of the currently selected recintloadGridLayout(GUIFolder folder) Loads the layout of the grid(columns, ordering ...)voidregisterCellContextClickHandler(com.smartgwt.client.widgets.grid.events.CellContextClickHandler handler) Defines the handler of the context menu.voidregisterDataArrivedHandler(com.smartgwt.client.widgets.grid.events.DataArrivedHandler handler) voidregisterDoubleClickHandler(com.smartgwt.client.widgets.grid.events.CellDoubleClickHandler handler) Defines the handler for double clicks.voidregisterSelectionChangedHandler(com.smartgwt.client.widgets.grid.events.SelectionChangedHandler handler) Defines the handler for double clicks.voidRemoved the selected documents from visualizationvoidselectDocument(long docId) Selects the specified documentvoidsetCanDrag(boolean drag) Makes the grid support the dragvoidEnable the records expansionvoidsetDocuments(List<GUIDocument> documents) Forces the records in the gridvoidsetGridCursor(Cursor cursor) Defines the cursor widget this grid will have to interact tovoidshowFilters(boolean showFilters) Shows or hide the filtersvoidupdateDocument(GUIDocument document) Updates the visualization of the proper document element
- 
Field Details- 
MODE_LISTstatic final int MODE_LIST- See Also:
 
- 
MODE_GALLERYstatic final int MODE_GALLERY- See Also:
 
 
- 
- 
Method Details- 
updateDocumentUpdates the visualization of the proper document element- Parameters:
- document- the document to update
 
- 
setDocumentsForces the records in the grid- Parameters:
- documents- collectiomn of documents to render
 
- 
getDocumentsList<GUIDocument> getDocuments()Retrieves all the documents dispalyed in the grid- Returns:
- the list of documents
 
- 
getSelectedDocumentGUIDocument getSelectedDocument()Gets a bean representation of the currently selected item (not all properties are populated)- Returns:
- the first selected document
 
- 
getSelectedIndexint getSelectedIndex()Retrieves the index of the currently selected rec- Returns:
- the row of the selected element
 
- 
getSelectedDocumentsList<GUIDocument> getSelectedDocuments()Gets a bean representation of the currently selected items (not all properties are populated)- Returns:
- the documents selected in the grid
 
- 
getSelectedIdsRetrieves the list of all selected document IDs- Returns:
- identifiers of the selected documents
 
- 
getIdsRetrieves the list of all the ids- Returns:
- list of identifiers
 
- 
deselectAllvoid deselectAll()Clear the actual selection
- 
setCanExpandRowsvoid setCanExpandRows()Enable the records expansion
- 
getCountint getCount()Counts the total number of elements- Returns:
- total number of records
 
- 
getSelectedCountint getSelectedCount()Counts the total number of selected elements- Returns:
- number of selected rows
 
- 
showFiltersvoid showFilters(boolean showFilters) Shows or hide the filters- Parameters:
- showFilters- if the filters must be displayed
 
- 
selectDocumentvoid selectDocument(long docId) Selects the specified document- Parameters:
- docId- identifier of the document to display
 
- 
removeSelectedDocumentsvoid removeSelectedDocuments()Removed the selected documents from visualization
- 
expandVisibleRowsvoid expandVisibleRows()Expands all visible rows
- 
setCanDragvoid setCanDrag(boolean drag) Makes the grid support the drag- Parameters:
- drag- if the drag must be supported
 
- 
setGridCursorDefines the cursor widget this grid will have to interact to- Parameters:
- cursor- the cursor
 
- 
getGridCursorCursor getGridCursor()
- 
registerDoubleClickHandlervoid registerDoubleClickHandler(com.smartgwt.client.widgets.grid.events.CellDoubleClickHandler handler) Defines the handler for double clicks. Implementations must check if the document is password protected- Parameters:
- handler- invoked when the user does the double-click
 
- 
registerSelectionChangedHandlervoid registerSelectionChangedHandler(com.smartgwt.client.widgets.grid.events.SelectionChangedHandler handler) Defines the handler for double clicks. Implementations must check if the document is password protected- Parameters:
- handler- invoked when the user changes the selection
 
- 
registerCellContextClickHandlervoid registerCellContextClickHandler(com.smartgwt.client.widgets.grid.events.CellContextClickHandler handler) Defines the handler of the context menu. Implementations must check if the document is password protected- Parameters:
- handler- invoked when the user clicks with right-button
 
- 
registerDataArrivedHandlervoid registerDataArrivedHandler(com.smartgwt.client.widgets.grid.events.DataArrivedHandler handler) 
- 
getFolderGUIFolder getFolder()
- 
destroyvoid destroy()
- 
fetchNewDataReplace the actual data with a new source- Parameters:
- ds- the data source for the grid
 
- 
loadGridLayoutLoads the layout of the grid(columns, ordering ...)- Parameters:
- folder- Optional folder to take the layout from
- Returns:
- the page size
 
 
-