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.
- region.height(height) → this
- region.padding(pixels) → this
- region.padding(top, right, bottom, left) → this
- region.prefHeight(height) → this
- region.prefWidth(width) → this
- region.width(width) → this
Node Methods
- node.disable([flag]) → this
- node.getProperty(keyword) → value
- node.gridColumn(index) → this
- node.gridColumnSpan(span) → this
- node.gridHalignment(hpos) → this
- node.gridHgrow([priority]) → this
- node.gridMargin(insets) → this
- node.gridRow(index) → this
- node.gridRowSpan(span) → this
- node.gridValignment(vpos) → this
- node.gridVgrow([priority]) → this
- node.hgrow([priority]) → this
- node.id(id) → this
- node.isDisabled() → joe.Boolean
- node.listenTo(keyword, listener) → this
- node.properties() → joe.Set
- node.setProperty(keyword, value) → this
- node.splitResizeWithParent(flag) → this
- node.styleClasses() → joe.List
- node.styles(style, ...) → this
- node.toString() → joe.String
- node.vgrow([priority]) → this
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.
Property | Type | Description |
---|---|---|
#maxHeight | Number | Maximum height in pixels |
#maxWidth | Number | Maximum width in pixels |
#minHeight | Number | Minimum height in pixels |
#minWidth | Number | Minimum width in pixels |
#padding | Insets | Preferred height in pixels |
#prefHeight | Number | Preferred height in pixels |
#prefWidth | Number | Preferred 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.