Class 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 Detail

      • PageComponentSelector

        public PageComponentSelector()
    • 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)