Region type (joe.win)


Extends: Node
Extended By: Control, Pane

The Region type is the abstract base class for JavaFX Node widgets that occupy space on the screen.

Constants

Methods

Node Methods

Constants


Region.USE_COMPUTED_SIZE


Default setting for the region's various width and height properties.

Region.USE_PREF_SIZE


Use as the #minWidth, #maxWidth, #minHeight, or #maxHeight value to indicate that the preferred width or height should be used for that property.

Properties

Region widgets have the following properties, in addition to those inherited from superclasses.

PropertyTypeDescription
#maxHeightNumberMaximum height in pixels
#maxWidthNumberMaximum width in pixels
#minHeightNumberMinimum height in pixels
#minWidthNumberMinimum width in pixels
#paddingInsetsPreferred height in pixels
#prefHeightNumberPreferred height in pixels
#prefWidthNumberPreferred width in pixels

Methods


region.height()


region.height(height) → this

Sets the node's preferred, minimum, and maximum height in pixels.

region.padding()


region.padding(pixels) → this
region.padding(top, right, bottom, left) → this

Sets the padding in pixels on all sides of the region. If a single value is given, it is used for all four sides.

region.prefHeight()


region.prefHeight(height) → this

Sets the node's preferred height in pixels.

region.prefWidth()


region.prefWidth(width) → this

Sets the node's preferred width in pixels.

region.width()


region.width(width) → this

Sets the node's preferred, minimum, and maximum width in pixels.