Package xtwm.ui

Class ApplicationLayout


  • public class ApplicationLayout
    extends java.lang.Object
    ApplicationLayout reads and writes the desktop and window layout to XML files.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void loadFromXml​(XTWMApplication app, java.lang.String filename)
      Read the layout from file and set up the application to match.
      static void saveToXml​(XTWMApplication app, java.lang.String filename)
      Write the layout of an application to file.
      • Methods inherited from class java.lang.Object

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

      • ApplicationLayout

        public ApplicationLayout()
    • Method Detail

      • saveToXml

        public static void saveToXml​(XTWMApplication app,
                                     java.lang.String filename)
                              throws java.io.IOException,
                                     java.lang.ClassNotFoundException,
                                     java.lang.IllegalAccessException,
                                     java.lang.InstantiationException,
                                     javax.xml.parsers.ParserConfigurationException,
                                     org.xml.sax.SAXException
        Write the layout of an application to file.
        Parameters:
        app - the application
        filename - the name of the file to write to
        Throws:
        java.io.IOException - if a java.io operation throws
        java.lang.ClassNotFoundException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXException
      • loadFromXml

        public static void loadFromXml​(XTWMApplication app,
                                       java.lang.String filename)
                                throws java.io.IOException,
                                       javax.xml.parsers.ParserConfigurationException,
                                       org.xml.sax.SAXException
        Read the layout from file and set up the application to match.
        Parameters:
        app - the application
        filename - the name of the file to read from
        Throws:
        java.io.IOException - if a java.io operation throws
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXException