public class JListHelper extends Object
JList,
DefaultListModel| Modifier and Type | Field and Description |
|---|---|
static int |
MOVE_DOWN
moves items down.
|
static int |
MOVE_UP
moves items up.
|
| Constructor and Description |
|---|
JListHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canMoveDown(JList list)
checks whether the selected items can be moved down.
|
static boolean |
canMoveUp(JList list)
checks whether the selected items can be moved up.
|
static void |
moveBottom(JList list)
moves the selected items to the end.
|
static void |
moveDown(JList list)
moves the selected item down by 1.
|
protected static void |
moveItems(JList list,
int moveby,
int direction)
moves the selected items by a certain amount of items in a given direction.
|
static void |
moveTop(JList list)
moves the selected items to the top.
|
static void |
moveUp(JList list)
moves the selected items up by 1.
|
public static final int MOVE_UP
public static final int MOVE_DOWN
protected static void moveItems(JList list, int moveby, int direction)
public static void moveUp(JList list)
list - the JList to work onpublic static void moveDown(JList list)
list - the JList to work onpublic static void moveTop(JList list)
list - the JList to work onpublic static void moveBottom(JList list)
list - the JList to work onpublic static boolean canMoveUp(JList list)
list - the JList to work onpublic static boolean canMoveDown(JList list)
list - the JList to work onCopyright © 2016. All rights reserved.