public abstract class Descriptor extends java.lang.Object implements NodeDescriptor
| Modifier and Type | Class and Description |
|---|---|
static interface |
Descriptor.Host |
| Modifier | Constructor and Description |
|---|---|
protected |
Descriptor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkThreadAccess()
Checks whether the current thread has access to this object.
|
protected Descriptor.Host |
getHost() |
protected static java.util.Map<java.lang.String,java.lang.String> |
parseSetAttributesAsTextArg(java.lang.String text)
Parses the text argument text from DOM.setAttributeAsText()
Text will be in the format "attribute1=\"Value 1\" attribute2=\"Value2\""
|
void |
postAndWait(java.lang.Runnable r)
Synchronously executes a
Runnable on the thread that this object is bound to. |
<V> V |
postAndWait(UncheckedCallable<V> c)
Synchronously executes an
UncheckedCallable on the thread that this object is bound to,
and returns its result. |
void |
postDelayed(java.lang.Runnable r,
long delayMillis)
Asynchronously executes a
Runnable on the thread that this object is bound to
after the specified delay. |
void |
removeCallbacks(java.lang.Runnable r)
Removes any pending posts of the given
Runnable that are in the queue. |
void |
verifyThreadAccess()
Enforces that the current thread has access to this object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttributes, getChildren, getLocalName, getNodeName, getNodeType, getNodeValue, getStyles, hook, setAttributesAsText, unhookprotected final Descriptor.Host getHost()
public final boolean checkThreadAccess()
ThreadBoundcheckThreadAccess in interface ThreadBoundpublic final void verifyThreadAccess()
ThreadBoundverifyThreadAccess in interface ThreadBoundpublic final <V> V postAndWait(UncheckedCallable<V> c)
ThreadBoundUncheckedCallable on the thread that this object is bound to,
and returns its result.postAndWait in interface ThreadBoundV - the return type of the UncheckedCallablec - the UncheckedCallable to executeUncheckedCallable.call()public final void postAndWait(java.lang.Runnable r)
ThreadBoundRunnable on the thread that this object is bound to.postAndWait in interface ThreadBoundr - the Runnable to executepublic final void postDelayed(java.lang.Runnable r,
long delayMillis)
ThreadBoundRunnable on the thread that this object is bound to
after the specified delay.postDelayed in interface ThreadBoundr - the Runnable to executedelayMillis - The delay (in milliseconds) until the Runnable will be executed.public final void removeCallbacks(java.lang.Runnable r)
ThreadBoundRunnable that are in the queue.removeCallbacks in interface ThreadBoundr - the Runnable to remove from the queueprotected static java.util.Map<java.lang.String,java.lang.String> parseSetAttributesAsTextArg(java.lang.String text)
text - the text argument to be parsed