Interface SessionStorage.Property
- All Known Implementing Classes:
SessionStorage.SplitPaneProperty, SessionStorage.TabbedPaneProperty, SessionStorage.TableProperty, SessionStorage.WindowProperty
- Enclosing class:
SessionStorage
public static interface SessionStorage.Property
Defines the
sessionState 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 by
XMLEncoder and
XMLDecoder, for example beans
(null constructor, read/write properties), primitives, and
Collections.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturn the value of thesessionStateproperty, typically a Java bean or a Collection the defines theComponentstate that should be preserved across Application sessions.voidsetSessionState(Component c, Object state) Restore Componentc'ssessionStatefrom the specified object.
-
Method Details
-
getSessionState
Return the value of thesessionStateproperty, typically a Java bean or a Collection the defines theComponentstate that should be preserved across Application sessions. This value will be stored withXMLEncoder, loaded withXMLDecoder, and passed tosetSessionStateto restore the Component's state.- Parameters:
c- the Component.- Returns:
- the
sessionStateobject for Componentc. - See Also:
-
setSessionState
-