Class GridUtils


  • public class GridUtils
    extends java.lang.Object
    Some tools for Grid.
    • Constructor Summary

      Constructors 
      Constructor Description
      GridUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void gridToXml​(Grid grid, java.io.OutputStream outputStream)
      This method export a grid into a outputstream using xml.
      private static void writeChildren​(org.w3c.dom.Document doc, org.w3c.dom.Element rootElement, GridColumn[] columnsList, GridItem[] itemsArray, DataVisualizer dataVisualizer, int level)  
      private static org.w3c.dom.Element writeGridItemInformation​(org.w3c.dom.Document doc, org.w3c.dom.Element rootElement, GridColumn[] columnsList, DataVisualizer dataVisualizer, GridItem item)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GridUtils

        public GridUtils()
    • 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.ParserConfigurationException
        javax.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)