Package org.eclipse.nebula.widgets.grid
Class GridUtils
- java.lang.Object
-
- org.eclipse.nebula.widgets.grid.GridUtils
-
public class GridUtils extends java.lang.ObjectSome tools for Grid.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringCHILDREN_TAGprivate static java.lang.StringCOLUMN_TAGprivate static java.lang.StringGRID_TAGTags in xmlprivate static java.lang.StringHEADER_TAGprivate static java.lang.StringID_TAGprivate static java.lang.StringINDENT_ACCEPTED_VALUEprivate static java.lang.StringINDENT_VALUEprivate static java.lang.StringINDET_PROPERTYprivate static java.lang.StringROW_TAGprivate static java.lang.StringROWS_TAG
-
Constructor Summary
Constructors Constructor Description GridUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidgridToXml(Grid grid, java.io.OutputStream outputStream)This method export a grid into a outputstream using xml.private static voidwriteChildren(org.w3c.dom.Document doc, org.w3c.dom.Element rootElement, GridColumn[] columnsList, GridItem[] itemsArray, DataVisualizer dataVisualizer, int level)private static org.w3c.dom.ElementwriteGridItemInformation(org.w3c.dom.Document doc, org.w3c.dom.Element rootElement, GridColumn[] columnsList, DataVisualizer dataVisualizer, GridItem item)
-
-
-
Field Detail
-
INDET_PROPERTY
private static final java.lang.String INDET_PROPERTY
- See Also:
- Constant Field Values
-
INDENT_VALUE
private static final java.lang.String INDENT_VALUE
- See Also:
- Constant Field Values
-
INDENT_ACCEPTED_VALUE
private static final java.lang.String INDENT_ACCEPTED_VALUE
- See Also:
- Constant Field Values
-
GRID_TAG
private static final java.lang.String GRID_TAG
Tags in xml- See Also:
- Constant Field Values
-
HEADER_TAG
private static final java.lang.String HEADER_TAG
- See Also:
- Constant Field Values
-
COLUMN_TAG
private static final java.lang.String COLUMN_TAG
- See Also:
- Constant Field Values
-
CHILDREN_TAG
private static final java.lang.String CHILDREN_TAG
- See Also:
- Constant Field Values
-
ROWS_TAG
private static final java.lang.String ROWS_TAG
- See Also:
- Constant Field Values
-
ROW_TAG
private static final java.lang.String ROW_TAG
- See Also:
- Constant Field Values
-
ID_TAG
private static final java.lang.String ID_TAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
gridToXml
public static void gridToXml(Grid grid, java.io.OutputStream outputStream) throws javax.xml.parsers.ParserConfigurationException, javax.xml.transform.TransformerException
This method export a grid into a outputstream using xml. SWT Main thread is required for the export. Full supports for Grid Table. Grid Tree only visible items was exported.- Parameters:
grid- the grid who will be export to xml.outputStream- used for the export.- Throws:
javax.xml.parsers.ParserConfigurationExceptionjavax.xml.transform.TransformerException
-
writeChildren
private static void writeChildren(org.w3c.dom.Document doc, org.w3c.dom.Element rootElement, GridColumn[] columnsList, GridItem[] itemsArray, DataVisualizer dataVisualizer, int level)
-
writeGridItemInformation
private static org.w3c.dom.Element writeGridItemInformation(org.w3c.dom.Document doc, org.w3c.dom.Element rootElement, GridColumn[] columnsList, DataVisualizer dataVisualizer, GridItem item)
-
-