Package org.fest.swing.driver
Class JListScrollToItemTask
java.lang.Object
org.fest.swing.driver.JListScrollToItemTask
Understands actions, executed in the event dispatch thread, that perform scrolling to an element in a
JList
.-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static Point
scrollToItem
(JList list, int index) scrollToItem
(JList list, TextMatcher matcher, JListCellReader cellReader) (package private) static Point
scrollToItemIfNotSelectedYet
(JList list, int index) scrollToItemIfNotSelectedYet
(JList list, TextMatcher matcher, JListCellReader cellReader) private static Point
scrollToItemWithIndex
(JList list, int index) private static Point
scrollToItemWithIndexIfNotSelectedYet
(JList list, int index)
-
Field Details
-
ITEM_NOT_FOUND
-
-
Constructor Details
-
JListScrollToItemTask
private JListScrollToItemTask()
-
-
Method Details
-
scrollToItem
-
scrollToItem
@RunsInEDT static Pair<Integer,Point> scrollToItem(JList list, TextMatcher matcher, JListCellReader cellReader) -
scrollToItemIfNotSelectedYet
@RunsInEDT static Pair<Integer,Point> scrollToItemIfNotSelectedYet(JList list, TextMatcher matcher, JListCellReader cellReader) -
scrollToItemIfNotSelectedYet
-
scrollToItemWithIndexIfNotSelectedYet
@RunsInCurrentThread private static Point scrollToItemWithIndexIfNotSelectedYet(JList list, int index) -
scrollToItemWithIndex
-