站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

EditorState (Editor Library) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor.lib/1 1.14.0 3

org.netbeans.editor
Class EditorState

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

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)
          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

get

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


put

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


getStateObject

public static HashMap getStateObject()

setStateObject

public static void setStateObject(HashMap stateObject)

org.netbeans.modules.editor.lib/1 1.14.0 3

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.