jmri.jmrit.throttle
Class WindowPreferences

java.lang.Object
  extended by jmri.jmrit.throttle.WindowPreferences

public class WindowPreferences
extends Object

A helper class for getting and setting XML attributes of a JInternalFrame.


Constructor Summary
WindowPreferences()
           
 
Method Summary
static Element getPreferences(Container c)
          Collect container preferences.
static Element getPreferences(JInternalFrame c)
          Collect JInternalFrame preferences.
static void setPreferences(Container c, Element e)
           
static void setPreferences(Container c, Element e, boolean ignorePosition)
          Set Container preferences from an XML Element.
static void setPreferences(JInternalFrame c, 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
 

Constructor Detail

WindowPreferences

public WindowPreferences()
Method Detail

getPreferences

public static Element getPreferences(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(JInternalFrame c,
                                  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 Element getPreferences(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(Container c,
                                  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

setPreferences

public static void setPreferences(Container c,
                                  Element e)


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads