Spec-Zone .ru
спецификации, руководства, описания, API

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

Profile: desktop, common

Overview

Defines a set of common layout variables that can be used to specify how a particular node should be layed out within the layout space allocated to it by its parent container.

All of the container classes provided in javafx.scene.layout support LayoutInfo, however setting layoutInfo on a node which is inside one of these containers is only required when the application needs to override the default layout behavior of that container. For example, to override the preferred sizes of a button so it will always be 100 wide:


 HBox {
    content: [
        Button {
            layoutInfo: LayoutInfo { minWidth: 100 width: 100 maxWidth: 100 }
        }
        // ..other nodes in hbox
    ]
 }
 

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicheightNumber

If set, will override a resizable node's preferred height.

If set, will override a resizable node's preferred height. If the node is not resizable, will be ignored.

 
publichposHPos

If set, will define how the node should be horizontally positioned within its allocated layout space.

publicmaxHeightNumber

If set, will override a resizable node's maximum height.

If set, will override a resizable node's maximum height. If the node is not resizable, will be ignored.

 
publicmaxWidthNumber

If set, will override a resizable node's maximum width.

If set, will override a resizable node's maximum width. If the node is not resizable, will be ignored.

 
publicminHeightNumber

If set, will override a resizable node's minimum height.

If set, will override a resizable node's minimum height. If the node is not resizable, will be ignored.

 
publicminWidthNumber

If set, will override a resizable node's minimum width.

If set, will override a resizable node's minimum width. If the node is not resizable, will be ignored.

 
publicvposVPos

If set, will define how the node should be vertically positioned within its allocated layout space.

publicwidthNumber

If set, will override a resizable node's preferred width.

If set, will override a resizable node's preferred width. If the node is not resizable, will be ignored.

 

Inherited Variables

javafx.scene.layout.LayoutInfoBase

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicmanagedBooleantrue

Defines whether the node(s) referencing this layout info should have their layout managed by their parent container.

Inherited Functions

javafx.scene.layout.LayoutInfoBase

public impl_add(node: Node) : Void
Parameters
node
 
public impl_remove(node: Node) : Void
Parameters
node
 
protected requestLayout() : Void