com.notuvy.gui
Class WindowLocation

java.lang.Object
  extended by com.notuvy.xml.SimpleJdom
      extended by com.notuvy.xml.PersistentJdom
          extended by com.notuvy.gui.WindowLocation

public class WindowLocation
extends PersistentJdom

Keep track of the locations of multiple windows. Allow this persistent data to display windows in the same locations across application lifecycles.

Author:
murali

Field Summary
 
Fields inherited from class com.notuvy.xml.SimpleJdom
LOG
 
Constructor Summary
WindowLocation(File pFile)
           
WindowLocation(String pString)
           
 
Method Summary
protected  Map<String,Point> getMap()
           
protected  void parse(org.jdom.Element pRoot)
           
 void remember(PersistentLocatable pLocatable)
           
protected  void reportXmlParseError(org.jdom.JDOMException jdome)
           
 String rootName()
           
 void set(PersistentLocatable pLocatable)
           
 org.jdom.Element toXml()
          Return this object as a sub-element to be inserted within another object.
 
Methods inherited from class com.notuvy.xml.PersistentJdom
getFileImage, isOnlySaveIfChanged, read, readIfFileExists, readOrCreate, save, setOnlySaveIfChanged
 
Methods inherited from class com.notuvy.xml.SimpleJdom
addChildElement, createFormat, createRoot, getChildInteger, getChildLong, getChildren, getChildrenOfContainer, getChildText, getFormat, getStorage, isValidRoot, readFrom, readFrom, readFromContent, saveTo, setStorage, toDocument, toString, toXmlString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WindowLocation

public WindowLocation(File pFile)

WindowLocation

public WindowLocation(String pString)
Method Detail

getMap

protected Map<String,Point> getMap()

remember

public void remember(PersistentLocatable pLocatable)

set

public void set(PersistentLocatable pLocatable)

rootName

public String rootName()
Overrides:
rootName in class SimpleJdom

toXml

public org.jdom.Element toXml()
Description copied from class: SimpleJdom
Return this object as a sub-element to be inserted within another object. This does NOT return a Document representation.

Specified by:
toXml in class SimpleJdom
Returns:
Element representation suitable for insertion into another object.

parse

protected void parse(org.jdom.Element pRoot)
Specified by:
parse in class SimpleJdom

reportXmlParseError

protected void reportXmlParseError(org.jdom.JDOMException jdome)
Overrides:
reportXmlParseError in class SimpleJdom


Copyright © 2013. All Rights Reserved.