jkbbwr
01/23/2018, 9:35 PMedvin
01/23/2018, 9:36 PMedvin
01/23/2018, 9:36 PMbit
?amanda.hinchman-dominguez
01/23/2018, 9:37 PMimage.isPreserveRatio = true
but I don't think it ever resized in the first placeamanda.hinchman-dominguez
01/23/2018, 9:37 PMjkbbwr
01/23/2018, 9:37 PMedvin
01/23/2018, 9:38 PMamanda.hinchman-dominguez
01/23/2018, 9:38 PMedvin
01/23/2018, 9:38 PMedvin
01/23/2018, 9:38 PMedvin
01/23/2018, 9:39 PMamanda.hinchman-dominguez
01/23/2018, 9:39 PMcomponent.children.remove(node)
edvin
01/23/2018, 9:39 PMimage.png▾
jkbbwr
01/23/2018, 9:39 PMjkbbwr
01/23/2018, 9:39 PMclass TransactionType : View("Transaction Type") {
val wizard: TransactionWizard by inject()
override val root: Parent = form {
fieldset(title) {
field("Type") {
combobox<String> {
items = FXCollections.observableArrayList(
"Create Payee",
"Create Payor"
)
valueProperty().addListener { _, oldValue, newValue ->
when(newValue) {
"Create Payee" -> {
wizard.pages
wizard.add(CreatePayeeForm::class)
}
"Create Payor" -> {
wizard.add(CreatePayorForm::class)
}
}
}
}
}
}
}
}
jkbbwr
01/23/2018, 9:39 PMedvin
01/23/2018, 9:40 PMTransactionWizard
in the wizard
property of the View?jkbbwr
01/23/2018, 9:40 PMCreatePayeeForm
edvin
01/23/2018, 9:41 PMCreatePayeeForm
?jkbbwr
01/23/2018, 9:41 PMjkbbwr
01/23/2018, 9:41 PMamanda.hinchman-dominguez
01/23/2018, 9:42 PMimageview
in a view, not a controlleramanda.hinchman-dominguez
01/23/2018, 9:42 PMImageView
in a controller because imageview
is DSLedvin
01/23/2018, 9:43 PMedvin
01/23/2018, 9:43 PMamanda.hinchman-dominguez
01/23/2018, 9:44 PMedvin
01/23/2018, 9:45 PMedvin
01/23/2018, 9:46 PMoverride val root = stackpane {..
you are actually calling this@UIComponent.stackpane()
. Later however, when you inside the stackpane do hbox {..
for example, you're calling this@stackpane.hbox
.jkbbwr
01/23/2018, 9:46 PMedvin
01/23/2018, 9:47 PM