object GridPane
- Source
- GridPane.scala
- Alphabetic
- By Inheritance
- GridPane
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val Remaining: Int
Sentinel value which may be set on a child's row/column span constraint to indicate that it should span the remaining rows/columns.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearConstraints(child: javafx.scene.Node): Unit
Removes all gridpane constraints from the child node.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getColumnIndex(child: Node): Integer
Returns the child's column index constraint if set.
- def getColumnSpan(child: Node): Integer
Returns the child's column-span constraint if set.
- def getHalignment(child: Node): HPos
Returns the child's halignment constraint if set.
- def getHgrow(child: Node): Priority
Returns the child's hgrow constraint if set.
- def getMargin(child: Node): Insets
Returns the child's margin constraint if set.
- def getRowIndex(child: Node): Integer
Returns the child's row index constraint if set.
- def getRowSpan(child: Node): Integer
Returns the child's row-span constraint if set.
- def getValignment(child: Node): VPos
Returns the child's valignment constraint if set.
- def getVgrow(child: Node): Priority
Returns the child's vgrow constraint if set.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def setColumnIndex(child: Node, value: Int): Unit
Sets the column index for the child when contained by a gridpane so that it will be positioned starting in that column of the gridpane.
- def setColumnSpan(child: Node, value: Int): Unit
Sets the column span for the child when contained by a gridpane so that it will span that number of columns horizontally.
- def setConstraints(child: Node, columnIndex: Int, rowIndex: Int, columnspan: Int, rowspan: Int, halignment: HPos, valignment: VPos, hgrow: Priority, vgrow: Priority, margin: Insets): Unit
Sets the grid position, spans, alignment, grow priorities, and margin for the child when contained in a gridpane.
- def setConstraints(child: Node, columnIndex: Int, rowIndex: Int, columnspan: Int, rowspan: Int, halignment: HPos, valignment: VPos, hgrow: Priority, vgrow: Priority): Unit
Sets the grid position, spans, and alignment for the child when contained in a gridpane.
- def setConstraints(child: Node, columnIndex: Int, rowIndex: Int, columnspan: Int, rowspan: Int, halignment: HPos, valignment: VPos): Unit
Sets the grid position, spans, and alignment for the child when contained in a gridpane.
- def setConstraints(child: Node, columnIndex: Int, rowIndex: Int, columnspan: Int, rowspan: Int): Unit
Sets the column, row, column-span, and row-span value for the child when contained in a gridpane.
- def setConstraints(child: Node, columnIndex: Int, rowIndex: Int): Unit
Sets the column,row indices for the child when contained in a gridpane.
- def setHalignment(node: Node, hp: HPos): Unit
Sets the horizontal alignment for the child when contained by a GridPane.
- def setHgrow(child: Node, value: javafx.scene.layout.Priority): Unit
Sets the value of the property hgap.
- def setMargin(child: Node, value: Insets): Unit
Sets the margin for the child when contained by a gridpane.
- def setRowIndex(child: Node, value: Int): Unit
Sets the row index for the child when contained by a gridpane so that it will be positioned starting in that row of the gridpane.
- def setRowSpan(child: Node, value: Int): Unit
Sets the row span for the child when contained by a gridpane so that it will span that number of rows vertically.
- def setValignment(node: Node, vp: VPos): Unit
Sets the vertical alignment for the child when contained by a gridpane.
- def setVgrow(child: Node, value: Priority): Unit
Sets the vertical grow priority for the child when contained by a gridpane.
- implicit def sfxGridPane2jfx(v: GridPane): javafx.scene.layout.GridPane
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
ScalaFX is a UI DSL written within the Scala Language that sits on top of JavaFX 2.x and and JavaFX 8. This means that every ScalaFX application is also a valid Scala application. By extension it supports full interoperability with Java and can run anywhere the Java Virtual Machine (JVM) and JavaFX 2.0 or JavaFX 8 are supported.
Package Structure
ScalaFX package structure corresponds to JavaFX package structure, for instance
scalafx.animation
corresponds tojavafx.animation
.Example Usage
A basic ScalaFX application is created creating an object that is an instance of
JFXApp3
. Following Java FX theatre metaphor, it contains astage
that contains ascene
. Astage
roughly corresponds to a window in a typical UI environment. Thescene
holds UI content presented to the user. In the example below, the content is a pane with a singlelabel
component.