org.netbeans.modules.editor.util/1 1.26

org.netbeans.lib.editor.util.swing
Class DocumentListenerPriority

java.lang.Object
  extended by org.netbeans.lib.editor.util.swing.DocumentListenerPriority

public final class DocumentListenerPriority
extends Object

Priorities of firing of document listeners being added to a document.

Since:
1.4

Field Summary
static DocumentListenerPriority AFTER_CARET_UPDATE
          Udpate that follows caret update.
static DocumentListenerPriority CARET_UPDATE
          Caret udpate gets notified as last.
static DocumentListenerPriority DEFAULT
          Default level is used for all listeners added by regular Document.addDocumentListener( javax.swing.event.DocumentListener) method.
static DocumentListenerPriority FIRST
          Level that gets notified first (before all other levels).
static DocumentListenerPriority FOLD_UPDATE
          Fold update gets notified prior default level.
static DocumentListenerPriority LEXER
          Lexer gets notified early to allow other levels to use the udpated token list.
static DocumentListenerPriority VIEW
          Views are updated after default level and prior caret gets updated.
 
Method Summary
 String getDescription()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FIRST

public static final DocumentListenerPriority FIRST
Level that gets notified first (before all other levels).
It may be used in cooperation with other levels to pre-mark that there was a document modification performed that may change some of the data that will be updated later on another level. For example the view hierarchy may mark that it is temporarily invalid until its update will be triggered on VIEW level.


LEXER

public static final DocumentListenerPriority LEXER
Lexer gets notified early to allow other levels to use the udpated token list.


FOLD_UPDATE

public static final DocumentListenerPriority FOLD_UPDATE
Fold update gets notified prior default level.


DEFAULT

public static final DocumentListenerPriority DEFAULT
Default level is used for all listeners added by regular Document.addDocumentListener( javax.swing.event.DocumentListener) method.


VIEW

public static final DocumentListenerPriority VIEW
Views are updated after default level and prior caret gets updated.

Since:
1.11

CARET_UPDATE

public static final DocumentListenerPriority CARET_UPDATE
Caret udpate gets notified as last.


AFTER_CARET_UPDATE

public static final DocumentListenerPriority AFTER_CARET_UPDATE
Udpate that follows caret update.

Since:
1.6
Method Detail

getDescription

public String getDescription()

toString

public String toString()
Overrides:
toString in class Object

org.netbeans.modules.editor.util/1 1.26

Built on December 3 2008.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.