Package xtwm.ui
Class ApplicationLayout
- java.lang.Object
-
- xtwm.ui.ApplicationLayout
-
public class ApplicationLayout extends java.lang.Object
ApplicationLayout reads and writes the desktop and window layout to XML files.
-
-
Constructor Summary
Constructors Constructor Description ApplicationLayout()
-
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.
-
-
-
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 applicationfilename
- the name of the file to write to- Throws:
java.io.IOException
- if a java.io operation throwsjava.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 applicationfilename
- the name of the file to read from- Throws:
java.io.IOException
- if a java.io operation throwsjavax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
-
-