Package jmri.jmrit.throttle
Class WindowPreferences
java.lang.Object
jmri.jmrit.throttle.WindowPreferences
A helper class for getting and setting XML attributes of a JInternalFrame.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.jdom2.ElementCollect container preferences.static org.jdom2.ElementCollect JInternalFrame preferences.static voidsetPreferences(Container c, org.jdom2.Element e) static voidsetPreferences(Container c, org.jdom2.Element e, boolean ignorePosition) Set Container preferences from an XML Element.static voidsetPreferences(JInternalFrame c, org.jdom2.Element e) Set JInternalFrame preferences from an XML Element.
-
Constructor Details
-
WindowPreferences
public WindowPreferences()
-
-
Method Details
-
getPreferences
Collect JInternalFrame preferences.- Parameters:
c- The JInternalFrame being XMLed.- Returns:
- An Element containing the following prefs:
- x location
- y location
- width
- height
- isIcon
-
setPreferences
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
Collect container preferences.- Parameters:
c- The container being XMLed.- Returns:
- An Element containing the following prefs:
- x location
- y location
- width
- height
-
setPreferences
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
-