Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

abbot.util
Class AWT  view AWT download AWT.java

java.lang.Object
  extended byabbot.util.AWT

public class AWT
extends java.lang.Object

Various AWT utilities.


Constructor Summary
private AWT()
           
 
Method Summary
private static java.util.List disable(java.awt.Component root, java.util.List list)
          Expects to be invoked on the dispatch thread only.
static java.util.List disableHierarchy(java.awt.Component root)
          Disable a component hierarchy starting at the given component.
static void invokeAction(java.lang.Runnable action)
          Ensure the given action happens on the event dispatch thread.
static void invokeAndWait(java.lang.Runnable action)
          Ensure the given action happens on the event dispatch thread.
static boolean isTransientPopup(java.lang.Class cls)
          Return whether the given component is a transient wrapper around a popup.
static void reenable(java.util.List enabled)
          Restore the enabled state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWT

private AWT()
Method Detail

invokeAndWait

public static void invokeAndWait(java.lang.Runnable action)
Ensure the given action happens on the event dispatch thread. Any component modifications must be invoked this way.


invokeAction

public static void invokeAction(java.lang.Runnable action)
Ensure the given action happens on the event dispatch thread. Any component modifications must be invoked this way.


disable

private static java.util.List disable(java.awt.Component root,
                                      java.util.List list)
Expects to be invoked on the dispatch thread only.


reenable

public static void reenable(java.util.List enabled)
Restore the enabled state.


disableHierarchy

public static java.util.List disableHierarchy(java.awt.Component root)
Disable a component hierarchy starting at the given component. Returns a list of all components which used to be enabled, for use with reenableHierarchy.


isTransientPopup

public static boolean isTransientPopup(java.lang.Class cls)
Return whether the given component is a transient wrapper around a popup.