|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.geeboss.util.WidgetUtil
public class WidgetUtil
Utility class for widgets
| Method Summary | |
|---|---|
static void |
createWildCardMenu(org.eclipse.swt.widgets.Text text,
java.lang.String[] wildcards)
Apply a wildcard popup menu to the text. |
static void |
createWildCardMenu(org.eclipse.swt.widgets.Text text,
java.lang.String[] wildcards,
java.lang.String[] labels)
Apply a wildcard popup menu to the text. |
static void |
initMnemonics(org.eclipse.swt.widgets.Button[] buttons)
Set Mnemonics to the given Array of Buttons. |
static void |
initMnemonics(org.eclipse.swt.widgets.Menu menu)
Init the mnemonics for the given Menu |
static void |
initMnemonics(org.eclipse.swt.widgets.MenuItem[] items)
Recursivly sets the mnemonic for each Menu and MenuItem. |
static boolean |
isset(org.eclipse.swt.widgets.Widget widget)
Check the given widget for being NULL or disposed. |
static void |
tweakTextWidget(org.eclipse.swt.widgets.Text text)
Tweak the Text widget with adding listeners to call the selectAll() Method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void createWildCardMenu(org.eclipse.swt.widgets.Text text,
java.lang.String[] wildcards)
text - The control to append the menuwildcards - The wildcards to add to the menu
public static void createWildCardMenu(org.eclipse.swt.widgets.Text text,
java.lang.String[] wildcards,
java.lang.String[] labels)
text - The control to append the menuwildcards - The wildcards to add to the menulabels - The labels for the menuitemspublic static void initMnemonics(org.eclipse.swt.widgets.Menu menu)
menu - The Menu to init the Mnemonicspublic static void initMnemonics(org.eclipse.swt.widgets.MenuItem[] items)
items - The MenuItemspublic static void initMnemonics(org.eclipse.swt.widgets.Button[] buttons)
buttons - The Buttonspublic static boolean isset(org.eclipse.swt.widgets.Widget widget)
widget - The widget to check
public static void tweakTextWidget(org.eclipse.swt.widgets.Text text)
text - The Text widget to tweak
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||