Class WindowPreferences


  • public class WindowPreferences
    extends java.lang.Object
    A helper class for getting and setting XML attributes of a JInternalFrame.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.jdom2.Element getPreferences​(java.awt.Container c)
      Collect container preferences.
      static org.jdom2.Element getPreferences​(javax.swing.JInternalFrame c)
      Collect JInternalFrame preferences.
      static void setPreferences​(java.awt.Container c, org.jdom2.Element e)  
      static void setPreferences​(java.awt.Container c, org.jdom2.Element e, boolean ignorePosition)
      Set Container preferences from an XML Element.
      static void setPreferences​(javax.swing.JInternalFrame c, org.jdom2.Element e)
      Set JInternalFrame preferences from an XML Element.
      • Methods inherited from class java.lang.Object

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

      • getPreferences

        public static org.jdom2.Element getPreferences​(javax.swing.JInternalFrame c)
        Collect JInternalFrame preferences.
        Parameters:
        c - The JInternalFrame being XMLed.
        Returns:
        An Element containing the following prefs:
        • x location
        • y location
        • width
        • height
        • isIcon
      • setPreferences

        public static void setPreferences​(javax.swing.JInternalFrame c,
                                          org.jdom2.Element e)
        Set JInternalFrame preferences from an XML Element.
        Parameters:
        c - The JInternalFrame being set.
        e - An Element containing the following prefs:
        • x location
        • y location
        • width
        • height
        • isIcon
      • getPreferences

        public static org.jdom2.Element getPreferences​(java.awt.Container c)
        Collect container preferences.
        Parameters:
        c - The container being XMLed.
        Returns:
        An Element containing the following prefs:
        • x location
        • y location
        • width
        • height
      • setPreferences

        public static void setPreferences​(java.awt.Container c,
                                          org.jdom2.Element e,
                                          boolean ignorePosition)
        Set Container preferences from an XML Element.
        Parameters:
        c - The Container being set.
        e - An Element containing the following prefs:
        • x location
        • y location
        • width
        • height
        ignorePosition - true to not set location, false to set.
      • setPreferences

        public static void setPreferences​(java.awt.Container c,
                                          org.jdom2.Element e)