Package javafx.event
Interface EventTarget
- All Known Subinterfaces:
CompositeEventTarget
- All Known Implementing Classes:
Alert
,AnchorPane
,Arc
,BorderPane
,Button
,ButtonBar
,ButtonBase
,Canvas
,Cell
,CheckBox
,ChoiceBox
,Circle
,ComboBoxBase
,CompositeEventTargetImpl
,ContextMenu
,ContextMenuContent
,ContextMenuContent.MenuItemContainer
,Control
,CustomMenuItem
,DatePicker
,Dialog
,DialogPane
,FlowPane
,GridPane
,Group
,HBox
,Hyperlink
,ImageView
,Label
,Labeled
,LabeledText
,Line
,MediaView
,Menu
,MenuItem
,Node
,Pane
,Parent
,PasswordField
,Path
,PopupControl
,PopupControl.CSSBridge
,PopupWindow
,ProgressBar
,ProgressIndicator
,RadioButton
,Rectangle
,Region
,Scene
,ScrollPane
,Separator
,SeparatorMenuItem
,Shape
,Slider
,SplitPane
,StackPane
,Stage
,SubtractShape
,SVGPath
,Tab
,TabPane
,Text
,TextArea
,TextField
,TextFlow
,TextInputControl
,TextInputDialog
,TitledPane
,ToggleButton
,ToolkitTextBox
,VBox
,WebView
,Window
public interface EventTarget
Represents an event target.
- Since:
- JavaFX 2.0
-
Method Summary
Modifier and TypeMethodDescriptionConstruct an event dispatch chain for this target.
-
Method Details
-
buildEventDispatchChain
Construct an event dispatch chain for this target. The event dispatch chain contains event dispatchers which might be interested in processing of events targeted at thisEventTarget
. This event target is not automatically added to the chain, so if it wants to process events, it needs to add anEventDispatcher
for itself to the chain.In the case the event target is part of some hierarchy, the chain for it is usually built from event dispatchers collected from the root of the hierarchy to the event target.
The event dispatch chain is constructed by modifications to the provided initial event dispatch chain. The returned chain should have the initial chain at its end so the dispatchers should be prepended to the initial chain.
The caller shouldn't assume that the initial chain remains unchanged nor that the returned value will reference a different chain.
- Parameters:
tail
- the initial chain to build from- Returns:
- the resulting event dispatch chain for this target
-