|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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.
SessionStorage.putProperty(java.lang.Class, org.jdesktop.application.SessionStorage.Property),
SessionStorage.getProperty(Class),
SessionStorage.getProperty(Component)| Method Summary | |
|---|---|
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 |
|---|
java.lang.Object getSessionState(java.awt.Component c)
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.
c - the Component.
sessionState object for Component c.setSessionState(java.awt.Component, java.lang.Object)
void setSessionState(java.awt.Component c,
java.lang.Object state)
c's sessionState from the specified
object.
c - the Component.state - the value of the sessionState property.getSessionState(java.awt.Component)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||