public class ScrollingUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ScrollingUtil.ListScrollAction |
static interface |
ScrollingUtil.ScrollingAction |
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
MOVE_END_ID |
protected static java.lang.String |
MOVE_HOME_ID |
static int |
ROW_PADDING |
protected static java.lang.String |
SCROLLDOWN_ACTION_ID |
protected static java.lang.String |
SCROLLUP_ACTION_ID |
protected static java.lang.String |
SELECT_FIRST_ROW_ACTION_ID |
protected static java.lang.String |
SELECT_LAST_ROW_ACTION_ID |
protected static java.lang.String |
SELECT_NEXT_ROW_ACTION_ID |
protected static java.lang.String |
SELECT_PREVIOUS_ROW_ACTION_ID |
Constructor and Description |
---|
ScrollingUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
ensureIndexIsVisible(javax.swing.JList list,
int index,
int moveDirection) |
static void |
ensureIndexIsVisible(javax.swing.JTable table,
int index,
int moveDirection) |
static void |
ensureRangeIsVisible(javax.swing.JList list,
int top,
int bottom) |
static void |
ensureSelectionExists(javax.swing.JList list) |
static void |
ensureSelectionExists(javax.swing.JTable table) |
static int |
getReadableRow(javax.swing.JTable table,
int maximumHiddenPart) |
static Couple<java.lang.Integer> |
getVisibleRows(javax.swing.JTable table) |
static void |
installActions(javax.swing.JList list) |
static void |
installActions(javax.swing.JList list,
javax.swing.JComponent focusParent) |
static void |
installActions(javax.swing.JTable table) |
static void |
installActions(javax.swing.JTable table,
boolean cycleScrolling) |
static void |
installActions(javax.swing.JTable table,
boolean cycleScrolling,
javax.swing.JComponent focusParent) |
static void |
installMoveDownAction(javax.swing.JList list,
javax.swing.JComponent focusParent) |
static void |
installMoveEndAction(javax.swing.JList list,
javax.swing.JComponent focusParent) |
static void |
installMoveHomeAction(javax.swing.JList list,
javax.swing.JComponent focusParent) |
static void |
installMovePageDownAction(javax.swing.JList list,
javax.swing.JComponent focusParent) |
static void |
installMovePageUpAction(javax.swing.JList list,
javax.swing.JComponent focusParent) |
static void |
installMoveUpAction(javax.swing.JList list,
javax.swing.JComponent focusParent) |
static boolean |
isEmpty(javax.swing.JComponent component) |
static boolean |
isIndexFullyVisible(javax.swing.JList list,
int index) |
static boolean |
isVisible(javax.swing.JTable table,
int row) |
static void |
moveDown(javax.swing.JList list,
int modifiers) |
static void |
moveDown(javax.swing.JTable table,
int modifiers,
boolean cycleScrolling) |
static void |
moveEnd(javax.swing.JList list) |
static void |
moveEnd(javax.swing.JTable table) |
static void |
moveHome(javax.swing.JList list) |
static void |
moveHome(javax.swing.JTable table) |
static void |
movePageDown(javax.swing.JList list) |
static void |
movePageDown(javax.swing.JTable table) |
static void |
movePageUp(javax.swing.JList list) |
static void |
movePageUp(javax.swing.JTable table) |
static void |
moveUp(javax.swing.JList list,
int modifiers) |
static void |
moveUp(javax.swing.JTable table,
int modifiers,
boolean cycleScrolling) |
static void |
redirectExpandSelection(javax.swing.JList list,
javax.swing.JComponent focusParent) |
static void |
selectItem(javax.swing.JList list,
int index) |
static boolean |
selectItem(javax.swing.JList list,
java.lang.Object item) |
protected static final java.lang.String SCROLLUP_ACTION_ID
protected static final java.lang.String SCROLLDOWN_ACTION_ID
protected static final java.lang.String SELECT_PREVIOUS_ROW_ACTION_ID
protected static final java.lang.String SELECT_NEXT_ROW_ACTION_ID
protected static final java.lang.String SELECT_LAST_ROW_ACTION_ID
protected static final java.lang.String SELECT_FIRST_ROW_ACTION_ID
protected static final java.lang.String MOVE_HOME_ID
protected static final java.lang.String MOVE_END_ID
public static final int ROW_PADDING
public static void selectItem(javax.swing.JList list, int index)
public static void ensureSelectionExists(javax.swing.JList list)
public static boolean selectItem(javax.swing.JList list, java.lang.Object item)
public static void movePageUp(javax.swing.JList list)
public static void movePageDown(javax.swing.JList list)
public static void moveHome(javax.swing.JList list)
public static void moveEnd(javax.swing.JList list)
public static void ensureIndexIsVisible(javax.swing.JList list, int index, int moveDirection)
public static void ensureIndexIsVisible(javax.swing.JTable table, int index, int moveDirection)
public static void ensureRangeIsVisible(javax.swing.JList list, int top, int bottom)
public static boolean isIndexFullyVisible(javax.swing.JList list, int index)
public static void moveDown(javax.swing.JList list, int modifiers)
public static void installActions(javax.swing.JList list)
public static void installActions(javax.swing.JList list, javax.swing.JComponent focusParent)
public static void redirectExpandSelection(javax.swing.JList list, javax.swing.JComponent focusParent)
public static void installMoveEndAction(javax.swing.JList list, javax.swing.JComponent focusParent)
public static void installMoveHomeAction(javax.swing.JList list, javax.swing.JComponent focusParent)
public static void installMovePageDownAction(javax.swing.JList list, javax.swing.JComponent focusParent)
public static void installMovePageUpAction(javax.swing.JList list, javax.swing.JComponent focusParent)
public static void installMoveDownAction(javax.swing.JList list, javax.swing.JComponent focusParent)
public static void installMoveUpAction(javax.swing.JList list, javax.swing.JComponent focusParent)
public static void ensureSelectionExists(javax.swing.JTable table)
public static Couple<java.lang.Integer> getVisibleRows(javax.swing.JTable table)
public static int getReadableRow(javax.swing.JTable table, int maximumHiddenPart)
public static boolean isVisible(javax.swing.JTable table, int row)
public static void moveDown(javax.swing.JTable table, int modifiers, boolean cycleScrolling)
public static void moveUp(javax.swing.JList list, int modifiers)
public static void moveUp(javax.swing.JTable table, int modifiers, boolean cycleScrolling)
public static void moveHome(javax.swing.JTable table)
public static void moveEnd(javax.swing.JTable table)
public static void movePageUp(javax.swing.JTable table)
public static void movePageDown(javax.swing.JTable table)
public static void installActions(javax.swing.JTable table)
public static boolean isEmpty(javax.swing.JComponent component)
public static void installActions(javax.swing.JTable table, boolean cycleScrolling)
public static void installActions(javax.swing.JTable table, boolean cycleScrolling, javax.swing.JComponent focusParent)