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

Profile: desktop, common

Overview

Drop-in replacement for a JavaFX Scene that will automatically resize any of its children that extend Resizable to fill the Scene bounds. This is particularly useful when used together with a resizable layout that should fill the scene bounds, such as the following example:

the code:

import org.jfxtras.scene.*;
    import org.jfxtras.scene.layout.*;
    import javafx.ext.swing.*;

    XScene {
        width: 200
        height: 200
        content: XGrid {
            rows: Row {
                cells: SwingList {
                    items: SwingListItem {text: "Sample Item"}
                }
            }
        }
    }

produces:

Profile: common

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
heightInitializedBoolean
initializedBoolean
internalHeightNumber
internalWidthNumber
publicmenuBarNode
needsUpdateBoolean
publicnodeHPosHPosHPos.CENTER

The horizontal position of each node within the XScene.

The horizontal position of each node within the XScene.

This may be overridden for individual nodes by setting the hpos variable on the node's layoutInfo variable.

HPos.CENTER  
publicnodeMarginInsets

The default margin the nodes the scene if they do not specifically override this.

The default margin the nodes the scene if they do not specifically override this.

If you want to set a margin around the Grid itself, use layoutInfo instead.

 
publicnodeVPosVPosVPos.CENTER

The vertical position of each node within the XScene.

The vertical position of each node within the XScene.

This may be overridden for individual nodes by setting the vpos variable on the node's layoutInfo variable.

VPos.CENTER  
prefHeightsNumber[]
prefWidthsNumber[]
updatingContentBoolean
widthInitializedBoolean

Inherited Variables

Function Summary

contentUpdate() : Void
 
requestContentUpdate() : Void
 
updateContentBounds() : Void
 

Inherited Functions