Class GenericSessionExporter<T extends Layer>

    • Field Detail

      • type

        private final java.lang.String type
      • version

        private final java.lang.String version
      • extension

        private final java.lang.String extension
      • link

        private final javax.swing.JRadioButton link
      • include

        private final javax.swing.JRadioButton include
    • Constructor Detail

      • GenericSessionExporter

        protected GenericSessionExporter​(T layer,
                                         java.lang.String type,
                                         java.lang.String version,
                                         java.lang.String extension)
        Constructs a new GenericSessionExporter.
        Parameters:
        layer - layer to export
        type - layer session type
        version - layer session version
        extension - data file extension
    • Method Detail

      • getExportPanel

        public javax.swing.JPanel getExportPanel()
        Description copied from interface: SessionLayerExporter
        The GUI for exporting this layer.
        Returns:
        the export panel
      • export

        public org.w3c.dom.Element export​(SessionWriter.ExportSupport support)
                                   throws java.io.IOException
        Description copied from interface: SessionLayerExporter
        Save meta data to the .jos file. Return a layer XML element. Use support to save files in the zip archive as needed.
        Parameters:
        support - support class providing export utilities
        Returns:
        the resulting XML element
        Throws:
        java.io.IOException - if any I/O error occurs
      • requiresZip

        public boolean requiresZip()
        Description copied from interface: SessionLayerExporter
        Return true, if some data needs to be included in the zip archive. This decision depends on the user selection in the export panel. If any layer requires zip, the user can only save as .joz. Otherwise both .jos and .joz are possible.
        Specified by:
        requiresZip in interface SessionLayerExporter
        Overrides:
        requiresZip in class AbstractSessionExporter<T extends Layer>
        Returns:
        true if some data needs to be included in the zip archive, false otherwise.
      • addDataFile

        protected abstract void addDataFile​(java.io.OutputStream out)
                                     throws java.io.IOException
        Throws:
        java.io.IOException