GridPane
type (joe.win
)
Extends: Pane
The GridPane
type is a Pane
that manages one or children
stacked one on top of each other like cards in a deck.
Joe classes can extend the GridPane
type.
- gridPane.at(column, row, [columnSpan, rowSpan], node) → this
- gridPane.hgap(pixels) → this
- gridPane.vgap(pixels) → this
Pane Methods
- pane.child(node) → this
- pane.children() → joe.List
Region Methods
- 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
Properties
GridPane
widgets have the following properties, in addition to
those inherited from superclasses.
Property | Type | Description |
---|---|---|
#alignment | Pos | Alignment of the grid within the widget. |
#gridLinesVisible | Boolean | Whether to draw grid lines for debugging. |
#hgap | Number | Gap between columns in pixels. |
#vgap | Number | Gap between rows in pixels. |
GridPane Initializer
GridPane() → GridPane
Returns a GridPane
.
Methods
gridPane.at()
gridPane.at(column, row, [columnSpan, rowSpan], node) → this
Adds the node to the grid pane at the given column and row with the given spans. If omitted, the spans default to 1.
gridPane.hgap()
gridPane.hgap(pixels) → this
Sets the gap between columns to the given number of pixels.
gridPane.vgap()
gridPane.vgap(pixels) → this
Sets the gap between rows to the given number of pixels.