org.netbeans.modules.editor.lib/3 3.23.0 19

org.netbeans.editor
Class EditorState

java.lang.Object
  extended by org.netbeans.editor.EditorState

Deprecated. Use Editor Settings and Settings Storage APIs. Please note that the states stored here are not persisted and therefore don't survive JVM restarts.

public class EditorState
extends Object

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)
          Deprecated. Retrieve the object specified by the key.
static HashMap getStateObject()
          Deprecated.  
static void put(Object key, Object value)
          Deprecated. Store the object under specified key
static void setStateObject(HashMap stateObject)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static Object get(Object key)
Deprecated. 
Retrieve the object specified by the key.


put

public static void put(Object key,
                       Object value)
Deprecated. 
Store the object under specified key


getStateObject

public static HashMap getStateObject()
Deprecated. 

setStateObject

public static void setStateObject(HashMap stateObject)
Deprecated. 

org.netbeans.modules.editor.lib/3 3.23.0 19

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.