| java.lang.Object workbench.gui.WbSwingUtilities
WbSwingUtilities | public class WbSwingUtilities (Code) | | Some helper functions to deal with Swing stuff
|
Method Summary | |
public static void | callRepaint(Component c) | public static void | center(Window aWinToCenter, Component aReference) Centers the given window either agains anotherone on the screen
If a second window is passed the first window is centered
against that one
Parameters: aWinToCenter - the window to be centered Parameters: aReference - center against this window. | public static boolean | checkConnection(Component parent, WbConnection dbConnection) | public static Border | getBevelBorder() | public static Border | getBevelBorderRaised() | public static int | getCommitRollbackQuestion(Component aCaller, String aMessage) | public static String | getKeyName(int keyCode) | public static Point | getLocationToCenter(Window aWinToCenter, Component aReference) | public static boolean | getOKCancel(String title, Component aCaller, Component message) | public static boolean | getOKCancel(String title, Component aCaller, Component message, Runnable doLater) | public static String | getUserInput(Component caller, String aTitle, String initialValue) | public static String | getUserInput(Component caller, String aTitle, String initialValue, boolean hideInput) | public static Window | getWindowAncestor(Component caller) | public static boolean | getYesNo(Component aCaller, String aMessage) | public static int | getYesNo(Component aCaller, String aMessage, String[] options) | public static int | getYesNo(Component aCaller, String aMessage, String[] options, int type) | public static int | getYesNoCancel(Component aCaller, String aMessage) | public static int | getYesNoExecuteAll(Component aCaller, String aMessage) | public static int | getYesNoIgnoreAll(Component aCaller, String aMessage) | public static void | initPropertyEditors(Object bean, JComponent root) | final public static void | invoke(Runnable r) Synchronously execute code on the EDT.
If the current thread is the EDT, this merely calls r.run()
otherwise EventQueue.invokeAndWait() is called with the passed runnable.
Exceptions that can be thrown by EventQueue.invokeAndWait() are
caught and logged. | public static void | repaintLater(Component c) | public static void | repaintNow(Component c) | public static void | requestFocus(Window win, JComponent comp) | public static void | requestFocus(JComponent comp) | public static void | showDefaultCursor(Component caller) | public static void | showDefaultCursor(Component caller, boolean includeParents) | public static void | showDefaultCursorOnWindow(Component caller) | public static void | showErrorMessage(String aMessage) | public static void | showErrorMessage(Component aCaller, String aMessage) | public static void | showErrorMessage(Component aCaller, String title, String aMessage) | public static void | showErrorMessageKey(Component aCaller, String key) | public static void | showMessage(Component aCaller, Object aMessage) | public static void | showMessage(Component aCaller, String title, Object aMessage) | public static void | showMessageKey(Component aCaller, String aKey) | public static void | showWaitCursor(Component caller) | public static void | showWaitCursorOnWindow(Component caller) | final public static void | waitForEmptyQueue() |
DO_COMMIT | final public static int DO_COMMIT(Code) | | |
DO_ROLLBACK | final public static int DO_ROLLBACK(Code) | | |
EXECUTE_ALL | final public static int EXECUTE_ALL(Code) | | |
FLAT_BUTTON_BORDER | final public static Border FLAT_BUTTON_BORDER(Code) | | |
IGNORE_ALL | final public static int IGNORE_ALL(Code) | | |
center | public static void center(Window aWinToCenter, Component aReference)(Code) | | Centers the given window either agains anotherone on the screen
If a second window is passed the first window is centered
against that one
Parameters: aWinToCenter - the window to be centered Parameters: aReference - center against this window. If null -> center on screen |
getBevelBorderRaised | public static Border getBevelBorderRaised()(Code) | | |
getCommitRollbackQuestion | public static int getCommitRollbackQuestion(Component aCaller, String aMessage)(Code) | | |
getKeyName | public static String getKeyName(int keyCode)(Code) | | |
invoke | final public static void invoke(Runnable r)(Code) | | Synchronously execute code on the EDT.
If the current thread is the EDT, this merely calls r.run()
otherwise EventQueue.invokeAndWait() is called with the passed runnable.
Exceptions that can be thrown by EventQueue.invokeAndWait() are
caught and logged.
|
showDefaultCursor | public static void showDefaultCursor(Component caller)(Code) | | |
showDefaultCursor | public static void showDefaultCursor(Component caller, boolean includeParents)(Code) | | |
showDefaultCursorOnWindow | public static void showDefaultCursorOnWindow(Component caller)(Code) | | |
showErrorMessage | public static void showErrorMessage(String aMessage)(Code) | | |
showWaitCursorOnWindow | public static void showWaitCursorOnWindow(Component caller)(Code) | | |
waitForEmptyQueue | final public static void waitForEmptyQueue()(Code) | | |
|
|