198 sb.append(", altDown"); 199 } 200 if (isMetaDown()) { 201 sb.append(", metaDown"); 202 } 203 if (isShortcutDown()) { 204 sb.append(", shortcutDown"); 205 } 206 sb.append(", pickResult = ").append(getPickResult()); 207 208 return sb.append("]").toString(); 209 } 210 211 @Override 212 public SwipeEvent copyFor(Object newSource, EventTarget newTarget) { 213 return (SwipeEvent) super.copyFor(newSource, newTarget); 214 } 215 216 /** 217 * Creates a copy of the given event with the given fields substituted. 218 * @param source the new source of the copied event 219 * @param target the new target of the copied event 220 * @param eventType the new eventType 221 * @return the event copy with the fields substituted 222 * @since JavaFX 8.0 223 */ 224 public SwipeEvent copyFor(Object newSource, EventTarget newTarget, EventType<SwipeEvent> type) { 225 SwipeEvent e = copyFor(newSource, newTarget); 226 e.eventType = type; 227 return e; 228 } 229 230 @Override 231 public EventType<SwipeEvent> getEventType() { 232 return (EventType<SwipeEvent>) super.getEventType(); 233 } 234 235 236 } | 198 sb.append(", altDown"); 199 } 200 if (isMetaDown()) { 201 sb.append(", metaDown"); 202 } 203 if (isShortcutDown()) { 204 sb.append(", shortcutDown"); 205 } 206 sb.append(", pickResult = ").append(getPickResult()); 207 208 return sb.append("]").toString(); 209 } 210 211 @Override 212 public SwipeEvent copyFor(Object newSource, EventTarget newTarget) { 213 return (SwipeEvent) super.copyFor(newSource, newTarget); 214 } 215 216 /** 217 * Creates a copy of the given event with the given fields substituted. 218 * @param newSource the new source of the copied event 219 * @param newTarget the new target of the copied event 220 * @param type the new eventType 221 * @return the event copy with the fields substituted 222 * @since JavaFX 8.0 223 */ 224 public SwipeEvent copyFor(Object newSource, EventTarget newTarget, EventType<SwipeEvent> type) { 225 SwipeEvent e = copyFor(newSource, newTarget); 226 e.eventType = type; 227 return e; 228 } 229 230 @Override 231 public EventType<SwipeEvent> getEventType() { 232 return (EventType<SwipeEvent>) super.getEventType(); 233 } 234 235 236 } |