amanda.hinchman-dominguez
01/20/2019, 12:12 AMFxToolkit.registerPrimaryStage( )
, do we do this to basically have a listener for the existence of components on the stage? I suppose using the FxToolkit
is the JavaFX way of testing - does this mean that when you initialize TornadoFX `View`/`Fragment`, it is implied that there is a stage?BenjaVR
01/20/2019, 5:36 PMamanda.hinchman-dominguez
01/21/2019, 1:58 AMonUserSelect(1) { *action* }
where the parameter is how many times a row is clickedamanda.hinchman-dominguez
01/21/2019, 3:51 AMclass Test: ApplicationTest() {
override fun start(stage: Stage?) {
setInScope(CatScheduleModel(), CatScheduleScope())
val sceneRoot = Editor().root
addAllIdsToDescendents(sceneRoot)
stage?.scene = Scene(sceneRoot, 100.0, 100.0)
stage?.show()
}
.....
@Test fun testTextfield() {
val textfield = lookup("#beep") as TextField
verifyThat("#beep", hasText(textfield.text))
}
}
amanda.hinchman-dominguez
01/21/2019, 6:02 PMprimaryStage.show()
after adding the ids to the view!! Forgot this necessary step. I'm now getting a new error message: IllegalStateException: Not on FX application thread; currentThread = main
amanda.hinchman-dominguez
01/22/2019, 8:49 PMby di()
- can you provide an example? by inject
is how we easily do dependency injection with models/views/controllers in TornadoFXamanda.hinchman-dominguez
01/22/2019, 9:27 PMinject()
is for singleton components (Models()
, Views()
, Controllers()
) which is TornadoFX specific. For di()
, you can inject third party resources by creating an FX.dicontainer
Nicklas Desens
01/24/2019, 9:26 AMmariofelesdossantosjr
01/24/2019, 12:16 PMsbyrne
01/24/2019, 8:29 PMcell { note { backgroundColor += Color.RED } }
works as expected (only coloring those labels). cell { and(selected) { backgroundColor += Color.RED } }
works as expected (coloring everything in the selected row). cell { and(selected) { note { backgroundColor += Color.RED } } }
has no effect. I expected it to color only the labels with the "note" class in the selected row.elifarley
01/25/2019, 1:17 PMhostServices.showDocument("<https://google.com/>")
, but it always gives me this error:
NullPointerException
at javafx.application.HostServices.showDocument(HostServices.java:127)
at myapps.desktop.views.myappListView$master$1$1$8$2.invoke(myappListView.kt:117)
at myapps.desktop.views.myappListView$master$1$1$8$2.invoke(myappListView.kt:34)
at tornadofx.ControlsKt$action$4.handle(Controls.kt:417)
at tornadofx.ControlsKt$action$4.handle(Controls.kt)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
carlw
01/25/2019, 1:36 PMBrian
01/25/2019, 4:08 PMamanda.hinchman-dominguez
01/26/2019, 11:59 PMShan
01/27/2019, 3:02 AMitem
from what I can gather from the error because menu items extend Object not Node, I believe.edvin
01/28/2019, 6:57 PMbjonnh
01/28/2019, 10:36 PMDustin Jensen
01/29/2019, 8:07 PMcarlw
01/31/2019, 3:36 PMbjonnh
01/31/2019, 8:38 PMShan
02/01/2019, 6:20 AMLabeledText
inside of the TitledPane somehowShan
02/01/2019, 6:38 AMBorderPane
that contains a label
with my TitledPane's title, and a separate hbox
for the icon and the menu. I then bound its prefWidthProperty like this: prefWidthProperty().bind(this@apply.widthProperty().subtract(Styles.smallishPadding.value*2))
which binds its width to the SqueezeBox's width minus the padding I have added. Then I simply set contentDisplay = ContentDisplay.GRAPHIC_ONLY
within the fold. It appears to work fine, the buttons are aligned and stick to the right side as intended.amanda.hinchman-dominguez
02/01/2019, 9:53 PMShan
02/02/2019, 5:42 AMShan
02/02/2019, 12:14 PMRenameFragment().openModal(stageStyle = StageStyle.UTILITY, escapeClosesWindow = true)
and setting the stage options from the returned stage to: newStage.scene.fill = Color.TRANSPARENT
and in my Styles.css I'm setting the vbox root of the RenameFragment
style to backgroundColor += Color.TRANSPARENT
and also the root
class of the Fragment to transparent, but to no effect. 😞carlw
02/02/2019, 12:52 PMbjonnh
02/04/2019, 8:41 PMShan
02/05/2019, 12:16 PMsbyrne
02/05/2019, 4:55 PMShan
02/05/2019, 5:12 PM