public class ListUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ListUtil.RemoveNotification<ItemType> |
static class |
ListUtil.Updatable |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SELECTED_BY_MOUSE_EVENT |
Constructor and Description |
---|
ListUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> void |
addAllItems(javax.swing.ListModel<T> model,
java.util.List<? extends T> items) |
static <T> ListUtil.Updatable |
addMoveDownListener(javax.swing.JButton button,
javax.swing.JList<T> list) |
static <T> ListUtil.Updatable |
addMoveUpListener(javax.swing.JButton button,
javax.swing.JList<T> list) |
static <T> ListUtil.Updatable |
addRemoveListener(javax.swing.JButton button,
javax.swing.JList<T> list) |
static <T> ListUtil.Updatable |
addRemoveListener(javax.swing.JButton button,
javax.swing.JList<T> list,
ListUtil.RemoveNotification<T> notification) |
static <T> boolean |
canMoveSelectedItemsDown(javax.swing.JList<T> list) |
static <T> boolean |
canMoveSelectedItemsUp(javax.swing.JList<T> list) |
static <T> boolean |
canRemoveSelectedItems(javax.swing.JList<T> list) |
static <T> boolean |
canRemoveSelectedItems(javax.swing.JList<T> list,
Condition<? super T> condition) |
static <T> ListUtil.Updatable |
disableWhenNoSelection(javax.swing.JButton button,
javax.swing.JList<T> list) |
static <E> java.awt.Component |
getDeepestRendererChildComponentAt(javax.swing.JList<E> list,
java.awt.Point point) |
static <T> java.awt.event.MouseMotionListener |
installAutoSelectOnMouseMove(javax.swing.JList<T> list) |
static <T> boolean |
isPointOnSelection(javax.swing.JList<T> list,
int x,
int y) |
static <T> int |
moveSelectedItemsDown(javax.swing.JList<T> list) |
static <T> int |
moveSelectedItemsUp(javax.swing.JList<T> list) |
static <T> void |
removeAllItems(javax.swing.ListModel<T> model) |
static <T> java.util.List<T> |
removeIndices(javax.swing.JList<T> list,
int[] indices) |
static <T> void |
removeItem(javax.swing.ListModel<T> model,
int index) |
static <T> java.util.List<T> |
removeSelectedItems(javax.swing.JList<T> list) |
static <T> java.util.List<T> |
removeSelectedItems(javax.swing.JList<T> list,
Condition<? super T> condition) |
public static final java.lang.String SELECTED_BY_MOUSE_EVENT
public static <T> java.awt.event.MouseMotionListener installAutoSelectOnMouseMove(javax.swing.JList<T> list)
public static <T> java.util.List<T> removeSelectedItems(javax.swing.JList<T> list)
public static <T> java.util.List<T> removeIndices(javax.swing.JList<T> list, int[] indices)
public static <T> java.util.List<T> removeSelectedItems(javax.swing.JList<T> list, Condition<? super T> condition)
public static <T> void removeItem(javax.swing.ListModel<T> model, int index)
public static <T> void removeAllItems(javax.swing.ListModel<T> model)
public static <T> void addAllItems(javax.swing.ListModel<T> model, java.util.List<? extends T> items)
public static <T> boolean canRemoveSelectedItems(javax.swing.JList<T> list)
public static <T> boolean canRemoveSelectedItems(javax.swing.JList<T> list, Condition<? super T> condition)
public static <T> int moveSelectedItemsUp(javax.swing.JList<T> list)
public static <T> boolean canMoveSelectedItemsUp(javax.swing.JList<T> list)
public static <T> int moveSelectedItemsDown(javax.swing.JList<T> list)
public static <T> boolean isPointOnSelection(javax.swing.JList<T> list, int x, int y)
public static <E> java.awt.Component getDeepestRendererChildComponentAt(javax.swing.JList<E> list, java.awt.Point point)
public static <T> boolean canMoveSelectedItemsDown(javax.swing.JList<T> list)
public static <T> ListUtil.Updatable addMoveUpListener(javax.swing.JButton button, javax.swing.JList<T> list)
public static <T> ListUtil.Updatable addMoveDownListener(javax.swing.JButton button, javax.swing.JList<T> list)
public static <T> ListUtil.Updatable addRemoveListener(javax.swing.JButton button, javax.swing.JList<T> list)
public static <T> ListUtil.Updatable addRemoveListener(javax.swing.JButton button, javax.swing.JList<T> list, ListUtil.RemoveNotification<T> notification)
public static <T> ListUtil.Updatable disableWhenNoSelection(javax.swing.JButton button, javax.swing.JList<T> list)