Minor fixups to type signatures
This commit is contained in:
parent
6e83b3fa94
commit
60828f3aad
@ -14,7 +14,7 @@ abstract class SingletonStage {
|
|||||||
|
|
||||||
protected[this] def singletonStageName = getClass.getSimpleName
|
protected[this] def singletonStageName = getClass.getSimpleName
|
||||||
|
|
||||||
protected[this] def makeStage(): InstanceStage
|
protected[this] def makeStage(): Stage with InstanceStage
|
||||||
|
|
||||||
def showStage(): Unit = {
|
def showStage(): Unit = {
|
||||||
singletonStage match {
|
singletonStage match {
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
package org.gerweck.scalafx.util.layout
|
package org.gerweck.scalafx.util.layout
|
||||||
|
|
||||||
import scalafx.geometry.Insets
|
import scalafx.geometry.Insets
|
||||||
|
import scalafx.scene.Node
|
||||||
import scalafx.scene.control.MenuBar
|
import scalafx.scene.control.MenuBar
|
||||||
import scalafx.scene.layout._
|
import scalafx.scene.layout.{ AnchorPane, Priority }
|
||||||
|
|
||||||
/** A wrapper that binds its child pane to all four corners so it will always
|
/** A wrapper that binds its child pane to all four corners so it will always
|
||||||
* grow as the stage is resized.
|
* grow as the stage is resized.
|
||||||
@ -12,7 +13,7 @@ import scalafx.scene.layout._
|
|||||||
* @author Sarah Gerweck <sarah.a180@gmail.com>
|
* @author Sarah Gerweck <sarah.a180@gmail.com>
|
||||||
*/
|
*/
|
||||||
object Anchored {
|
object Anchored {
|
||||||
def apply(margins: Insets = Insets.Empty, menus: Option[MenuBar] = None)(body: => Pane) = {
|
def apply(margins: Insets = Insets.Empty, menus: Option[MenuBar] = None)(body: => Node) = {
|
||||||
new AnchorPane { ap =>
|
new AnchorPane { ap =>
|
||||||
hgrow = Priority.Always
|
hgrow = Priority.Always
|
||||||
vgrow = Priority.Always
|
vgrow = Priority.Always
|
||||||
|
Loading…
Reference in New Issue
Block a user