Class WindowProperty

    • Constructor Summary

      Constructors 
      Constructor Description
      WindowProperty()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getSessionState​(java.awt.Component c)
      Returns a WindowState object for Window c.
      void setSessionState​(java.awt.Component c, java.lang.Object state)
      Restore the Window's bounds if the dimensions of its screen (GraphicsConfiguration) haven't changed, the number of screens hasn't changed, and the isLocationByPlatform property, which indicates that native Window manager should pick the Window's location, is false.
      • Methods inherited from class java.lang.Object

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

      • WindowProperty

        public WindowProperty()
    • Method Detail

      • setSessionState

        public void setSessionState​(java.awt.Component c,
                                    java.lang.Object state)
        Restore the Window's bounds if the dimensions of its screen (GraphicsConfiguration) haven't changed, the number of screens hasn't changed, and the isLocationByPlatform property, which indicates that native Window manager should pick the Window's location, is false. More precisely:

        If state is non-null, and Window c's GraphicsConfiguration bounds matches the WindowState's value, and Window c's isLocationByPlatform property is false, then set the Window's to the saved value.

        Throws an IllegalArgumentException if c is not a Window or if state is non-null but not an instance of WindowState.

        Specified by:
        setSessionState in interface PropertySupport
        Parameters:
        c - the Window whose state is to be restored
        state - the WindowState to be restored
        See Also:
        getSessionState(java.awt.Component), WindowState