< prev index next >

modules/javafx.controls/src/main/java/javafx/scene/control/ScrollToEvent.java

Print this page

        

@@ -52,10 +52,11 @@
     public static final EventType<ScrollToEvent> ANY =
             new EventType<ScrollToEvent> (Event.ANY, "SCROLL_TO");
 
     /**
      * This event occurs if the user requests scrolling a given index into view.
+     * @return the scroll to event type
      */
     public static EventType<ScrollToEvent<Integer>> scrollToTopIndex() {
         return SCROLL_TO_TOP_INDEX;
     }
     private static final EventType<ScrollToEvent<Integer>> SCROLL_TO_TOP_INDEX =

@@ -63,10 +64,12 @@
 
 
     /**
      * This event occurs if the user requests scrolling a {@link TableColumnBase}
      * (i.e. {@link TableColumn} or {@link TreeTableColumn}) into view.
+     * @param <T> the type
+     * @return the scroll to event type
      */
     @SuppressWarnings("unchecked")
     public static <T extends TableColumnBase<?, ?>> EventType<ScrollToEvent<T>> scrollToColumn() {
         return (EventType<ScrollToEvent<T>>) SCROLL_TO_COLUMN;
     }

@@ -83,11 +86,11 @@
      * by the {@code NULL_SOURCE_TARGET} value.
      *
      * @param source the event source which sent the event
      * @param target the event source which sent the event
      * @param type the event type
-     * @param target the target of the scroll to operation
+     * @param scrollTarget the target of the scroll to operation
      */
     public ScrollToEvent(@NamedArg("source") Object source, @NamedArg("target") EventTarget target, @NamedArg("type") EventType<ScrollToEvent<T>> type, @NamedArg("scrollTarget") T scrollTarget) {
         super(source, target, type);
         assert scrollTarget != null;
         this.scrollTarget = scrollTarget;
< prev index next >