org.openbp.jaspira.plugin
Class ApplicationUtil

java.lang.Object
  extended by org.openbp.jaspira.plugin.ApplicationUtil

public class ApplicationUtil
extends java.lang.Object

App-related utility methods.

Author:
Heiko Erhardt

Method Summary
static javax.swing.JFrame getActiveWindow()
          Returns the currently active frame of the application.
static void waitCursorOff()
          Turns the waits cursor off.
static void waitCursorOn()
          Turns the waits cursor on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getActiveWindow

public static javax.swing.JFrame getActiveWindow()
Returns the currently active frame of the application.

Returns:
The active window is either the window returned by the focus manager (if it is a JFrame) or otherwise the first frame in the list of frames of the application base or null if no frames have been added to the application yet.

waitCursorOn

public static void waitCursorOn()
Turns the waits cursor on. This method is a convenience method for the org.openbp.swing.SwingUtil.waitCursorOn method that uses the return value of the getActiveWindow() method as argument.


waitCursorOff

public static void waitCursorOff()
Turns the waits cursor off. This method is a convenience method for the org.openbp.swing.SwingUtil.waitCursorOff method that uses the return value of the getActiveWindow() method as argument.



Copyright © 2011. All Rights Reserved.