Class GridUtil
java.lang.Object
com.logicaldoc.gui.common.client.util.GridUtil
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceListener to inject code at the end of a grid scroll
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidexportAsCSV(String content) static voidexportCSV(com.smartgwt.client.widgets.grid.ListGrid listGrid, boolean allFields) Exports into the CSV format the content of a ListGrid.getIds(com.smartgwt.client.widgets.grid.ListGridRecord[] records) Collects all the IDs in an array of recods, the field 'id' is used.static voidprint(com.smartgwt.client.widgets.grid.ListGrid listGrid) Prints a gridstatic voidscrollDownGrid(com.smartgwt.client.widgets.grid.ListGrid listGrid, GridUtil.EndScrollListener listener) Scrolls the grid all downstatic voidscrollGrid(com.smartgwt.client.widgets.grid.ListGrid listGrid, GridUtil.EndScrollListener listener) Scrolls the grid trying to display all the rec and fetch all the data
- 
Constructor Details- 
GridUtilpublic GridUtil()
 
- 
- 
Method Details- 
scrollGridpublic static void scrollGrid(com.smartgwt.client.widgets.grid.ListGrid listGrid, GridUtil.EndScrollListener listener) Scrolls the grid trying to display all the rec and fetch all the data- Parameters:
- listGrid- the grid to process
- listener- optional listener inoked at the end of the scroll
 
- 
scrollDownGridpublic static void scrollDownGrid(com.smartgwt.client.widgets.grid.ListGrid listGrid, GridUtil.EndScrollListener listener) Scrolls the grid all down- Parameters:
- listGrid- the grid to process
- listener- optional listener inoked at the end of the scroll
 
- 
printpublic static void print(com.smartgwt.client.widgets.grid.ListGrid listGrid) Prints a grid- Parameters:
- listGrid- Grid containing the data
 
- 
exportCSVpublic static void exportCSV(com.smartgwt.client.widgets.grid.ListGrid listGrid, boolean allFields) Exports into the CSV format the content of a ListGrid.- Parameters:
- listGrid- Grid containing the data
- allFields- True if all the fields(even if hidden) have to be extracted
 
- 
getIdsCollects all the IDs in an array of recods, the field 'id' is used.- Parameters:
- records- the records to list
- Returns:
- the collection of extracted ids
 
- 
exportAsCSV
 
-