|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.qswing.QSwingUtilities
QSwing Utilities.
Method Summary | |
static int |
getMnemonicIndex(java.lang.String text)
Returns the index of mnemonic '&'. |
static void |
invokeAndWait(java.lang.Runnable target)
Invokes runnable target from the GUI loop and waits until finish. |
static void |
invokeLater(java.lang.Runnable target)
Invokes runnable target from the GUI loop. |
static void |
invokeSafeAndWait(java.lang.Runnable safeTarget)
Invokes "safe" runnable target from the GUI loop and waits until finish. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void invokeLater(java.lang.Runnable target)
target
- the runnable target
java.lang.IllegalArgumentException
- if the target is nullpublic static void invokeAndWait(java.lang.Runnable target) throws java.lang.reflect.InvocationTargetException
NOTE: Do not call this method form QSwing thread.
target
- the runnable target
java.lang.IllegalArgumentException
- if the target is null
java.lang.Error
- if the method is called from the QSwing thread.
java.lang.reflect.InvocationTargetException
- if an exception is thrown while running
targetpublic static void invokeSafeAndWait(java.lang.Runnable safeTarget)
NOTE: Do not call this method form QSwing thread.
safeTarget
- the runnable target
java.lang.IllegalArgumentException
- if the target is null
java.lang.Error
- if the method is called from the QSwing thread.public static int getMnemonicIndex(java.lang.String text)
text
- the text
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |