org.jdesktop.application.session
Class WindowState

java.lang.Object
  extended by org.jdesktop.application.session.WindowState

public class WindowState
extends java.lang.Object

This Java Bean defines the Window state preserved across sessions: the Window's bounds, and the bounds of the Window's GraphicsConfiguration, i.e. the bounds of the screen that the Window appears on. If the Window is actually a Frame, we also store its extendedState. WindowState objects are stored and restored by the WindowProperty class.

See Also:
WindowProperty, SessionStorage.save(java.awt.Component, java.lang.String), SessionStorage.restore(java.awt.Component, java.lang.String)

Constructor Summary
WindowState()
           
WindowState(java.awt.Rectangle bounds, java.awt.Rectangle gcBounds, int screenCount, int frameState)
           
 
Method Summary
 java.awt.Rectangle getBounds()
           
 int getFrameState()
           
 java.awt.Rectangle getGraphicsConfigurationBounds()
           
 int getScreenCount()
           
 void setBounds(java.awt.Rectangle bounds)
           
 void setFrameState(int frameState)
           
 void setGraphicsConfigurationBounds(java.awt.Rectangle gcBounds)
           
 void setScreenCount(int screenCount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowState

public WindowState()

WindowState

public WindowState(java.awt.Rectangle bounds,
                   java.awt.Rectangle gcBounds,
                   int screenCount,
                   int frameState)
Method Detail

getBounds

public java.awt.Rectangle getBounds()

setBounds

public void setBounds(java.awt.Rectangle bounds)

getScreenCount

public int getScreenCount()

setScreenCount

public void setScreenCount(int screenCount)

getFrameState

public int getFrameState()

setFrameState

public void setFrameState(int frameState)

getGraphicsConfigurationBounds

public java.awt.Rectangle getGraphicsConfigurationBounds()

setGraphicsConfigurationBounds

public void setGraphicsConfigurationBounds(java.awt.Rectangle gcBounds)


Copyright © 2009-2010. All Rights Reserved.