524 sb.append(", altDown"); 525 } 526 if (isMetaDown()) { 527 sb.append(", metaDown"); 528 } 529 if (isShortcutDown()) { 530 sb.append(", shortcutDown"); 531 } 532 sb.append(", pickResult = ").append(getPickResult()); 533 534 return sb.append("]").toString(); 535 } 536 537 @Override 538 public ScrollEvent copyFor(Object newSource, EventTarget newTarget) { 539 return (ScrollEvent) super.copyFor(newSource, newTarget); 540 } 541 542 /** 543 * Creates a copy of the given event with the given fields substituted. 544 * @param source the new source of the copied event 545 * @param target the new target of the copied event 546 * @param eventType the new eventType 547 * @return the event copy with the fields substituted 548 * @since JavaFX 8.0 549 */ 550 public ScrollEvent copyFor(Object newSource, EventTarget newTarget, EventType<ScrollEvent> type) { 551 ScrollEvent e = copyFor(newSource, newTarget); 552 e.eventType = type; 553 return e; 554 } 555 556 @Override 557 public EventType<ScrollEvent> getEventType() { 558 return (EventType<ScrollEvent>) super.getEventType(); 559 } 560 561 /** 562 * Horizontal text-based scrolling units. 563 * @since JavaFX 2.0 564 */ 565 public static enum HorizontalTextScrollUnits { 566 /** | 524 sb.append(", altDown"); 525 } 526 if (isMetaDown()) { 527 sb.append(", metaDown"); 528 } 529 if (isShortcutDown()) { 530 sb.append(", shortcutDown"); 531 } 532 sb.append(", pickResult = ").append(getPickResult()); 533 534 return sb.append("]").toString(); 535 } 536 537 @Override 538 public ScrollEvent copyFor(Object newSource, EventTarget newTarget) { 539 return (ScrollEvent) super.copyFor(newSource, newTarget); 540 } 541 542 /** 543 * Creates a copy of the given event with the given fields substituted. 544 * @param newSource the new source of the copied event 545 * @param newTarget the new target of the copied event 546 * @param type the new eventType 547 * @return the event copy with the fields substituted 548 * @since JavaFX 8.0 549 */ 550 public ScrollEvent copyFor(Object newSource, EventTarget newTarget, EventType<ScrollEvent> type) { 551 ScrollEvent e = copyFor(newSource, newTarget); 552 e.eventType = type; 553 return e; 554 } 555 556 @Override 557 public EventType<ScrollEvent> getEventType() { 558 return (EventType<ScrollEvent>) super.getEventType(); 559 } 560 561 /** 562 * Horizontal text-based scrolling units. 563 * @since JavaFX 2.0 564 */ 565 public static enum HorizontalTextScrollUnits { 566 /** |