| threaddemo.data.DomProvider
All known Subclasses: threaddemo.data.DomSupport,
DomProvider | public interface DomProvider (Code) | | Cookie for an object with a DOM tree.
author: Jesse Glick |
Method Summary | |
void | addChangeListener(ChangeListener l) Listen for changes in status. | Document | getDocument() Get the parsed document (blocking as needed). | boolean | isReady() True if the parse is finished and OK (does not block except for lock). | void | isolatingChange(Runnable r) Do an isolated block of operations to the document (must be in the write lock).
During this block you may not call any other methods of this interface which
require the lock (in read or write mode), or this method itself; you may
only adjust the document using DOM mutations.
Changes will be fired, and any underlying storage recreated, only when the
block is finished (possibly with an error). | RWLock | lock() Lock on which to lock while doing things. | void | removeChangeListener(ChangeListener l) Stop listening for changes in status. | void | setDocument(Document d) Set the parsed document. | void | start() Prepare for parsing. |
isReady | boolean isReady()(Code) | | True if the parse is finished and OK (does not block except for lock).
|
isolatingChange | void isolatingChange(Runnable r)(Code) | | Do an isolated block of operations to the document (must be in the write lock).
During this block you may not call any other methods of this interface which
require the lock (in read or write mode), or this method itself; you may
only adjust the document using DOM mutations.
Changes will be fired, and any underlying storage recreated, only when the
block is finished (possibly with an error). Does not roll back partial blocks.
|
lock | RWLock lock()(Code) | | Lock on which to lock while doing things.
|
removeChangeListener | void removeChangeListener(ChangeListener l)(Code) | | Stop listening for changes in status.
|
start | void start()(Code) | | Prepare for parsing. If the DOM tree is not already
available, parsing will be initiated. To receive notification
of completion, attach a listener.
|
|
|