09.04.2018 Views

tornadofx-guide

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3. Components<br />

Argument Type Description<br />

stageStyle<br />

modality<br />

escapeClosesWindow<br />

StageStyle<br />

Modality<br />

Boolean<br />

Defines one of the possible enum styles for<br />

Stage . Default: StageStyle.DECORATED<br />

Defines one of the possible enum modality<br />

types for Stage . Default:<br />

Modality.APPLICATION_MODAL<br />

Sets the ESC key to call closeModal() .<br />

Default: true<br />

owner Window Specify the owner Window for this Stage`<br />

block<br />

Boolean<br />

Block UI execution until the Window closes.<br />

Default: false<br />

InternalWindow<br />

While openModal opens in a new Stage , openInternalWindow opens over the current root<br />

node, or any other node if you specify it:<br />

button("Open editor") {<br />

action {<br />

openInternalWindow(Editor::class)<br />

}<br />

}<br />

Figure 3.9<br />

23

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!