|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--elge.gui.ElgeSwingUtilities
Utility class for various methods wich mostly works with swing components.
Method Summary | |
static void |
listSelectionChanged(ListSelectionEvent e,
Hashtable deps)
Very common method to enable - disable depended components if a selection in the list is made or unmade. |
static void |
positionFrame(Window frame)
Position the frame on screen. |
static void |
setListSelection(JList list,
int[] sels)
Renews the selection on a list. |
static void |
showPopupMenu(JPopupMenu menu,
MouseEvent e)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void listSelectionChanged(ListSelectionEvent e, Hashtable deps)
If the selection is empty, the components are disabled, else enabled. The deps hashtable should contains a pairs of JList -> Object[] { depend JComponents... }.
e
- the ListSelectionEvent eventdeps
- The depended components.public static void positionFrame(Window frame)
frame
- frame to positionpublic static void setListSelection(JList list, int[] sels)
list
- the list where the renew the selectionsels
- the old selectionpublic static void showPopupMenu(JPopupMenu menu, MouseEvent e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |