groostav
10/07/2019, 3:42 AMPawnee
10/08/2019, 1:01 PMclass MasterView : View() {
override val root = hbox {
RouteView()
}
}
class RouteView : View() {
override val root = vbox {
label("Routes Folder")
combobox<String> {
}
listview<String> {
}
button {
text = "Check Route"
}
}
}
However, if I put the RouteView code directly inside the MasterView hbox it works without problem - or if I use another layout like borderpane/vbox. Does hbox require something special?carlw
10/12/2019, 4:09 PMSpike Baylor
10/12/2019, 4:27 PMtieskedh
10/17/2019, 10:32 AMron
10/19/2019, 7:39 PMron
10/22/2019, 8:19 PMabhinay
10/23/2019, 11:14 AMDataGrid
depends on an internal API. This will be fixed with JFX 13 as these internal APIs have been made public.ron
10/23/2019, 4:48 PMAyoub Bouhtouch
10/23/2019, 5:38 PMCaused by: java.lang.NoClassDefFoundError: javafx/application/Application
From what I understand that seems to be linked to JavaFX missing, but I'm using JDK8 with TornadoFX 1.7.19
I've also tried running a View on its own and it fails with error
Caused by: java.lang.NoSuchMethodError: javafx.stage.Window.getProperties()Ljavafx/collections/ObservableMap;
which looks to me like the same error except more verbose.
I am using the Oracle JDK and haven't tried OpenJDK yet.snowe
10/25/2019, 3:51 AMiari
10/27/2019, 7:42 AMiari
10/27/2019, 10:03 AMvoldyman
10/27/2019, 5:04 PMclaudiug
10/30/2019, 2:43 PMclaudiug
10/30/2019, 2:44 PMclaudiug
10/30/2019, 2:44 PMBogdan
10/30/2019, 7:24 PMiari
11/03/2019, 9:33 AMvmerk
11/03/2019, 1:31 PMItemViewModel
of a "Java-primitive" type.
The only way I figured out how to do this is to wrap it in a ObjectProperty
, but the bind {}
function seems to wrap the value in another property: Property<ObjectProperty<Boolean?>>
The values on the labels are:
nullableStringProperty1 = null
nullableStringProperty2 = null
nullableBooleanProperty1 = null
nullableBooleanProperty2 = false
Is there a cleaner way of dealing with nullable primitive types than Property<ObjectProperty<Boolean?>>
?
Thanks.iari
11/03/2019, 5:10 PMTobias
11/06/2019, 4:41 AMObservableMap
to populate a TreeView
and dynamically re-render when the underlying data changes. Any advice?albrechtroehm
11/07/2019, 4:03 PMval workers = find(WorkerDatabase::class)
which works fine if i use it in a function, but not if i declare it as a field in the class (Getting NPE if i use workers
). Maybe somebody could tell me whether i'm doing something wrong ...Tobias
11/11/2019, 12:10 AMTableView
inside an HBox
with some siblings, inside a VBox
with some siblings. Can I get the table to both vgrow
and hgrow
to fill all available space when the window is resized?Mark Fisher
11/18/2019, 3:41 PMclass CardAlignController : Controller() {
val cards = FXCollections.observableArrayList<CardData>()
val model = CardDataModel()
var currentIndex = 0
init {
cards.addAll(...) // some loader code here
model.item = cards[0]
}
fun nextCard() {
model.item = cards[++currentIndex]
println("Next invoked, index: $currentIndex, currentCard: ${model.card.value.name}")
}
but the main view doesn't update.
How can I tie moving through the list to the main view?
I don't have anything to do a bindSelected() on, so I'm not sure how to proceed.
Thanks!Mark Fisher
11/18/2019, 5:35 PMimageview(model.cardUrl) {
x = 0.0
y = 0.0
}.also {
// ensure we scale from 0,0
val scaleBy = model.scale.value
val scale = Scale(scaleBy, scaleBy, 0.0, 0.0)
it.transforms.setAll(scale)
}
but this is only changing on model.cardUrl
, and doesn't update when I change the scale value.
How can I use the model's scale value so it affects the scale of the drawn image?
When I update it, the image doesn't change size.
Note: I found I had to use an also
to scale, as the scaleX/Y
values in the imageview closure scale from the middle of the image and I couldn't work out how to do it from 0,0nbhanji
11/23/2019, 2:31 PMDouglas KN
11/29/2019, 3:13 AMjava.lang.RuntimeException: A bound value cannot be set.
because x2p
in ThingModel is two-way bound. Is there any way to change the val x2p = bind(Thing::x2Property)
call to be just a one-way binding? I'm only using it for display purposes -- there's nothing that needs to be written back.carlw
11/29/2019, 2:51 PMamanda.hinchman-dominguez
12/06/2019, 4:45 PM