Spec-Zone .ru
спецификации, руководства, описания, API
|
Package | Description |
---|---|
javafx.event |
Provides basic framework for FX events, their delivery and handling.
|
javafx.scene |
Provides the core set of base
classes for the JavaFX Scene Graph API.
|
javafx.scene.control |
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.
|
javafx.scene.input |
Provides the set of classes for mouse and keyboard input event handling.
|
javafx.scene.media |
Provides the set of classes for integrating audio and video into Java FX
Applications.
|
javafx.scene.web |
This package provides means for loading and displaying Web content.
|
javafx.stage |
Provides the top-level container classes for JavaFX content.
|
Modifier and Type | Field and Description |
---|---|
static EventType<ActionEvent> |
ActionEvent.ACTION
The only valid EventType for the ActionEvent.
|
static EventType<Event> |
Event.ANY
Common supertype for all event types.
|
private EventType<? extends Event> |
EventBuilder.eventType |
protected EventType<? extends Event> |
Event.eventType
Type of the event.
|
static EventType<Event> |
EventType.ROOT
The root event type.
|
private EventType<? super T> |
EventTypeBuilder.superType |
private EventType<? super T> |
EventType.superType |
Modifier and Type | Method and Description |
---|---|
EventType<T> |
EventTypeBuilder.build()
Make an instance of
EventType based on the properties set on this builder. |
EventType<? extends Event> |
Event.getEventType()
Gets the event type of this event.
|
EventType<? super T> |
EventType.getSuperType()
Gets the super type of this event type.
|
Modifier and Type | Method and Description |
---|---|
B |
EventBuilder.eventType(EventType<? extends Event> x)
Set the value of the
eventType property for the instance constructed by this builder. |
B |
EventTypeBuilder.superType(EventType<? super T> x)
Set the value of the
superType property for the instance constructed by this builder. |
Constructor and Description |
---|
Event(EventType<? extends Event> eventType)
Construct a new
Event with the specified event type. |
Event(java.lang.Object source,
EventTarget target,
EventType<? extends Event> eventType)
Construct a new
Event with the specified event source, target
and type. |
EventType(EventType<? super T> superType)
Constructs a new
EventType with the specified super type and
the name set to null . |
EventType(EventType<? super T> superType,
java.lang.String name)
Constructs a new
EventType with the specified super type and
name. |
EventType(java.lang.String name,
EventType<? super T> superType) |
Modifier and Type | Method and Description |
---|---|
<T extends Event> |
Scene.addEventFilter(EventType<T> eventType,
EventHandler<? super T> eventFilter)
Registers an event filter to this scene.
|
<T extends Event> |
Node.addEventFilter(EventType<T> eventType,
EventHandler<? super T> eventFilter)
Registers an event filter to this node.
|
<T extends Event> |
Scene.addEventHandler(EventType<T> eventType,
EventHandler<? super T> eventHandler)
Registers an event handler to this scene.
|
<T extends Event> |
Node.addEventHandler(EventType<T> eventType,
EventHandler<? super T> eventHandler)
Registers an event handler to this node.
|
<T extends Event> |
Scene.removeEventFilter(EventType<T> eventType,
EventHandler<? super T> eventFilter)
Unregisters a previously registered event filter from this scene.
|
<T extends Event> |
Node.removeEventFilter(EventType<T> eventType,
EventHandler<? super T> eventFilter)
Unregisters a previously registered event filter from this node.
|
<T extends Event> |
Scene.removeEventHandler(EventType<T> eventType,
EventHandler<? super T> eventHandler)
Unregisters a previously registered event handler from this scene.
|
<T extends Event> |
Node.removeEventHandler(EventType<T> eventType,
EventHandler<? super T> eventHandler)
Unregisters a previously registered event handler from this node.
|
protected <T extends Event> |
Scene.setEventHandler(EventType<T> eventType,
EventHandler<? super T> eventHandler)
Sets the handler to use for this event type.
|
protected <T extends Event> |
Node.setEventHandler(EventType<T> eventType,
EventHandler<? super T> eventHandler)
Sets the handler to use for this event type.
|
Modifier and Type | Field and Description |
---|---|
private static EventType<?> |
TreeItem.BRANCH_COLLAPSED_EVENT |
private static EventType<?> |
TreeItem.BRANCH_EXPANDED_EVENT |
private static EventType<?> |
TreeItem.CHILDREN_MODIFICATION_EVENT |
static EventType<Event> |
Tab.CLOSED_EVENT
Called when a user closes this tab.
|
private static EventType<?> |
TreeView.EDIT_ANY_EVENT |
private static EventType<?> |
TableColumn.EDIT_ANY_EVENT |
private static EventType<?> |
ListView.EDIT_ANY_EVENT |
private static EventType<?> |
TreeView.EDIT_CANCEL_EVENT |
private static EventType<?> |
TableColumn.EDIT_CANCEL_EVENT |
private static EventType<?> |
ListView.EDIT_CANCEL_EVENT |
private static EventType<?> |
TreeView.EDIT_COMMIT_EVENT |
private static EventType<?> |
TableColumn.EDIT_COMMIT_EVENT |
private static EventType<?> |
ListView.EDIT_COMMIT_EVENT |
private static EventType<?> |
TreeView.EDIT_START_EVENT |
private static EventType<?> |
TableColumn.EDIT_START_EVENT |
private static EventType<?> |
ListView.EDIT_START_EVENT |
private static EventType<?> |
TreeItem.GRAPHIC_CHANGED_EVENT |
static EventType<Event> |
Menu.ON_HIDDEN
Called when the contentMenu for this menu is hidden.
|
static EventType<Event> |
Menu.ON_HIDING
Called when the contentMenu for this menu will be hidden.
|
static EventType<Event> |
Menu.ON_SHOWING
Called when the contentMenu for this menu will be shown.
|
static EventType<Event> |
Menu.ON_SHOWN
Called when the contentMenu for this menu shows.
|
static EventType<Event> |
Tab.SELECTION_CHANGED_EVENT
Called when the tab becomes selected or unselected.
|
private static EventType |
TreeItem.TREE_ITEM_COUNT_CHANGE_EVENT |
private static EventType |
TreeItem.TREE_NOTIFICATION_EVENT |
private static EventType<?> |
TreeItem.VALUE_CHANGED_EVENT |
Modifier and Type | Method and Description |
---|---|
static <T> EventType<TreeItem.TreeModificationEvent<T>> |
TreeItem.branchCollapsedEvent()
An EventType used when the TreeItem receives a modification to its
expanded property, such that the TreeItem is now in the collapsed state.
|
static <T> EventType<TreeItem.TreeModificationEvent<T>> |
TreeItem.branchExpandedEvent()
An EventType used when the TreeItem receives a modification to its
expanded property, such that the TreeItem is now in the expanded state.
|
static <T> EventType<TreeItem.TreeModificationEvent<T>> |
TreeItem.childrenModificationEvent()
An EventType used when the TreeItem receives a direct modification to its
children list.
|
static <S,T> EventType<TableColumn.CellEditEvent<S,T>> |
TableColumn.editAnyEvent()
Parent event for any TableColumn edit event.
|
static <T> EventType<TreeView.EditEvent<T>> |
TreeView.editAnyEvent()
An EventType that indicates some edit event has occurred.
|
static <T> EventType<ListView.EditEvent<T>> |
ListView.editAnyEvent()
An EventType that indicates some edit event has occurred.
|
static <S,T> EventType<TableColumn.CellEditEvent<S,T>> |
TableColumn.editCancelEvent()
Indicates that the editing has been canceled, meaning that no change should
be made to the backing data source.
|
static <T> EventType<TreeView.EditEvent<T>> |
TreeView.editCancelEvent()
An EventType used to indicate that an edit event has just been canceled
within the TreeView upon which the event was fired.
|
static <T> EventType<ListView.EditEvent<T>> |
ListView.editCancelEvent()
An EventType used to indicate that an edit event has just been canceled
within the ListView upon which the event was fired.
|
static <S,T> EventType<TableColumn.CellEditEvent<S,T>> |
TableColumn.editCommitEvent()
Indicates that the editing has been committed by the user, meaning that
a change should be made to the backing data source to reflect the new
data.
|
static <T> EventType<TreeView.EditEvent<T>> |
TreeView.editCommitEvent()
An EventType that is used to indicate that an edit in a TreeView has been
committed.
|
static <T> EventType<ListView.EditEvent<T>> |
ListView.editCommitEvent()
An EventType used to indicate that an edit event has been committed
within the ListView upon which the event was fired.
|
static <S,T> EventType<TableColumn.CellEditEvent<S,T>> |
TableColumn.editStartEvent()
Indicates that the user has performed some interaction to start an edit
event, or alternatively the
TableView.edit(int, javafx.scene.control.TableColumn)
method has been called. |
static <T> EventType<TreeView.EditEvent<T>> |
TreeView.editStartEvent()
An EventType used to indicate that an edit event has started within the
TreeView upon which the event was fired.
|
static <T> EventType<ListView.EditEvent<T>> |
ListView.editStartEvent()
An EventType used to indicate that an edit event has started within the
ListView upon which the event was fired.
|
static <T> EventType<TreeItem.TreeModificationEvent<T>> |
TreeItem.graphicChangedEvent()
An EventType used when the TreeItem receives a modification to its
graphic property.
|
static <T> EventType<TreeItem.TreeModificationEvent<T>> |
TreeItem.treeItemCountChangeEvent()
The general EventType used when the TreeItem receives a modification that
results in the number of children being visible changes.
|
static <T> EventType<TreeItem.TreeModificationEvent<T>> |
TreeItem.treeNotificationEvent()
The base EventType used to indicate that an event has occurred within a
TreeItem.
|
static <T> EventType<TreeItem.TreeModificationEvent<T>> |
TreeItem.valueChangedEvent()
An EventType used when the TreeItem receives a modification to its
value property.
|
Modifier and Type | Method and Description |
---|---|
<E extends Event> |
TreeItem.addEventHandler(EventType<E> eventType,
EventHandler<E> eventHandler)
Registers an event handler to this TreeItem.
|
<E extends Event> |
TableColumn.addEventHandler(EventType<E> eventType,
EventHandler<E> eventHandler)
Registers an event handler to this TableColumn.
|
<E extends Event> |
MenuItem.addEventHandler(EventType<E> eventType,
EventHandler<E> eventHandler)
Registers an event handler to this MenuItem.
|
<E extends Event> |
Menu.addEventHandler(EventType<E> eventType,
EventHandler<E> eventHandler) |
<E extends Event> |
TreeItem.removeEventHandler(EventType<E> eventType,
EventHandler<E> eventHandler)
Unregisters a previously registered event handler from this TreeItem.
|
<E extends Event> |
TableColumn.removeEventHandler(EventType<E> eventType,
EventHandler<E> eventHandler)
Unregisters a previously registered event handler from this TableColumn.
|
<E extends Event> |
MenuItem.removeEventHandler(EventType<E> eventType,
EventHandler<E> eventHandler)
Unregisters a previously registered event handler from this MenuItem.
|
<E extends Event> |
Menu.removeEventHandler(EventType<E> eventType,
EventHandler<E> eventHandler) |
protected <E extends Event> |
Tab.setEventHandler(EventType<E> eventType,
EventHandler<E> eventHandler)
Deprecated.
This is an internal API that is not intended for use and will be removed in the next version
|
Constructor and Description |
---|
ListView.EditEvent(ListView<T> source,
EventType<? extends ListView.EditEvent<T>> eventType,
T newValue,
int editIndex)
Creates a new EditEvent instance to represent an edit event.
|
TableColumn.CellEditEvent(TableView<S> table,
TablePosition<S,T> pos,
EventType<TableColumn.CellEditEvent> eventType,
T newValue)
Creates a new event that can be subsequently fired to the relevant listeners.
|
TreeItem.TreeModificationEvent(EventType<? extends Event> eventType,
TreeItem<T> treeItem)
Constructs a basic TreeModificationEvent - this is useful in situations
where the tree item has not received a new value, has not changed
between expanded/collapsed states, and whose children has not changed.
|
TreeItem.TreeModificationEvent(EventType<? extends Event> eventType,
TreeItem<T> treeItem,
boolean expanded)
Constructs a TreeModificationEvent for when the TreeItem has had its
TreeItem.expandedProperty() changed. |
TreeItem.TreeModificationEvent(EventType<? extends Event> eventType,
TreeItem<T> treeItem,
java.util.List<? extends TreeItem<T>> added,
java.util.List<? extends TreeItem<T>> removed)
Constructs a TreeModificationEvent for when the TreeItem has had its
children list changed.
|
TreeItem.TreeModificationEvent(EventType<? extends Event> eventType,
TreeItem<T> treeItem,
T newValue)
Constructs a TreeModificationEvent for when the TreeItem has had its
TreeItem.valueProperty() changed. |
TreeView.EditEvent(TreeView<T> source,
EventType<? extends TreeView.EditEvent> eventType,
TreeItem<T> treeItem,
T oldValue,
T newValue)
Creates a new EditEvent instance to represent an edit event.
|
Modifier and Type | Field and Description |
---|---|
static EventType<ScrollEvent> |
ScrollEvent.ANY
Common supertype for all scroll event types.
|
static EventType<MouseEvent> |
MouseEvent.ANY
Common supertype for all mouse event types.
|
static EventType<KeyEvent> |
KeyEvent.ANY
Common supertype for all key event types.
|
static EventType<InputEvent> |
InputEvent.ANY
Common supertype for all input event types.
|
static EventType<DragEvent> |
DragEvent.ANY
Common supertype for all drag event types.
|
static EventType<MouseEvent> |
MouseEvent.DRAG_DETECTED
This event is delivered to a node that is identified as a potential
source of drag and drop gesture.
|
static EventType<DragEvent> |
DragEvent.DRAG_DONE
This event occurs on drag-and-drop gesture source after its data has
been dropped on a drop target.
|
static EventType<DragEvent> |
DragEvent.DRAG_DROPPED
This event occurs when the mouse button is released during drag and drop
gesture on a drop target.
|
static EventType<DragEvent> |
DragEvent.DRAG_ENTERED
This event occurs when drag gesture enters a node.
|
static EventType<DragEvent> |
DragEvent.DRAG_ENTERED_TARGET
This event occurs when drag gesture enters a node.
|
static EventType<DragEvent> |
DragEvent.DRAG_EXITED
This event occurs when drag gesture exits a node.
|
static EventType<DragEvent> |
DragEvent.DRAG_EXITED_TARGET
This event occurs when drag gesture exitenters a node.
|
static EventType<DragEvent> |
DragEvent.DRAG_OVER
This event occurs when drag gesture progresses within this node.
|
static EventType<MouseEvent> |
MouseEvent.IMPL_MOUSE_WHEEL_ROTATED
Deprecated.
This is an internal API that is not intended for use and will be removed in the next version
|
static EventType<InputMethodEvent> |
InputMethodEvent.INPUT_METHOD_TEXT_CHANGED
The only valid EventType for the InputMethodEvent.
|
static EventType<KeyEvent> |
KeyEvent.KEY_PRESSED
This event occurs when a key has been pressed.
|
static EventType<KeyEvent> |
KeyEvent.KEY_RELEASED
This event occurs when a key has been released.
|
static EventType<KeyEvent> |
KeyEvent.KEY_TYPED
This event occurs when a key has been typed (pressed and released).
|
static EventType<MouseEvent> |
MouseEvent.MOUSE_CLICKED
This event occurs when mouse button has been clicked (pressed and
released on the same node).
|
static EventType<MouseEvent> |
MouseEvent.MOUSE_DRAGGED
This event occurs when mouse moves with a pressed button.
|
static EventType<MouseEvent> |
MouseEvent.MOUSE_ENTERED
This event occurs when mouse enters a node.
|
static EventType<MouseEvent> |
MouseEvent.MOUSE_ENTERED_TARGET
This event occurs when mouse enters a node.
|
static EventType<MouseEvent> |
MouseEvent.MOUSE_EXITED
This event occurs when mouse exits a node.
|
static EventType<MouseEvent> |
MouseEvent.MOUSE_EXITED_TARGET
This event occurs when mouse exits a node.
|
static EventType<MouseEvent> |
MouseEvent.MOUSE_MOVED
This event occurs when mouse moves within a node and no buttons
are pressed.
|
static EventType<MouseEvent> |
MouseEvent.MOUSE_PRESSED
This event occurs when mouse button is pressed.
|
static EventType<MouseEvent> |
MouseEvent.MOUSE_RELEASED
This event occurs when mouse button is released.
|
static EventType<ScrollEvent> |
ScrollEvent.SCROLL
This event occurs when user performs a scrolling action such as
rotating mouse wheel.
|
Modifier and Type | Method and Description |
---|---|
static DragEvent |
DragEvent.impl_copy(java.lang.Object source,
EventTarget target,
DragEvent evt,
EventType<DragEvent> eventType)
Deprecated.
This is an internal API that is not intended for use and will be removed in the next version
|
static MouseEvent |
MouseEvent.impl_copy(java.lang.Object source,
EventTarget target,
MouseEvent evt,
EventType<? extends MouseEvent> impl_EventType)
Deprecated.
This is an internal API that is not intended for use and will be removed in the next version
|
static DragEvent |
DragEvent.impl_copy(java.lang.Object source,
EventTarget target,
java.lang.Object gestureSource,
java.lang.Object gestureTarget,
DragEvent evt,
EventType<DragEvent> eventType)
Deprecated.
This is an internal API that is not intended for use and will be removed in the next version
|
static DragEvent |
DragEvent.impl_copy(java.lang.Object source,
EventTarget target,
java.lang.Object gestureSource,
java.lang.Object gestureTarget,
TransferMode transferMode,
DragEvent evt,
EventType<DragEvent> eventType)
Deprecated.
This is an internal API that is not intended for use and will be removed in the next version
|
static DragEvent |
DragEvent.impl_create(EventType<DragEvent> _eventType,
java.lang.Object _source,
EventTarget _target,
java.lang.Object _gestureSource,
java.lang.Object _gestureTarget,
double _x,
double _y,
double _screenX,
double _screenY,
TransferMode _transferMode,
Dragboard _dragboard,
com.sun.javafx.tk.TKDropEvent _tkDropEvent)
Deprecated.
This is an internal API that is not intended for use and will be removed in the next version
|
private static DragEvent |
DragEvent.impl_dragEvent(java.lang.Object _source,
EventTarget _target,
java.lang.Object _gestureSource,
java.lang.Object _gestureTarget,
double _x,
double _y,
double _screenX,
double _screenY,
TransferMode _transferMode,
EventType<? extends DragEvent> _eventType,
Dragboard _dragboard) |
static InputMethodEvent |
InputMethodEvent.impl_inputMethodEvent(EventTarget target,
ObservableList<InputMethodTextRun> composed,
java.lang.String committed,
int caretPosition,
EventType<? extends InputMethodEvent> eventType)
Deprecated.
This is an internal API that is not intended for use and will be removed in the next version
|
static KeyEvent |
KeyEvent.impl_keyEvent(EventTarget target,
java.lang.String character,
java.lang.String text,
int code,
boolean shiftDown,
boolean controlDown,
boolean altDown,
boolean metaDown,
EventType<? extends KeyEvent> eventType)
Deprecated.
This is an internal API that is not intended for use and will be removed in the next version
|
static MouseEvent |
MouseEvent.impl_mouseEvent(double _x,
double _y,
double _screenX,
double _screenY,
double _wheelRotation,
MouseButton _button,
int _clickCount,
boolean _shiftDown,
boolean _controlDown,
boolean _altDown,
boolean _metaDown,
boolean _popupTrigger,
boolean _primaryButtonDown,
boolean _middleButtonDown,
boolean _secondaryButtonDown,
EventType<? extends MouseEvent> _eventType)
Deprecated.
This is an internal API that is not intended for use and will be removed in the next version
|
private static MouseEvent |
MouseEvent.impl_mouseEvent(java.lang.Object _source,
EventTarget _target,
double _x,
double _y,
double _screenX,
double _screenY,
double _wheelRotation,
MouseButton _button,
int _clickCount,
boolean _stillSincePress,
boolean _shiftDown,
boolean _controlDown,
boolean _altDown,
boolean _metaDown,
boolean _popupTrigger,
boolean _primaryButtonDown,
boolean _middleButtonDown,
boolean _secondaryButtonDown,
EventType<? extends MouseEvent> _eventType)
Deprecated.
This is an internal API that is not intended for use and will be removed in the next version
|
Constructor and Description |
---|
DragEvent(EventType<? extends DragEvent> eventType) |
DragEvent(java.lang.Object source,
EventTarget target,
EventType<? extends DragEvent> eventType) |
InputEvent(EventType<? extends InputEvent> eventType)
Creates new instance of InputEvent.
|
InputEvent(java.lang.Object source,
EventTarget target,
EventType<? extends InputEvent> eventType)
Creates new instance of InputEvent.
|
InputMethodEvent(EventType<? extends InputMethodEvent> eventType) |
InputMethodEvent(java.lang.Object source,
EventTarget target,
EventType<? extends InputMethodEvent> eventType) |
KeyEvent(EventType<? extends KeyEvent> eventType) |
KeyEvent(java.lang.Object source,
EventTarget target,
EventType<? extends KeyEvent> eventType) |
MouseEvent(EventType<? extends MouseEvent> eventType) |
MouseEvent(java.lang.Object source,
EventTarget target,
EventType<? extends MouseEvent> eventType) |
ScrollEvent(EventType<? extends ScrollEvent> eventType) |
ScrollEvent(java.lang.Object source,
EventTarget target,
EventType<? extends ScrollEvent> eventType) |
Modifier and Type | Field and Description |
---|---|
static EventType<MediaErrorEvent> |
MediaErrorEvent.MEDIA_ERROR
The only valid event type for the
MediaErrorEvent . |
Modifier and Type | Field and Description |
---|---|
static EventType<WebEvent> |
WebEvent.ALERT
This event occurs when a script calls the JavaScript
alert
function. |
static EventType<WebEvent> |
WebEvent.ANY
Common supertype for all Web event types.
|
static EventType<WebEvent> |
WebEvent.RESIZED
This event occurs when a script changes location of the JavaScript
window object. |
static EventType<WebEvent> |
WebEvent.STATUS_CHANGED
This event occurs when a script changes status line text.
|
static EventType<WebEvent> |
WebEvent.VISIBILITY_CHANGED
This event occurs when a script changes visibility of the JavaScript
window object. |
Constructor and Description |
---|
WebEvent(java.lang.Object source,
EventType<WebEvent> type,
T data)
Creates a new event object.
|
Modifier and Type | Field and Description |
---|---|
static EventType<WindowEvent> |
WindowEvent.ANY
Common supertype for all window event types.
|
static EventType<WindowEvent> |
WindowEvent.WINDOW_CLOSE_REQUEST
This event is delivered to a
window when there is an external request to close that window.
|
static EventType<WindowEvent> |
WindowEvent.WINDOW_HIDDEN
This event occurs on window just after it is hidden.
|
static EventType<WindowEvent> |
WindowEvent.WINDOW_HIDING
This event occurs on window just before it is hidden.
|
static EventType<WindowEvent> |
WindowEvent.WINDOW_SHOWING
This event occurs on window just before it is shown.
|
static EventType<WindowEvent> |
WindowEvent.WINDOW_SHOWN
This event occurs on window just after it is shown.
|
Modifier and Type | Method and Description |
---|---|
<T extends Event> |
Window.addEventFilter(EventType<T> eventType,
EventHandler<? super T> eventFilter)
Registers an event filter to this node.
|
<T extends Event> |
Window.addEventHandler(EventType<T> eventType,
EventHandler<? super T> eventHandler)
Registers an event handler to this node.
|
<T extends Event> |
Window.removeEventFilter(EventType<T> eventType,
EventHandler<? super T> eventFilter)
Unregisters a previously registered event filter from this node.
|
<T extends Event> |
Window.removeEventHandler(EventType<T> eventType,
EventHandler<? super T> eventHandler)
Unregisters a previously registered event handler from this node.
|
protected <T extends Event> |
Window.setEventHandler(EventType<T> eventType,
EventHandler<? super T> eventHandler)
Sets the handler to use for this event type.
|
Constructor and Description |
---|
WindowEvent(Window source,
EventType<? extends Event> eventType)
Construct a new
Event with the specified event source, target
and type. |
Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to