|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.ceditor.NodeUpdater
public final class NodeUpdater
The NodeUpdater
class is a class which takes care of the delayed notification in the idle time after a text buffer change occurs. This updater is responsible for tracking the text buffer for changes, and sending a delayed notification.
This is paired with NodeObserver
to work correctly.
Field Summary |
---|
Fields inherited from interface oracle.javatools.buffer.TextBufferListener |
---|
EOL_TYPE_ATTRIBUTE, MODIFIED_ATTRIBUTE, READ_ONLY_ATTRIBUTE, RELOAD_END_ATTRIBUTE, RELOAD_START_ATTRIBUTE |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event) This is invoked when an action is performed. |
void |
attributeUpdate(TextBuffer buffer, int attribute) Provides notification regarding a change to one of the buffer attributes. |
protected void |
finalize() The finalizer is used to ensure that the observer will close at some point. |
static NodeUpdater |
getUpdater(Subject nodeSubject, TextBuffer textBuffer) Fetches an updater for the given node - all cached updaters are stored on the list as WeakReferences so that they can be GC'd correcty. |
void |
insertUpdate(TextBuffer buffer, int offset, int count, char[] insertedData) Provides notification about an insertion into the TextBuffer . |
void |
removeUpdate(TextBuffer buffer, int offset, int count, char[] removedData) Provides notification about a removal from the TextBuffer . |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static NodeUpdater getUpdater(Subject nodeSubject, TextBuffer textBuffer)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
event
- the action eventpublic void insertUpdate(TextBuffer buffer, int offset, int count, char[] insertedData)
TextBuffer
.insertUpdate
in interface TextBufferListener
buffer
-offset
- the offset where the insert took placecount
- the number of characters inserted (insertedData.length)insertedData
- the contents of the insertionpublic void removeUpdate(TextBuffer buffer, int offset, int count, char[] removedData)
TextBuffer
.removeUpdate
in interface TextBufferListener
buffer
-offset
- the offset where the removal took placecount
- the number of characters removed (removedData.length)removedData
- the contents of the removalpublic void attributeUpdate(TextBuffer buffer, int attribute)
attributeUpdate
in interface TextBufferListener
buffer
-attribute
- the attribute that changed
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |