|
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.javatools.buffer.ForwardingTextBufferListener
public class ForwardingTextBufferListener
A support class to forward text buffer events for a decorating text buffer.
This class implements the weak listener semantics documented by the TextBuffer interface. However, it should be noted that those semantics essentially no longer apply for text buffers obtained from a an IDE TextNode because the text node keeps a duplicate list of listeners with strong references.
| Field Summary |
|---|
| Fields inherited from interface oracle.javatools.buffer.TextBufferListener |
|---|
EOL_TYPE_ATTRIBUTE, MODIFIED_ATTRIBUTE, READ_ONLY_ATTRIBUTE, RELOAD_END_ATTRIBUTE, RELOAD_START_ATTRIBUTE |
| Constructor Summary | |
|---|---|
ForwardingTextBufferListener(TextBuffer buffer) |
|
| Method Summary | |
|---|---|
void |
addTextBufferListener(TextBufferListener listener) |
void |
attributeUpdate(TextBuffer buffer, int attribute)Provides notification regarding a change to one of the buffer attributes. |
void |
insertUpdate(TextBuffer buffer, int offset, int count, char[] insertedData)Provides notification about an insertion into the TextBuffer. |
void |
removeTextBufferListener(TextBufferListener listener) |
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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ForwardingTextBufferListener(TextBuffer buffer)
| Method Detail |
|---|
public void addTextBufferListener(TextBufferListener listener)
public void removeTextBufferListener(TextBufferListener listener)
public void attributeUpdate(TextBuffer buffer,
int attribute)
TextBufferListenerattributeUpdate in interface TextBufferListenerbuffer - the TextBuffer that changed.attribute - the attribute that changed
public void insertUpdate(TextBuffer buffer,
int offset,
int count,
char[] insertedData)
TextBufferListenerTextBuffer.insertUpdate in interface TextBufferListenerbuffer - the TextBuffer that changed.offset - the offset where the insert took placecount - the number of characters inserted (insertedData.length)insertedData - an array of the removed characters.
public void removeUpdate(TextBuffer buffer,
int offset,
int count,
char[] removedData)
TextBufferListenerTextBuffer.removeUpdate in interface TextBufferListenerbuffer - the TextBuffer that changed.offset - the offset of the first removed character.count - the number of characters removed (removedData.length)removedData - an array of the removed characters
|
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 | |||||||||