Package org.fest.swing.core
Class Scrolling
java.lang.Object
org.fest.swing.core.Scrolling
Understands utility methods related to scrolling.
- Since:
- 1.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static JComponent
Returns a component's closest validating root ancestor in the AWT containment hierarchy.static void
scrollToVisible
(Robot robot, JComponent c) Scrolls a
into view within a container.JComponent
private static void
scrollToVisible
(Robot robot, JComponent container, Component target) Scrolls a component into view within a container.private static void
scrollToVisible
(Robot robot, JComponent c, Rectangle rectangle) Scrolls a rectangular region of a component into view.
-
Constructor Details
-
Scrolling
private Scrolling()
-
-
Method Details
-
scrollToVisible
Scrolls a
into view within a container.JComponent
- Parameters:
robot
- simulates user input.c
- the given component.
-
findClosestValidatingRootAncestor
Returns a component's closest validating root ancestor in the AWT containment hierarchy.- Parameters:
c
- the given component.- Returns:
- the found ancestor or
null
if there isn't one.
-
scrollToVisible
Scrolls a component into view within a container.- Parameters:
robot
- simulates user input.container
- the given container.target
- the given component.
-
scrollToVisible
Scrolls a rectangular region of a component into view.- Parameters:
robot
- simulates user input.c
- the component.rectangle
- the rectangular region.
-