Class DocumentGridUtil
java.lang.Object
com.logicaldoc.gui.frontend.client.document.grid.DocumentGridUtil
Utility methods for documents grids
- Since:
- 7.0
- Author:
- Marco Meschieri - LogicalDOC
- 
Method SummaryModifier and TypeMethodDescriptionstatic com.smartgwt.client.widgets.grid.ListGridRecordfromDocument(GUIDocument doc) static IntegerGets the page size from the layout specification, the format is: |folderPageSize|pageSize|gridLayoutstatic StringgetGridLayoutFromSpec(String spec) Gets the grid layout specification, the format is: |folderPageSize|pageSize|gridLayout or simply gridLayoutgetIds(com.smartgwt.client.data.Record[] records) static IntegergetPageSizeFromSpec(String spec) Gets the page size from the layout specification, the format is: |folderPageSize|pageSize|gridLayoutstatic StringgetSortSpec(com.smartgwt.client.data.SortSpecifier[] sortSpecifiers) static StringgetSortSpec(com.smartgwt.client.widgets.grid.ListGrid grid) Takes the sort specification of a grid.static GUIDocumenttoDocument(com.smartgwt.client.data.Record rec) static List<GUIDocument> toDocuments(com.smartgwt.client.data.Record[] records) static voidupdateRecord(GUIDocument doc, com.smartgwt.client.data.Record rec) 
- 
Method Details- 
getIds
- 
toDocuments
- 
toDocument
- 
fromDocument
- 
updateRecord
- 
getSortSpecTakes the sort specification of a grid. It is a string of comma separated values each one defining the sorting of a specific attribute of the document, eg: fileName asc, date desc- Parameters:
- grid- the grid to inspect
- Returns:
- the full sort specification
 
- 
getSortSpec
- 
getPageSizeFromSpecGets the page size from the layout specification, the format is: |folderPageSize|pageSize|gridLayout- Parameters:
- spec- layout specification
- Returns:
- the page size
 
- 
getFolderPageSizeFromSpecGets the page size from the layout specification, the format is: |folderPageSize|pageSize|gridLayout- Parameters:
- spec- layout specification
- Returns:
- the page size
 
- 
getGridLayoutFromSpecGets the grid layout specification, the format is: |folderPageSize|pageSize|gridLayout or simply gridLayout- Parameters:
- spec- layout specification
- Returns:
- grid definition
 
 
-