- java.lang.Object
-
- org.icepdf.ri.common.views.PageComponentSelector
-
public class PageComponentSelector extends Object
Utility for locating a Component on a page and setup up focus within int he context of the DocumentView. This is mainly used for finding Annotation or Destination components.
-
-
Constructor Summary
Constructors Constructor Description PageComponentSelector()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intAssignAnnotationPage(Controller controller, Annotation widgetAnnotation)static AnnotationComponentSelectAnnotationComponent(Controller controller, Annotation widgetAnnotation)Utility to find a Annotation's JComponent within a AbstractPageComponent implementation.static AnnotationComponentSelectAnnotationComponent(Controller controller, Annotation widgetAnnotation, boolean select)Utility to find a Annotation's JComponent within a AbstractPageComponent implementation.static AnnotationComponentSelectAnnotationComponent(Controller controller, Annotation widgetAnnotation, boolean select, boolean scrollTo)Utility to find a Annotation's JComponent within a AbstractPageComponent implementation.static DestinationComponentSelectDestinationComponent(Controller controller, Destination destination)Utility to find a destination's JComponent within a AbstractPageComponent implementation.
-
-
-
Method Detail
-
SelectAnnotationComponent
public static AnnotationComponent SelectAnnotationComponent(Controller controller, Annotation widgetAnnotation)
Utility to find a Annotation's JComponent within a AbstractPageComponent implementation.- Parameters:
controller- swing controller.widgetAnnotation- annotation to do search for wrapping component.- Returns:
- selected annotation component.
-
SelectAnnotationComponent
public static AnnotationComponent SelectAnnotationComponent(Controller controller, Annotation widgetAnnotation, boolean select)
Utility to find a Annotation's JComponent within a AbstractPageComponent implementation.- Parameters:
controller- swing controller.widgetAnnotation- annotation to do search for wrapping component.select- select the annotation component applying focus to the component.- Returns:
- selected annotation component.
-
SelectAnnotationComponent
public static AnnotationComponent SelectAnnotationComponent(Controller controller, Annotation widgetAnnotation, boolean select, boolean scrollTo)
Utility to find a Annotation's JComponent within a AbstractPageComponent implementation.- Parameters:
controller- swing controller.widgetAnnotation- annotation to do search for wrapping component.select- select the annotation component applying focus to the component.scrollTo- scroll the view to the component.- Returns:
- selected annotation component.
-
SelectDestinationComponent
public static DestinationComponent SelectDestinationComponent(Controller controller, Destination destination)
Utility to find a destination's JComponent within a AbstractPageComponent implementation.- Parameters:
controller- swing controller.destination- destination to do search for wrapping component.- Returns:
- selected annotation component.
-
AssignAnnotationPage
public static int AssignAnnotationPage(Controller controller, Annotation widgetAnnotation)
-
-