Class DocumentGridUtil
- java.lang.Object
- 
- com.logicaldoc.gui.frontend.client.document.grid.DocumentGridUtil
 
- 
 public class DocumentGridUtil extends Object Utility methods for documents grids- Since:
- 7.0
- Author:
- Marco Meschieri - LogicalDOC
 
- 
- 
Constructor SummaryConstructors Constructor Description DocumentGridUtil()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static com.smartgwt.client.widgets.grid.ListGridRecordfromDocument(GUIDocument doc)static IntegergetFolderPageSizeFromSpec(String spec)Gets 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 gridLayoutstatic long[]getIds(com.smartgwt.client.data.Record[] records)static Long[]getIdsAsLong(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 record)static GUIDocument[]toDocuments(com.smartgwt.client.data.Record[] records)static voidupdateRecord(GUIDocument doc, com.smartgwt.client.data.Record record)
 
- 
- 
- 
Method Detail- 
getIdspublic static long[] getIds(com.smartgwt.client.data.Record[] records) 
 - 
getIdsAsLongpublic static Long[] getIdsAsLong(com.smartgwt.client.data.Record[] records) 
 - 
toDocumentspublic static GUIDocument[] toDocuments(com.smartgwt.client.data.Record[] records) 
 - 
toDocumentpublic static GUIDocument toDocument(com.smartgwt.client.data.Record record) 
 - 
fromDocumentpublic static com.smartgwt.client.widgets.grid.ListGridRecord fromDocument(GUIDocument doc) 
 - 
updateRecordpublic static void updateRecord(GUIDocument doc, com.smartgwt.client.data.Record record) 
 - 
getSortSpecpublic static String getSortSpec(com.smartgwt.client.widgets.grid.ListGrid grid) Takes 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
 
 - 
getSortSpecpublic static String getSortSpec(com.smartgwt.client.data.SortSpecifier[] sortSpecifiers) 
 - 
getPageSizeFromSpecpublic static Integer getPageSizeFromSpec(String spec) Gets the page size from the layout specification, the format is: |folderPageSize|pageSize|gridLayout- Parameters:
- spec- layout specification
- Returns:
- the page size
 
 - 
getFolderPageSizeFromSpecpublic static Integer getFolderPageSizeFromSpec(String spec) Gets the page size from the layout specification, the format is: |folderPageSize|pageSize|gridLayout- Parameters:
- spec- layout specification
- Returns:
- the page size
 
 
- 
 
-