swingwtx.swing
Class SwingUtilities
java.lang.Object
swingwtx.swing.SwingUtilities
- All Implemented Interfaces:
- SwingConstants
- public abstract class SwingUtilities
- extends java.lang.Object
- implements SwingConstants
Fields inherited from interface swingwtx.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwingUtilities
public SwingUtilities()
invokeAndWait
public static void invokeAndWait(java.lang.Runnable run)
invokeLater
public static void invokeLater(java.lang.Runnable run)
invokeAsync
public static void invokeAsync(java.lang.Runnable run)
- Invokes a call asynchronously.
invokeSync
public static void invokeSync(java.lang.Runnable run)
- Invokes a call synchronously. Since we use this a lot for SwingWT
internals, we check to see if we are already on the dispatch thread
(which is likely in many places) - if we are, we can just run
the code right off without queuing it.
invokeIn
public static void invokeIn(java.lang.Runnable run,
int milliseconds)
- Invokes a call in a specified interval of time
updateComponentTreeUI
public static void updateComponentTreeUI(Component c)
getAncestorOfClass
public static Container getAncestorOfClass(java.lang.Class c,
Component comp)
- Searches the component hierarchy above comp for the first
instance of class type c
getAccessibleChildrenCount
public static int getAccessibleChildrenCount(Component component)
getAccessibleChild
public static Accessible getAccessibleChild(Component component,
int i)