Class GridUtil
- java.lang.Object
-
- com.logicaldoc.gui.common.client.util.GridUtil
-
public class GridUtil extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
GridUtil.EndScrollListener
Listener to inject code at the end of a grid scroll
-
Constructor Summary
Constructors Constructor Description GridUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
exportAsCSV(String content)
static void
exportCSV(com.smartgwt.client.widgets.grid.ListGrid listGrid, boolean allFields)
Exports into the CSV format the content of a ListGrid.static void
print(com.smartgwt.client.widgets.grid.ListGrid listGrid)
Prints a gridstatic void
scrollGrid(com.smartgwt.client.widgets.grid.ListGrid listGrid, GridUtil.EndScrollListener listener)
Scrolls the grid trying to display all the record and fetch all the data
-
-
-
Method Detail
-
scrollGrid
public static void scrollGrid(com.smartgwt.client.widgets.grid.ListGrid listGrid, GridUtil.EndScrollListener listener)
Scrolls the grid trying to display all the record and fetch all the data- Parameters:
listGrid
- the grid to processlistener
- optional listener inoked at the end of the scroll
-
print
public static void print(com.smartgwt.client.widgets.grid.ListGrid listGrid)
Prints a grid- Parameters:
listGrid
- Grid containing the data
-
exportCSV
public 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 dataallFields
- True if all the fields(even if hidden) have to be extracted
-
exportAsCSV
public static void exportAsCSV(String content)
-
-