Package org.jdesktop.application
Interface SessionStorage.Property
-
- All Known Implementing Classes:
SessionStorage.SplitPaneProperty
,SessionStorage.TabbedPaneProperty
,SessionStorage.TableProperty
,SessionStorage.WindowProperty
- Enclosing class:
- SessionStorage
public static interface SessionStorage.Property
Defines thesessionState
property. The value of this property is the GUI state that should be preserved across sessions for the specified component. The type of sessionState values just one those supported byXMLEncoder
andXMLDecoder
, for example beans (null constructor, read/write properties), primitives, and Collections.
-
-
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 thesessionState
property, typically a Java bean or a Collection the defines theComponent
state that should be preserved across Application sessions.void
setSessionState(java.awt.Component c, java.lang.Object state)
Restore Componentc's
sessionState
from the specified object.
-
-
-
Method Detail
-
getSessionState
java.lang.Object getSessionState(java.awt.Component c)
Return the value of thesessionState
property, typically a Java bean or a Collection the defines theComponent
state that should be preserved across Application sessions. This value will be stored withXMLEncoder
, loaded withXMLDecoder
, and passed tosetSessionState
to restore the Component's state.- Parameters:
c
- the Component.- Returns:
- the
sessionState
object for Componentc
. - See Also:
setSessionState(java.awt.Component, java.lang.Object)
-
setSessionState
void setSessionState(java.awt.Component c, java.lang.Object state)
Restore Componentc's
sessionState
from the specified object.- Parameters:
c
- the Component.state
- the value of thesessionState
property.- See Also:
getSessionState(java.awt.Component)
-
-