Interface PropertySupport

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object getSessionState​(java.awt.Component c)
      Return the value of the sessionState property, typically a Java bean or a Collection the defines the Component state that should be preserved across Application sessions.
      void setSessionState​(java.awt.Component c, java.lang.Object state)
      Restore Component c's sessionState from the specified object.
    • Method Detail

      • getSessionState

        java.lang.Object getSessionState​(java.awt.Component c)
        Return the value of the sessionState property, typically a Java bean or a Collection the defines the Component state that should be preserved across Application sessions. This value will be stored with XMLEncoder, loaded with XMLDecoder, and passed to setSessionState to restore the Component's state.
        Parameters:
        c - the Component.
        Returns:
        the sessionState object for Component c.
        See Also:
        setSessionState(java.awt.Component, java.lang.Object)
      • setSessionState

        void setSessionState​(java.awt.Component c,
                             java.lang.Object state)
        Restore Component c's sessionState from the specified object.
        Parameters:
        c - the Component.
        state - the value of the sessionState property.
        See Also:
        getSessionState(java.awt.Component)