Uses of Interface
javafx.event.EventTarget
Packages that use EventTarget
Package
Description
Provides the set of classes for javafx.task.
Provides basic framework for FX events, their delivery and handling.
Provides the core set of base
classes for the JavaFX Scene Graph API.
Provides the set of classes for canvas, an immediate mode style of rendering API.
The JavaFX User Interface provides a set of chart components that
are a very convenient way for data visualization.
The JavaFX User Interface Controls (UI Controls or just Controls) are
specialized Nodes in the JavaFX Scenegraph especially suited for reuse in
many different application contexts.
The
javafx.scene.control.cell package is where all cell-related
classes are located, other than the core classes such as
Cell, IndexedCell,
ListCell, TreeCell,
and TableCell.The javafx.scene.control.skin package is where the skin classes, typically
one for each UI control, are located
Provides the set of classes for loading and displaying images.
Provides the set of classes for mouse and keyboard input event handling.
Provides classes to support user interface layout.
Provides the set of classes for integrating audio and video into Java FX
Applications.
Provides the set of 2D classes for defining and performing operations on
objects related to two-dimensional geometry.
Provides the set of classes for fonts and renderable Text Node.
Provides the set of convenient classes to perform rotating, scaling,
shearing, and translation transformations for
Affine objects.This package provides means for loading and displaying Web content.
Provides the top-level container classes for JavaFX content.
-
Uses of EventTarget in javafx.concurrent
Classes in javafx.concurrent that implement EventTargetModifier and TypeClassDescriptionclassThe ScheduledService is aServicewhich will automatically restart itself after a successful execution, and under some conditions will restart even in case of failure.classService<V>A Service is a non-visual component encapsulating the information required to perform some work on one or more background threads.classTask<V>A fully observable implementation of aFutureTask. -
Uses of EventTarget in javafx.embed.swing
Classes in javafx.embed.swing that implement EventTargetModifier and TypeClassDescriptionclassThis class is used to embed a Swing content into a JavaFX application. -
Uses of EventTarget in javafx.event
Fields in javafx.event declared as EventTargetModifier and TypeFieldDescriptionstatic final EventTargetEvent.NULL_SOURCE_TARGETThe constant which represents an unknown event source / target.protected EventTargetEvent.targetEvent target that defines the path through which the event will travel when posted.Methods in javafx.event that return EventTargetMethods in javafx.event with parameters of type EventTargetModifier and TypeMethodDescriptionActionEvent.copyFor(Object newSource, EventTarget newTarget) Event.copyFor(Object newSource, EventTarget newTarget) Creates and returns a copy of this event with the specified event source and target.static voidEvent.fireEvent(EventTarget eventTarget, Event event) Fires the specified event.Constructors in javafx.event with parameters of type EventTargetModifierConstructorDescriptionActionEvent(Object source, EventTarget target) Construct a newActionEventwith the specified event source and target.Event(Object source, EventTarget target, EventType<? extends Event> eventType) Construct a newEventwith the specified event source, target and type. -
Uses of EventTarget in javafx.scene
Classes in javafx.scene that implement EventTargetModifier and TypeClassDescriptionclassA light that illuminates an object from all directions equally regardless of its position and orientation.classBase class for a camera used to render a scene.classA light that illuminates an object from a specific direction.classAGroupnode contains an ObservableList of children that are rendered in order whenever this node is rendered.classTheLightBaseclass is the base class for all objects that represent a form of light source.classBase class for scene graph nodes.classSpecifies a parallel camera for rendering a scene without perspective correction.classThe base class for all nodes that have children in the scene graph.classSpecifies a perspective camera for rendering a scene.classA light source that radiates light equally in all directions away from itself.classThe JavaFXSceneclass is the container for all content in a scene graph.classA light source that radiates light in a cone in a specific direction away from itself.classTheSubSceneclass is the container for content in a scene graph. -
Uses of EventTarget in javafx.scene.canvas
Classes in javafx.scene.canvas that implement EventTargetModifier and TypeClassDescriptionclassCanvasis an image that can be drawn on using a set of graphics commands provided by aGraphicsContext. -
Uses of EventTarget in javafx.scene.chart
Classes in javafx.scene.chart that implement EventTargetModifier and TypeClassDescriptionclassAreaChart<X,Y> AreaChart - Plots the area between the line that connects the data points and the 0 line on the Y axis.classAxis<T>Base class for all axes in JavaFX that represents an axis drawn on a chart area.classBarChart<X,Y> A chart that plots bars indicating data values for a category.classBubbleChart<X,Y> Chart type that plots bubbles for the data points in a series.final classA axis implementation that will works on string categories where each value as a unique category(tick mark) along the axis.classBase class for all charts.classLineChart<X,Y> Line Chart plots a line connecting the data points in a series.final classAn axis class that plots a range of numbers with major tick marks every tickUnit.classDisplays a PieChart.classScatterChart<X,Y> Chart type that plots symbols for the data points in a series.classStackedAreaChart<X,Y> StackedAreaChart is a variation ofAreaChartthat displays trends of the contribution of each value.classStackedBarChart<X,Y> StackedBarChart is a variation ofBarChartthat plots bars indicating data values for a category.classAn axis whose data is defined as Numbers.classXYChart<X,Y> Chart base class for all 2 axis charts. -
Uses of EventTarget in javafx.scene.control
Classes in javafx.scene.control that implement EventTargetModifier and TypeClassDescriptionclassAn accordion is a group ofTitlePanes.classThe Alert class subclasses theDialogclass, and provides support for a number of pre-built dialog types that can be easily shown to users to prompt for a response.classA simple button control.classA ButtonBar is essentially aHBox, with the additional functionality for operating system specific button placement.classBase class for button-like UI Controls, including Hyperlinks, Buttons, ToggleButtons, CheckBoxes, and RadioButtons.classCell<T>classA tri-state selection Control typically skinned as a box with a checkmark or tick mark when checked.classTreeItem subclass that adds support for being in selected, unselected, and indeterminate states.classAMenuItemthat can be toggled between selected and unselected states.classChoiceBox<T>The ChoiceBox is used for presenting the user with a relatively small set of predefined choices from which they may choose.classChoiceDialog<T>A dialog that shows a list of choices to the user, from which they can pick one item at most.classColorPicker control allows the user to select a color from either a standard palette of colors with a simple one click selection OR define their own custom color.classComboBox<T>An implementation of theComboBoxBaseabstract class for the most common form of ComboBox, where a popup list is shown to users providing them with a choice that they may select from.classComboBoxBase<T>Abstract base class for ComboBox-like controls.classA popup control containing an ObservableList of menu items.classBase class for all user interface controls.classclassDateCell is used byDatePickerto render the individual grid cells in the calendar month.classThe DatePicker control allows the user to enter a date as text or to select a date from a calendar popup.classDialog<R>A Dialog in JavaFX wraps aDialogPaneand provides the necessary API to present it to end users.classDialogPane should be considered to be the root node displayed within aDialoginstance.classAn HTML like label which can be a graphic and/or text which responds to rollovers and clicks.classIndexedCell<T>An implementation ofCellwhich contains an index property which maps into the data model underlying the visualization.classLabel is a non-editable text control.classA LabeledControlis one which has as part of its user interface a textual content associated with it.classListCell<T>classListView<T>A ListView displays a horizontal or vertical list of items from which the user may select, or with which the user may interact.classA popup menu of actionable items which is displayed to the user only upon request.classA MenuBar control traditionally is placed at the very top of the user interface, and embedded within it areMenus.classMenuButton is a button which, when clicked or pressed, will show aContextMenu.classMenuItem is intended to be used in conjunction withMenuto provide options to users.classA Pagination control is used for navigation between pages of a single content, which has been divided into smaller parts.classText field that masks entered characters.classAn extension of PopupWindow that allows for CSS styling.protected classThe link between the popup window and the scenegraph.classA specialization of the ProgressIndicator which is represented as a horizontal bar.classA circular control which is used for indicating progress, either infinite (aka indeterminate) or finite.classRadioButtons create a series of items where only one item can be selected.classclassEither a horizontal or vertical bar with increment and decrement buttons and a "thumb" with which the user can interact.classA Control that provides a scrolled, clipped viewport of its contents.classA horizontal or vertical separator line.classAMenuItemthat as the name suggests allows for a horizontal Separator to be embedded within it, by assigning aSeparatorto thecontentproperty of theCustomMenuItemThis is provided for convenience as groups ofmenuitemscan be separated by a separator.classThe Slider Control is used to display a continuous or discrete range of valid numeric choices and allows the user to interact with the control.classSpinner<T>A single line text field that lets the user select a number or an object value from an ordered sequence.classThe SplitMenuButton, like theMenuButtonis closely associated with the concept of selecting aMenuItemfrom a menu.classA control that has two or more sides, each separated by a divider, which can be dragged by the user to give more space to one of the sides, resulting in the other side shrinking by an equal amount.classTabs are placed within aTabPane, where each tab represents a single 'page'.classTableCell<S,T> Represents a single row/column intersection in aTableView.classTableColumn<S,T> ATableViewis made up of a number of TableColumn instances.classTableColumnBase<S,T> Table-like controls (such asTableViewandTreeTableView) are made up of zero or more instances of a concrete TableColumnBase subclass (TableColumnandTreeTableColumn, respectively).classTableRow<T>TableRow is anIndexedCell, but rarely needs to be used by developers creating TableView instances.classTableView<S>The TableView control is designed to visualize an unlimited number of rows of data, broken out into columns.classA control that allows switching between a group ofTabs.classText input component that allows a user to enter multiple lines of plain text.classText input component that allows a user to enter a single line of unformatted text.classAbstract base class for text input controls.classA dialog that shows a text input control to the user.classA TitledPane is a panel with a title that can be opened and closed.classAToggleButtonis a specialized control which has the ability to be selected.classA ToolBar is a control which displays items horizontally or vertically.classTooltips are common UI elements which are typically used for showing additional information about a Node in the scenegraph when the Node is hovered over by the mouse.classTreeCell<T>classTreeItem<T>The model for a single node supplying a hierarchy of values to a control such asTreeView.classTreeTableCell<S,T> Represents a single row/column intersection in aTreeTableView.classTreeTableColumn<S,T> ATreeTableViewis made up of a number of TreeTableColumn instances.classTreeTableRow<T>TreeTableRow is anIndexedCell, but rarely needs to be used by developers creating TreeTableView instances.classThe TreeTableView control is designed to visualize an unlimited number of rows of data, broken out into columns.classTreeView<T>The TreeView control provides a view on to a tree root (of typeTreeItem).Methods in javafx.scene.control with parameters of type EventTargetModifier and TypeMethodDescriptionDialogEvent.copyFor(Object newSource, EventTarget newTarget) DialogEvent.copyFor(Object newSource, EventTarget newTarget, EventType<DialogEvent> type) Creates a copy of the given event with the given fields substituted.Constructors in javafx.scene.control with parameters of type EventTargetModifierConstructorDescriptionScrollToEvent(Object source, EventTarget target, EventType<ScrollToEvent<T>> type, T scrollTarget) Construct a newEventwith the specified event source, target and type.SortEvent(C source, EventTarget target) Constructs a newSortEventwith the specified event source and target. -
Uses of EventTarget in javafx.scene.control.cell
Classes in javafx.scene.control.cell that implement EventTargetModifier and TypeClassDescriptionclassclassCheckBoxTableCell<S,T> classclassA class containing aTreeTableCellimplementation that draws aCheckBoxnode inside the cell, optionally with a label to indicate what the checkbox represents.classclassChoiceBoxTableCell<S,T> classclassA class containing aTreeTableCellimplementation that draws aChoiceBoxnode inside the cell.classclassComboBoxTableCell<S,T> classclassA class containing aTreeTableCellimplementation that draws aComboBoxnode inside the cell.classA class containing aTableCellimplementation that draws aProgressBarnode inside the cell.classA class containing aTreeTableCellimplementation that draws aProgressBarnode inside the cell.classclassTextFieldTableCell<S,T> classclass -
Uses of EventTarget in javafx.scene.control.skin
Classes in javafx.scene.control.skin that implement EventTargetModifier and TypeClassDescriptionclassThis class is used to construct the header of a TableView.classRegion responsible for painting a single column header.classRegion responsible for painting the entire row of column headers.classVirtualFlow<T extends IndexedCell>Implementation of a virtualized container using a cell based mechanism. -
Uses of EventTarget in javafx.scene.image
Classes in javafx.scene.image that implement EventTarget -
Uses of EventTarget in javafx.scene.input
Methods in javafx.scene.input that return EventTargetModifier and TypeMethodDescriptionTouchPoint.getGrabbed()Gets event target which has grabbed this touch point.TouchPoint.getTarget()Gets event target on which the touch event carrying this touch point is fired.Methods in javafx.scene.input with parameters of type EventTargetModifier and TypeMethodDescriptionbooleanTouchPoint.belongsTo(EventTarget target) Distinguishes between touch points targeted to the given node or some of its children from touch points targeted somewhere else.ContextMenuEvent.copyFor(Object newSource, EventTarget newTarget) DragEvent.copyFor(Object newSource, EventTarget newTarget) DragEvent.copyFor(Object source, EventTarget target, Object gestureSource, Object gestureTarget, EventType<DragEvent> eventType) Creates a copy of the given drag event with the given fields substituted.DragEvent.copyFor(Object source, EventTarget target, EventType<DragEvent> type) Creates a copy of the given drag event with the given fields substituted.GestureEvent.copyFor(Object newSource, EventTarget newTarget) Creates and returns a copy of this event with the specified event source and target.InputMethodEvent.copyFor(Object newSource, EventTarget newTarget) KeyEvent.copyFor(Object newSource, EventTarget newTarget) KeyEvent.copyFor(Object source, EventTarget target, EventType<KeyEvent> type) Creates a copy of the given event with the given fields substituted.MouseDragEvent.copyFor(Object newSource, EventTarget newTarget) MouseDragEvent.copyFor(Object newSource, EventTarget newTarget, EventType<? extends MouseEvent> type) MouseEvent.copyFor(Object newSource, EventTarget newTarget) Copies this event for a different source and target.MouseEvent.copyFor(Object newSource, EventTarget newTarget, EventType<? extends MouseEvent> eventType) Creates a copy of the given event with the given fields substituted.RotateEvent.copyFor(Object newSource, EventTarget newTarget) RotateEvent.copyFor(Object newSource, EventTarget newTarget, EventType<RotateEvent> type) Creates a copy of the given event with the given fields substituted.ScrollEvent.copyFor(Object newSource, EventTarget newTarget) ScrollEvent.copyFor(Object newSource, EventTarget newTarget, EventType<ScrollEvent> type) Creates a copy of the given event with the given fields substituted.SwipeEvent.copyFor(Object newSource, EventTarget newTarget) SwipeEvent.copyFor(Object newSource, EventTarget newTarget, EventType<SwipeEvent> type) Creates a copy of the given event with the given fields substituted.TouchEvent.copyFor(Object newSource, EventTarget newTarget) Creates and returns a copy of this event with the specified event source and target.TouchEvent.copyFor(Object newSource, EventTarget newTarget, EventType<TouchEvent> type) Creates a copy of the given event with the given fields substituted.ZoomEvent.copyFor(Object newSource, EventTarget newTarget) ZoomEvent.copyFor(Object newSource, EventTarget newTarget, EventType<ZoomEvent> type) Creates a copy of the given event with the given fields substituted.static MouseDragEventMouseEvent.copyForMouseDragEvent(MouseEvent e, Object source, EventTarget target, EventType<MouseDragEvent> type, Object gestureSource, PickResult pickResult) Creates a copy of this mouse event of MouseDragEvent typevoidTouchPoint.grab(EventTarget target) Grabs this touch point by the given target.Constructors in javafx.scene.input with parameters of type EventTargetModifierConstructorDescriptionContextMenuEvent(Object source, EventTarget target, EventType<ContextMenuEvent> eventType, double x, double y, double screenX, double screenY, boolean keyboardTrigger, PickResult pickResult) Constructs new ContextMenu event.DragEvent(Object source, EventTarget target, EventType<DragEvent> eventType, Dragboard dragboard, double x, double y, double screenX, double screenY, TransferMode transferMode, Object gestureSource, Object gestureTarget, PickResult pickResult) Constructs new DragEvent event.protectedGestureEvent(Object source, EventTarget target, EventType<? extends GestureEvent> eventType) Deprecated.Do not use this constructor.protectedGestureEvent(Object source, EventTarget target, EventType<? extends GestureEvent> eventType, double x, double y, double screenX, double screenY, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean direct, boolean inertia, PickResult pickResult) Constructs new GestureEvent event.InputEvent(Object source, EventTarget target, EventType<? extends InputEvent> eventType) Creates new instance of InputEvent.InputMethodEvent(Object source, EventTarget target, EventType<InputMethodEvent> eventType, List<InputMethodTextRun> composed, String committed, int caretPosition) Constructs new InputMethodEvent event.KeyEvent(Object source, EventTarget target, EventType<KeyEvent> eventType, String character, String text, KeyCode code, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown) Constructs a newKeyEventevent from the specified parameters.MouseDragEvent(Object source, EventTarget target, EventType<MouseDragEvent> eventType, double x, double y, double screenX, double screenY, MouseButton button, int clickCount, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean primaryButtonDown, boolean middleButtonDown, boolean secondaryButtonDown, boolean backButtonDown, boolean forwardButtonDown, boolean synthesized, boolean popupTrigger, PickResult pickResult, Object gestureSource) Constructs new MouseDragEvent event.MouseDragEvent(Object source, EventTarget target, EventType<MouseDragEvent> eventType, double x, double y, double screenX, double screenY, MouseButton button, int clickCount, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean primaryButtonDown, boolean middleButtonDown, boolean secondaryButtonDown, boolean synthesized, boolean popupTrigger, PickResult pickResult, Object gestureSource) Constructs new MouseDragEvent event.MouseEvent(Object source, EventTarget target, EventType<? extends MouseEvent> eventType, double x, double y, double screenX, double screenY, MouseButton button, int clickCount, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean primaryButtonDown, boolean middleButtonDown, boolean secondaryButtonDown, boolean backButtonDown, boolean forwardButtonDown, boolean synthesized, boolean popupTrigger, boolean stillSincePress, PickResult pickResult) Constructs new MouseEvent event.MouseEvent(Object source, EventTarget target, EventType<? extends MouseEvent> eventType, double x, double y, double screenX, double screenY, MouseButton button, int clickCount, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean primaryButtonDown, boolean middleButtonDown, boolean secondaryButtonDown, boolean synthesized, boolean popupTrigger, boolean stillSincePress, PickResult pickResult) Constructs new MouseEvent event.PickResult(EventTarget target, double sceneX, double sceneY) Creates a pick result for a 2D case where no additional information is needed.RotateEvent(Object source, EventTarget target, EventType<RotateEvent> eventType, double x, double y, double screenX, double screenY, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean direct, boolean inertia, double angle, double totalAngle, PickResult pickResult) Constructs new RotateEvent event.ScrollEvent(Object source, EventTarget target, EventType<ScrollEvent> eventType, double x, double y, double screenX, double screenY, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean direct, boolean inertia, double deltaX, double deltaY, double totalDeltaX, double totalDeltaY, ScrollEvent.HorizontalTextScrollUnits textDeltaXUnits, double textDeltaX, ScrollEvent.VerticalTextScrollUnits textDeltaYUnits, double textDeltaY, int touchCount, PickResult pickResult) Constructs new ScrollEvent event.SwipeEvent(Object source, EventTarget target, EventType<SwipeEvent> eventType, double x, double y, double screenX, double screenY, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean direct, int touchCount, PickResult pickResult) Constructs new SwipeEvent event.TouchEvent(Object source, EventTarget target, EventType<TouchEvent> eventType, TouchPoint touchPoint, List<TouchPoint> touchPoints, int eventSetId, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown) Constructs new TouchEvent event.TouchPoint(int id, TouchPoint.State state, double x, double y, double screenX, double screenY, EventTarget target, PickResult pickResult) Creates new instance of TouchPoint.ZoomEvent(Object source, EventTarget target, EventType<ZoomEvent> eventType, double x, double y, double screenX, double screenY, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean direct, boolean inertia, double zoomFactor, double totalZoomFactor, PickResult pickResult) Constructs new ZoomEvent event. -
Uses of EventTarget in javafx.scene.layout
Classes in javafx.scene.layout that implement EventTargetModifier and TypeClassDescriptionclassAnchorPane allows the edges of child nodes to be anchored to an offset from the anchor pane's edges.classBorderPane lays out children in top, left, right, bottom, and center positions.classFlowPane lays out its children in a flow that wraps at the flowpane's boundary.classGridPane lays out its children within a flexible grid of rows and columns.classHBox lays out its children in a single horizontal row.classBase class for layout panes which need to expose the children list as public so that users of the subclass can freely add/remove children.classRegion is the base class for all JavaFX Node-based UI Controls, and all layout containers.classStackPane lays out its children in a back-to-front stack.classTilePane lays out its children in a grid of uniformly sized "tiles".classVBox lays out its children in a single vertical column. -
Uses of EventTarget in javafx.scene.media
Classes in javafx.scene.media that implement EventTargetModifier and TypeClassDescriptionclassMethods in javafx.scene.media with parameters of type EventTargetModifier and TypeMethodDescriptionMediaErrorEvent.copyFor(Object newSource, EventTarget newTarget) -
Uses of EventTarget in javafx.scene.shape
Classes in javafx.scene.shape that implement EventTargetModifier and TypeClassDescriptionclassTheArcclass represents a 2D arc object, defined by a center point, start angle (in degrees), angular extent (length of the arc in degrees), and an arc type (ArcType.OPEN,ArcType.CHORD, orArcType.ROUND).classTheBoxclass defines a 3 dimensional box with the specified size.classTheCircleclass creates a new circle with the specified radius and center location measured in pixels.classTheCubiCurveclass defines a cubic Bézier parametric curve segment in (x,y) coordinate space.classTheCylinderclass defines a 3 dimensional cylinder with the specified size.classTheEllipseclass creates a new ellipse with the specified size and location in pixelsclassThis Line represents a line segment in(x,y)coordinate space.classTheMeshViewclass defines a surface with the specified 3D mesh data.classThePathclass represents a simple shape and provides facilities required for basic construction and management of a geometric path.classCreates a polygon, defined by an array of x,y coordinates.classCreates a polyline, defined by the array of the segment points.classTheQuadcurveclass defines a quadratic Bézier parametric curve segment in (x,y) coordinate space.classTheRectangleclass defines a rectangle with the specified size and location.classTheShapeclass provides definitions of common properties for objects that represent some form of geometric shape.classTheShape3Dbase class provides definitions of common properties for objects that represent some form of 3D geometric shape.classTheSphereclass defines a 3 dimensional sphere with the specified size.classTheSVGPathclass represents a simple shape that is constructed by parsing SVG path data from a String. -
Uses of EventTarget in javafx.scene.text
Classes in javafx.scene.text that implement EventTarget -
Uses of EventTarget in javafx.scene.transform
Classes in javafx.scene.transform that implement EventTargetModifier and TypeClassDescriptionclassTheAffineclass represents a general affine transform.classThis class represents anAffineobject that rotates coordinates around an anchor point.classThis class represents anAffineobject that scales coordinates by the specified factors.classThis class represents anAffineobject that shears coordinates by the specified multipliers.classThis class is a base class for different affine transformations.classThis class represents anAffineobject that translates coordinates by the specified factors.Constructors in javafx.scene.transform with parameters of type EventTargetModifierConstructorDescriptionTransformChangedEvent(Object source, EventTarget target) Construct a newTransformChangedEventwith the specified event source and target. -
Uses of EventTarget in javafx.scene.web
Classes in javafx.scene.web that implement EventTargetModifier and TypeClassDescriptionclassA control that allows for users to edit text, and apply styling to this text.final class -
Uses of EventTarget in javafx.stage
Classes in javafx.stage that implement EventTargetModifier and TypeClassDescriptionclassA Popup is a special window-like container for a scene graph.classPopupWindow is the parent for a variety of different types of popup based windows includingPopupandTooltipandContextMenu.classThe JavaFXStageclass is the top level JavaFX container.classA top level window within which a scene is hosted, and with which the user interacts.Methods in javafx.stage with parameters of type EventTargetModifier and TypeMethodDescriptionWindowEvent.copyFor(Object newSource, EventTarget newTarget) WindowEvent.copyFor(Object newSource, EventTarget newTarget, EventType<WindowEvent> type) Creates a copy of the given event with the given fields substituted.