|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.editor.EditorState
public class EditorState
This singleton class is an editor state encapsulation object. Every part
of the editor could store its state-holder here and it will be automatically
persistent across restarts. It is intended for any state informations
that are not "Settings", like the contents of the input field histories,
persistent, named bookmarks or so.
The implementation is just like a HashMap indexed by state-holders' names.
Typical usage is myState = EditorState.get( MY_STATE_NAME );
There is no support for state change notifications, but the inserted
value objects could be singletons as well and could do its own notifications.
Method Summary | |
---|---|
static Object |
get(Object key)
Retrieve the object specified by the key. |
static HashMap |
getStateObject()
|
static void |
put(Object key,
Object value)
Store the object under specified key |
static void |
setStateObject(HashMap stateObject)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Object get(Object key)
public static void put(Object key, Object value)
public static HashMap getStateObject()
public static void setStateObject(HashMap stateObject)
|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |