New API since JavaFX 9
Contents
Show API added in:
-
ModuleAdded inDescription9Defines the base APIs for the JavaFX UI toolkit, including APIs for bindings, properties, collections, and events.9Defines the UI controls, charts, and skins that are available for the JavaFX UI toolkit.9Defines the FXML APIs for the JavaFX UI toolkit.9Defines the core scenegraph APIs for the JavaFX UI toolkit (such as layout containers, application lifecycle, shapes, transformations, canvas, input, painting, image handling, and effects), as well as APIs for animation, css, concurrency, geometry, printing, and windowing.9Defines APIs for playback of media and audio content, as part of the JavaFX UI toolkit, including
MediaView
andMediaPlayer
.99Defines APIs for the WebView functionality contained within the the JavaFX UI toolkit.
-
InterfaceAdded inDescription9Load listener interface.21Represents a cancel or cleanup operation for an action that can be cancelled or that allocated resources.
-
ClassAdded inDescription9A compound selector which behaves according to the CSS standard.9Converter to convert a
String
to aBoolean
.9Converter to convert aString
to aColor
.9Converter to convert aString
to aCursor
.9Converter to convert a combination of color and brightness values to a derivedColor
.9Converter to combine twoSize
values.9Converter to Convert aSize
toDuration
.9Converter to convert a string representation of anEffect
to anEffect
.9Converter to convert aDropShadow
effect.9Converter to convert anInnerShadow
effect.9Converter to convert a string representation of anEnum
to anEnum
.9Converter to convert a parsed representation of aFont
to aFont
.9Converter to convert a parsed font size value to aNumber
object.9Converter to convert aString
value to aFontPosture
object.9Converter to convert aString
value to aFontWeight
object.9Converter to convert a parsed value array of 1 to 4 size components to anInsets
.9Converter to convert an array of parsed values, each of which is an array of 1 to 4 size components, to an array ofInsets
objects.9Converter to convert a parsed representation of color ladder values to aColor
.9Converter to convert a parsed representation of aPaint
to aPaint
.9Converter to convert image pattern parsed values to aPaint
object.9Converter to convert linear gradient parsed values to aPaint
object.9Converter to convert radial gradient parsed values to aPaint
object.9Converter to convert repeating image pattern parsed values to aPaint
object.9Converter to convert a sequence of parsed values to an array ofPaint
objects.9Converter to convert a SVG shape string into aShape
object.9Converter to convert aSize
to aNumber
.9Converter to convert a sequence of sizes to an array ofNumber
.9Converter to convert aStop
from aSize
and aColor
.9Converter for quoted strings which may have embedded unicode characters.9Converter to convert a sequence ofString
s to an array ofString
s.9Converter to convert a parsed value representing URL to a URL string that is resolved relative to the location of the stylesheet.9Converter to convert a sequence of URLs to an array ofString
s.9A parser for a CSS document string.9This class serves as a container of a CSS property and its value.9A FontFace is a @font-face definition from CSS file9Used byRule
to determine whether or not the selector applies to a given object.9A Rule is a collection of CSSSelector
s andDeclaration
s.9Used byCSSRule
to determine whether or not theSelector
applies to a given object.9A simple selector which behaves according to the CSS standard.9Represents a size specified in a particular unit, such as 14px or 0.2em.9A Style is just the selector and declaration from a Rule.9A class that containsStyleClass
information.9The StringStore class.9A stylesheet which can apply properties to a tree of objects.20Base class for a constrained column resize policy.9Default skin implementation for theAccordion
control.9Default skin implementation for theButtonBar
control.9Default skin implementation for theButton
control.99Default skin implementation for the tri-stateCheckBox
control.9Default skin implementation for theChoiceBox
control.9Default skin implementation for theColorPicker
control.9An abstract class intended to be used as the base skin for ComboBox-like controls that are based onComboBoxBase
.9Default skin implementation for theComboBox
control.9An abstract class that extends the functionality ofComboBoxBaseSkin
to include API related to showing ComboBox-like controls as popups.9Default Skin implementation for ContextMenu.9Default skin implementation for theDateCell
control.9Default skin implementation for theDatePicker
control.9Default skin implementation for theHyperlink
control.9Default skin implementation for controls extendsLabeled
.9Default skin implementation for theLabel
control.9Default skin implementation for theListCell
control.9Default skin implementation for theListView
control.9Default skin implementation for theMenuBar
control.9Default skin implementation for theMenuButton
control.9Base class for MenuButtonSkin and SplitMenuButtonSkin.9This class is used to construct the header of a TableView.9Default skin implementation for thePagination
control.9Default skin implementation for theProgressBar
control.9Default skin implementation for theProgressIndicator
control.9Default skin implementation for theRadioButton
control.9Default skin implementation for theScrollBar
control.9Default skin implementation for theScrollPane
control.9Default skin implementation for theSeparator
control.9Default skin implementation for theSlider
control.9Default skin implementation for theSpinner
control.9Default skin implementation for theSplitMenuButton
control.9Default skin implementation for theSplitPane
control.9Default skin implementation for theTableCell
control.9Base skin for table cell controls, for example:TableCell
andTreeTableCell
.9Region responsible for painting a single column header.9Region responsible for painting the entire row of column headers.9Default skin implementation for theTableRow
control.9TableRowSkinBase is the base skin class used by controls such asTableRow
andTreeTableRow
(the concrete classes areTableRowSkin
andTreeTableRowSkin
, respectively).9Default skin implementation for theTableView
control.9TableViewSkinBase is the base skin class used by controls such asTableView
andTreeTableView
(the concrete classes areTableViewSkin
andTreeTableViewSkin
, respectively).9Default skin implementation for theTabPane
control.9Default skin implementation for theTextArea
control.9Default skin implementation for theTextField
control.9Abstract base class for text input skins.9Default skin implementation for theTitledPane
control.9Default skin implementation for theToggleButton
control.9Default skin implementation for theToolBar
control.9Default skin implementation for theTreeCell
control.9Default skin implementation for theTreeTableCell
control.9Default skin implementation for theTreeTableRow
control.9Default skin implementation for theTreeTableView
control.9Default skin implementation for theTreeView
control.9Parent class to control skins whose contents are virtualized and scrollable.9Implementation of a virtualized container using a cell based mechanism.18A light that illuminates an object from a specific direction.13ThePixelBuffer
class represents pixel data that is constructed from ajava.nio.Buffer
supplied by the application.11ARobot
is used for simulating user interaction such as typing keys on the keyboard and using the mouse as well as capturing graphical information without requiring aScene
instance.17A light source that radiates light in a cone in a specific direction away from itself.9Represents the hit information in a Text node.9HTML editor skin.9This class is for JavaFX permissions.
-
Enum ClassAdded inDescription9Represents a size specified in a particular unit, such as 14px or 0.2em.21This enum describes the values for
TOGGLE_STATE
attribute.10This enum specifies drag policies for tabs in a TabPane.
-
FieldAdded inDescription15The tag name of the compile processing instruction.20A resize policy that adjusts other columns in order to fit the table width.20A resize policy that adjusts columns, starting with the last one, in order to fit the table width.20A resize policy that adjusts columns, starting with the next one, in order to fit the table width.20A resize policy that adjusts the last column in order to fit the table width.20A resize policy that adjusts the next column in order to fit the table width.20A resize policy that adjusts subsequent columns in order to fit the table width.20A resize policy that adjusts other columns in order to fit the tree table width.20A resize policy that adjusts columns, starting with the last one, in order to fit the table width.20A resize policy that adjusts columns, starting with the next one, in order to fit the tree table width.20A resize policy that adjusts the last column in order to fit the tree table width.20A resize policy that adjusts the next column in order to fit the tree table width.20A resize policy that adjusts subsequent columns in order to fit the tree table width.
-
MethodAdded inDescription21Indicates whether a nested event loop can be started from the current thread in the current state.9Enter a nested event loop and block until the corresponding exitNestedEventLoop call is made.9Exit a nested event loop and unblock the caller of the corresponding enterNestedEventLoop.17Returns a flag indicating whether the key corresponding to
keyCode
is in the locked (or "on") state.9Checks whether a nested event loop is running, returning true to indicate that one is, and false if there are no nested event loops currently running.9Requests the Java Runtime to perform a pulse.9This method starts the JavaFX runtime.19Checks if the binding is allowed to become valid.19Checks if the binding has at least one listener registered on it.21Creates aSubscription
on thisObservable
which callsinvalidationSubscriber
whenever it becomes invalid.19Returns anObservableValue
that holds the value of anObservableValue
produced by applying the given mapping function on this value.19Returns anObservableValue
that holds the result of applying the given mapping function on this value.19Returns anObservableValue
that holds this value, or the given constant if it isnull
.21Creates aSubscription
on thisObservableValue
which calls the givenchangeSubscriber
with the old and new value whenever its value changes.21Creates aSubscription
on thisObservableValue
which immediately provides the current value to the givenvalueSubscriber
, followed by any subsequent values whenever its value changes.20Returns anObservableValue
that holds this value and is updated only whencondition
holdstrue
.9Maps the index of the direct source list's element to an index in this list.9If value is itself a ParsedValue or sequence of values, and should any of those values need to be looked up, then this flag is set.9If value references another property, then the real value needs to be looked up.9Returns the Node that represents this Styleable object.9Cache the value for the specified key.9Clear the cache.9Convert from the constituent values to the target property type.9Get the cached value for the specified key.9Read binary data stream.9Write binary data.17Loads a binary stylesheet from a stream.21Registers an event filter for this target.21Registers an event handler for this target.21Unregisters a previously registered event filter from this target.21Unregisters a previously registered event handler from this target.9Returns this loader's load listener.9Sets this loader's load listener.11The central x coordinate of thisBounds
.11The central y coordinate of thisBounds
.11The central z coordinate of thisBounds
.13The function calculates an interpolated value along the fractiont
between0.0
and1.0
.13The function calculates an interpolated value along the fractiont
between0.0
and1.0
.17AStringProperty
representing the name of a filesystem file, to which the platform printer driver should spool the rendered print data.12Gets the current image smoothing state.12Sets the image smoothing state.9Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.9Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.9Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.999Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.18If theDatePicker
iseditable
, calling this method will attempt to replace the editor text with the last committedvalue
.18If theDatePicker
iseditable
, calling this method will attempt to commit the current text and convert it to avalue
.9Returns the initial cursor state of this control, for use by the JavaFX CSS engine to correctly set its initial value.9Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.9Returns the initial alignment state of this control, for use by the JavaFX CSS engine to correctly set its initial value.9Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.10Called just after theContextMenu
has been hidden.10Called just prior to theContextMenu
being hidden.10Called just prior to theContextMenu
being shown.10Called just after theContextMenu
is shown.9Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.9Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.9Returns the initial alignment state of this control, for use by the JavaFX CSS engine to correctly set its initial value.20Returns the width of the area available for columns.20Returns the associated TreeView or TreeTableView control.20Sets the column width during the resizing pass.9Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.9Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.9Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.20Called once whenSkin
is set.12Returns theTableHeaderRow
associated with thisTableColumnHeader
.12Returns theTableViewSkinBase
in which thisTableColumnHeader
is inserted.14Resizes thisTableColumnHeader
's column to fit the width of its content.12Returns the currentTableColumnHeader
being moved during reordering.12Returns the root header for all columns.12Sets theTableColumnHeader
that is being moved during a reordering operation.21Shows a menu containing all leaf columns as items.12Called whenever the value of the horizontal scrollbar changes in order to request layout changes, shifting theTableColumnHeader
s.12Updates the table width when a resize operation occurs.12Returns theTableHeaderRow
created usingTableViewSkinBase.createTableHeaderRow()
.12Called when the focus is set on the cell above the current focused cell in order to scroll to it to make it visible.12Called when the focus is set on the cell below the current focused cell in order to scroll to it to make it visible.12Called when the focus is set on the left cell of the current selected one in order to horizontally scroll to it to make it visible.12Called when the focus is set on the right cell of the current selected one in order to horizontally scroll to it to make it visible.12Called when the selection is set on the first cell of the table (first row and first column) in order to scroll to it to make it visible.12Called when the selection is set on the last cell of the table (last row and last column) in order to scroll to it to make it visible.12Returns the index of the selected (or focused, ifisFocusDriven
istrue
) cell after a page scroll operation.12Returns the index of the selected (or focused, ifisFocusDriven
istrue
) cell after a page scroll operation.12Called when the selection is set on the the cell above the current focused cell in order to scroll to it to make it visible.12Called when the selection is set on the cell below the current focused cell in order to scroll to it to make it visible.12Called when the selection is set on the left cell of the current selected one in order to horizontally scroll to it to make it visible.12Called when the selection is set on the right cell of the current selected one in order to horizontally scroll to it to make it visible.12Scrolls to the column containing the current focused cell.12Programmatically scrolls to the given column.10Create the virtualized container that handles the layout and scrolling of all the cells.10Get the virtualized container.12Returns the list of cells displayed in the current viewport.12Returns the first visible cell whose bounds are entirely within the viewport.12Returns the scroll bar used for scrolling horizontally.12Returns the last visible cell whose bounds are entirely within the viewport.12Creates and returns a new cell for the given index.12Returns the scroll bar used for scrolling vertically.12Informs theVirtualFlow
that a layout pass should be done, and cell contents have changed.12Informs theVirtualFlow
that a layout pass should be done, and the cell contents have not changed.12Informs theVirtualFlow
that a layout pass should be done, and that the cell factory has changed.12Informs theVirtualFlow
that a layout pass should be done and only the cell layout will be requested.12Resizes the given cell.9Registers an operation to perform when the givenobservable
sends a change event.17Registers an operation to perform when the givenobservable
sends an invalidation event.17Registers an operation to perform when the givenobservableList
sends a list change event.9Convenience method for accessing thesnapPositionX()
method on the skinnable.9Convenience method for accessing thesnapPositionY()
method on the skinnable.9Convenience method for accessing thesnapSizeX()
method on the skinnable.9Convenience method for accessing thesnapSizeY()
method on the skinnable.9Convenience method for accessing thesnapSpaceX()
method on the skinnable.9Convenience method for accessing thesnapSpaceY()
method on the skinnable.9Unregisters all operations that have been registered usingSkinBase.registerChangeListener(ObservableValue, Consumer)
for the givenobservable
.17Unregisters all operations that have been registered usingSkinBase.registerInvalidationListener(Observable, Consumer)
for the givenobservable
.17Unregisters all operations that have been registered usingSkinBase.registerListChangeListener(ObservableList, Consumer)
for the givenobservableList
.9911Gets theCssMetaData
associated with this class, which may include theCssMetaData
of its superclasses.11The duration that the mouse has to be pressed on an arrow button before the next value steps.9The prompt text to display in theSpinner
, ornull
if no prompt text is displayed.11The duration that the mouse has to be pressed for each successive step after the first value steps.9Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.9Returns the initial alignment state of this control, for use by the JavaFX CSS engine to correctly set its initial value.9Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.9The duration in which to continue showing the tooltip after the mouse has left the node.9The delay between the mouse entering the hovered node and when the associated tooltip will be shown to the user.9The duration that the tooltip should remain showing for until it is no longer visible to the user.17Gets the value of the propertytableRow
.17Updates theTreeTableColumn
associated with thisTreeTableCell
.17Updates theTreeTableRow
associated with thisTreeTableCell
.9Returns the url used to fetch the pixel data contained in the Image instance, if specified in the constructor.9Returns the character element of this key code, which is simply a mapping of the underlying platform code returned byKeyCode.getCode()
.9Returns the underlying platform code used to represent thecharacter
in the key code.12Returnstrue
if back button (button 4) is currently pressed.12Returnstrue
if forward button (button 5) is currently pressed.18A convenience factory method for creating aBackground
with a singlePaint
.18A convenience factory method for creating a solidBorder
with a singlePaint
.9Returns the bounds of the cell at the specified column and row position.9Returns the number of columns in this GridPane.9Returns the number of rows in this GridPane.9If this region's snapToPixel property is true, returns a value rounded to the nearest pixel in the horizontal direction, else returns the same value.9If this region's snapToPixel property is true, returns a value rounded to the nearest pixel in the vertical direction, else returns the same value.9If this region's snapToPixel property is true, returns a value ceiled to the nearest pixel in the horizontal direction, else returns the same value.9If this region's snapToPixel property is true, returns a value ceiled to the nearest pixel in the vertical direction, else returns the same value.9If this region's snapToPixel property is true, returns a value rounded to the nearest pixel in the horizontal direction, else returns the same value.9If this region's snapToPixel property is true, returns a value rounded to the nearest pixel in the vertical direction, else returns the same value.13Gets the list of nodes that specifies the hierarchical exclusion scope of this light.9Returns the initial cursor state of this node, for use by the JavaFX CSS engine to correctly set its initial value.9Returns the initial focus traversable state of this node, for use by the JavaFX CSS engine to correctly set its initial value.9Defines the rendering and picking order of thisNode
within its parent.9Adds a new scene post layout pulse listener to this scene.9Adds a new scene pre layout pulse listener to this scene.9Removes a previously registered scene post layout pulse listener from listening to pulses in this scene.9Removes a previously registered scene pre layout pulse listener from listening to pulses in this scene.9Loads font resources from the specified input stream.9Loads font resources from the specified URL.9The type of caret bias in the content.9The caret index in the content.9Returns the shape for the caret at the given index and bias.9The shape of caret, in local coordinates.9Maps local point toHitInfo
in the content.9Returns the shape for the range of the text in local coordinates.9The end index of the selection in the content.9The fill color of selected text.9The shape of the selection in local coordinates.9The start index of the selection in the content.14The size of a tab stop in spaces.9Returns the shape for the underline in local coordinates.9Returns shape of caret in local coordinates.9Maps local point toHitInfo
in the content.9Returns shape for the range of the text in local coordinates.21Returns the shape for the underline in local coordinates.9Gets the recommended output scale factor of thisScreen
in the horizontal (X
) direction.9Gets the recommended output scale factor of thisScreen
in the vertical (Y
) direction.9Returns a list containing a reference to the currently showing JavaFX windows.
-
ConstructorAdded inDescription13Constructs a
WritableImage
using the specifiedPixelBuffer
.12Constructs new MouseDragEvent event.12Constructs new MouseEvent event.12Constructs new MouseEvent event with null source and target.21
-
Enum ConstantAdded inDescription21Returns
toggle state
of CheckBox of CheckBoxTreeItem.21Check Box Tree Item role.20Dialog role.12Represents back (button 4) mouse button.12Represents forward (button 5) mouse button.