abbot.util
Class AWT

java.lang.Object
  |
  +--abbot.util.AWT

public class AWT
extends Object

Various AWT utilities.


Method Summary
static List disableHierarchy(Component root)
          Disable a component hierarchy starting at the given component.
static int getPopupMask()
          Returns the InputEvent mask for the popup trigger button.
static boolean getPopupOnPress()
          Returns whether the platform registers a popup on mouse press.
static int getTertiaryMask()
          Returns the InputEvent mask for the tertiary button.
static void invokeAction(Runnable action)
          Ensure the given action happens on the event dispatch thread.
static void invokeAndWait(Runnable action)
          Ensure the given action happens on the event dispatch thread.
static boolean isInternalFrameDecoration(Component c)
          Return whether the given component is part of an internal frame's LAF decoration.
static boolean isTransientPopup(Object c)
          Return whether the given component is a transient wrapper around a popup.
static void reenableHierarchy(List enabled)
          Restore the enabled state.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

invokeAndWait

public static void invokeAndWait(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(Runnable action)
Ensure the given action happens on the event dispatch thread. Any component modifications must be invoked this way. Note that this is not the same as EventQueue.invokeLater, since if the current thread is the dispatch thread, the action is invoked immediately.

reenableHierarchy

public static void reenableHierarchy(List enabled)
Restore the enabled state.

disableHierarchy

public static List disableHierarchy(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(Object c)
Return whether the given component is a transient wrapper around a popup.

isInternalFrameDecoration

public static boolean isInternalFrameDecoration(Component c)
Return whether the given component is part of an internal frame's LAF decoration.

getPopupMask

public static int getPopupMask()
Returns the InputEvent mask for the popup trigger button.

getTertiaryMask

public static int getTertiaryMask()
Returns the InputEvent mask for the tertiary button.

getPopupOnPress

public static boolean getPopupOnPress()
Returns whether the platform registers a popup on mouse press.


Copyright © 2002-2003 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge