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

org.netbeans.editor
Class Registry

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

Deprecated. Use EditorRegistry from Editor Library 2 instead.

public class Registry
extends Object

All the documents and components register here so that they become available to the processing that crosses different components and documents such as cross document position stack or word matching.


Constructor Summary
Registry()
          Deprecated.  
 
Method Summary
static void addChangeListener(ChangeListener l)
          Deprecated. Add weak listener to listen to change of activity of documents or components.
static Iterator<? extends JTextComponent> getComponentIterator()
          Deprecated. Get the iterator over the active components.
static Iterator<? extends Document> getDocumentIterator()
          Deprecated. Get the iterator over the active documents.
static JTextComponent getLeastActiveComponent()
          Deprecated.  
static BaseDocument getLeastActiveDocument()
          Deprecated.  
static JTextComponent getMostActiveComponent()
          Deprecated.  
static BaseDocument getMostActiveDocument()
          Deprecated.  
static String registryToString()
          Deprecated. Debug the registry into string.
static void removeChangeListener(ChangeListener l)
          Deprecated. Remove listener for changes in activity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Registry

public Registry()
Deprecated. 
Method Detail

addChangeListener

public static void addChangeListener(ChangeListener l)
Deprecated. 
Add weak listener to listen to change of activity of documents or components. The caller must hold the listener object in some instance variable to prevent it from being garbage collected.

Parameters:
l - listener to add

removeChangeListener

public static void removeChangeListener(ChangeListener l)
Deprecated. 
Remove listener for changes in activity. It's optional to remove the listener. It would be done automatically if the object holding the listener would be garbage collected.

Parameters:
l - listener to remove

getMostActiveDocument

public static BaseDocument getMostActiveDocument()
Deprecated. 

getLeastActiveDocument

public static BaseDocument getLeastActiveDocument()
Deprecated. 

getDocumentIterator

public static Iterator<? extends Document> getDocumentIterator()
Deprecated. 
Get the iterator over the active documents. It starts with the most active document till the least active document. It's just the current snapshot so the iterator will not reflect future changes.


getMostActiveComponent

public static JTextComponent getMostActiveComponent()
Deprecated. 

getLeastActiveComponent

public static JTextComponent getLeastActiveComponent()
Deprecated. 

getComponentIterator

public static Iterator<? extends JTextComponent> getComponentIterator()
Deprecated. 
Get the iterator over the active components. It starts with the most active component till the least active component.


registryToString

public static String registryToString()
Deprecated. 
Debug the registry into string.


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

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