Overview
Base class for interface classes, which provides a bridge between JavaFX code
and graphics defined in JavaFX content format (in FXD or FXZ files).
The concrete implementation of this class is usually generated automatically
from tools processing the content files, such as the NetBeans Plugin for JavaFX.
The implementation classes usually provide variables for directly accessing graphics
associated with this UiStub. For example if the FXD graphics defines
an element "background"
(using its id
attribute}, the class implementing
the UiStub class usually exposes this elemement as a varaible, so the implementation
would contain public var background:Node
, which contains the
background element.
Profile: desktop
Variable Summary
access | name | type | Can Read | Can Init | Can Write | Default Value | description |
---|---|---|---|---|---|---|---|
public | url | String | ![]() | ![]() | ![]() |
The URL from which the JavaFX content (FXD or FXZ file) will be loaded. |
Inherited Variables
javafx.fxd.FXDContent
access | name | type | Can Read | Can Init | Can Write | Default Value | description |
---|---|---|---|---|---|---|---|
public-read | _root | Group | ![]() |
Root node of the topmost node of the loaded graphics |
Function Summary
- protected create() : javafx.scene.Node
- protected abstract update() : Void
-
A function called when the content of the FXD or FXZ files has been loaded.
A function called when the content of the FXD or FXZ files has been loaded. The implementation usually overrides this function to assign values to the publcly declared variables. For example, the
background
attribute mentioned in the example for the class descritption would be updated in the implementation by the following code:override protected function update() { background=getNode("background"); }
Inherited Functions
javafx.fxd.FXDContent
- public getGroup(id: java.lang.String) : javafx.scene.Group
- public getNode(id: java.lang.String) : javafx.scene.Node
- protected getObject(id: java.lang.String) : java.lang.Object
-
Gets the object with the given ID, or null if there is no such node.
Gets the object with the given ID, or null if there is no such node. A helper method for getting an object from the loaded graphics with the given ID.
-
Parameters
- id
- The ID of the object to be looked for
-
Returns
- Object
- Object The object that was found, or null if there is no such object
- public getShape(id: java.lang.String) : javafx.scene.shape.Shape
- protected impl_createLoadContext() : com.sun.javafx.tools.fxd.LoadContext
- public impl_getLoadContext() : com.sun.javafx.tools.fxd.LoadContext
- public impl_getNodeMap() : java.util.Map
- public impl_setRoot(newRoot: javafx.scene.Node) : javafx.scene.Group