JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop

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

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicurlString

The URL from which the JavaFX content (FXD or FXZ file) will be loaded.

Inherited Variables

javafx.fxd.FXDContent

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
public-read_rootGroup

Root node of the topmost node of the loaded graphics

Function Summary

protected create() : javafx.scene.Node

Creates the node.

Creates the node.

Returns
Node
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

A helper function for getting a Group scene graph node from the loaded graphics with the given ID

A helper function for getting a Group scene graph node from the loaded graphics with the given ID

Parameters
id
The ID of the group to get
Returns
Group
Group The group that was found
 
public getNode(id: java.lang.String) : javafx.scene.Node

Gets the node with the given ID, or null if there is no such node.

Gets the node with the given ID, or null if there is no such node.

Parameters
id
The id of the node to be looked for
Returns
Node
Node The node that was found, or null if there is no such 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

A helper function for getting a Shape scene graph node from the loaded graphics with the given ID

A helper function for getting a Shape scene graph node from the loaded graphics with the given ID

Parameters
id
The ID of the Shape to get
Returns
Shape
Shape The Shape that was found
 
protected impl_createLoadContext() : com.sun.javafx.tools.fxd.LoadContext

creates new load context ...

creates new load context ...

Returns
LoadContext
 
public impl_getLoadContext() : com.sun.javafx.tools.fxd.LoadContext
Returns
LoadContext
 
public impl_getNodeMap() : java.util.Map
Returns
Map
 
public impl_setRoot(newRoot: javafx.scene.Node) : javafx.scene.Group
Parameters
newRoot
Returns
Group