textbender.o
Class CommonDOM

java.lang.Object
  extended by CommonDOM

Deprecated.

@Deprecated
@ThreadSafe
public final class CommonDOM
extends Object

Utilities for the Common DOM API of the Java Plug-in. The single instance of CommonDOM is available via CommonDOM.i().

Deprecated in favour of Rhinohide.


Constructor Summary
CommonDOM(DOMAccessor accessor)
          Deprecated. Creates the single instance of CommonDOM, and makes it available via i().
 
Method Summary
static CommonDOM i()
          Deprecated. The single instance of CommonDOM.
 boolean isDispatchThread()
          Deprecated. Returns true if the calling thread is probably the DOM access dispatch thread.
static void tryInvokeAndWait(DOMService service, DOMAction action)
          Deprecated. A version of invokeAndWait() that throws only unchecked exceptions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonDOM

@ThreadRestricted(value="DOM access dispatch")
public CommonDOM(DOMAccessor accessor)
Deprecated. 
Creates the single instance of CommonDOM, and makes it available via i().

Parameters:
accessor - not used, except to remind you of the thread restriction, which cannot otherwise be tested for compliance within this constructor
Method Detail

i

public static CommonDOM i()
Deprecated. 
The single instance of CommonDOM.


isDispatchThread

public boolean isDispatchThread()
Deprecated. 
Returns true if the calling thread is probably the DOM access dispatch thread. Use this call to ensure that a given task is being executed (or not being) on the DOM access dispatch thread.

Note: The method used here is imperfect. It is intended only for assertions, during development, to catch coding errors.


tryInvokeAndWait

public static void tryInvokeAndWait(DOMService service,
                                    DOMAction action)
Deprecated. 
A version of invokeAndWait() that throws only unchecked exceptions.

Parameters:
service - to use
action - to invoke
Throws:
RuntimeException - if a DOMAccessException occurs