public static class FacadeTextBuffer.Basic extends TextBufferDecorator implements FacadeTextBuffer
FacadeTextBuffer.Basic, FacadeTextBuffer.Guarded
_forwarder, _tbuffer
_rbuffer
EOL_CR, EOL_CRLF, EOL_LF, EOL_MACINTOSH, EOL_UNIX, EOL_WINDOWS, READ_ONLY, WRITABLE
LOCK_STATUS_NONE, LOCK_STATUS_READ, LOCK_STATUS_UNSUPPORTED, LOCK_STATUS_WRITE
Modifier and Type | Method and Description |
---|---|
void |
addTextBufferListener(TextBufferListener listener)
Registers the given observer to begin receiving notifications
when changes are made to the text buffer either by an insert or
remove.
|
void |
dispose(boolean autoClosed) |
void |
removeTextBufferListener(TextBufferListener listener)
Unregisters the given observer from the notification list so
that it will no longer receive change updates.
|
void |
throwIfExpired() |
addOffsetMark, addOffsetMark, addWriteLockRequestListener, append, beginEdit, clearModified, endEdit, getChangeId, getEOLType, getLineMap, getPlatformEOLType, getTextBuffer, insert, insert, isModified, isReadOnly, read, remove, removeOffsetMark, removeToEnd, removeWriteLockRequestListener, setEOLType, setReadOnly, setTextBuffer, tryWriteLock, write, write, writeLock, writeLock, writeLockInterruptibly, writeUnlock
getChar, getChars, getLength, getLockStatus, getString, getText, readLock, readLockInterruptibly, readUnlock, tryReadLock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addOffsetMark, addOffsetMark, addWriteLockRequestListener, append, beginEdit, clearModified, endEdit, getChangeId, getEOLType, getLineMap, getPlatformEOLType, insert, insert, isModified, isReadOnly, read, remove, removeOffsetMark, removeToEnd, removeWriteLockRequestListener, setEOLType, setReadOnly, tryWriteLock, write, write, writeLock, writeLock, writeLockInterruptibly, writeUnlock
getChar, getChars, getLength, getLockStatus, getString, getText, readLock, readLockInterruptibly, readUnlock, tryReadLock
public void dispose(boolean autoClosed)
dispose
in interface FacadeTextBuffer
public void throwIfExpired()
throwIfExpired
in interface FacadeTextBuffer
public void addTextBufferListener(TextBufferListener listener)
TextBufferDecorator
addTextBufferListener
in interface TextBuffer
addTextBufferListener
in class TextBufferDecorator
listener
- the observer to registerReadTextBuffer.readLock()
public void removeTextBufferListener(TextBufferListener listener)
TextBufferDecorator
removeTextBufferListener
in interface TextBuffer
removeTextBufferListener
in class TextBufferDecorator
listener
- the observer to unregister