-
public final class MenuSceneDSLKt
-
-
Method Summary
Modifier and Type Method Description final static Unit
componentStyle(UIComponent $self, Function0<String> func)
Sets the componentStyle of the receiver UIComponent to the return value of func. final static Unit
backgroundStyle(UIComponent $self, Function0<String> func)
Sets the backgroundStyle of the receiver UIComponent to the return value of func. final static <T extends StaticComponentView<T>> GridPane<T>
grid(MenuScene $self, Integer rows, Integer cols, Function1<GridPane<T>, Unit> func)
Creates a new GridPane, applies the func and adds it to the receiver MenuScene. final static ToggleGroup
toggleGroup(MenuScene $self, Function1<ToggleGroupBuilder, Unit> func)
Creates a new ToggleGroup and sets it for all ToggleButtons that get created in the context of the receiver ToggleGroupBuilder of func. final static ToggleButton
toggleButton(ToggleGroupBuilder $self, Function1<ToggleButton, Unit> func)
Creates a new ToggleButton, applies the func and adds it to the context of the receiver ToggleGroupBuilder. final static ToggleButton
toggleButton(MenuScene $self, Function1<ToggleButton, Unit> func)
Creates a new ToggleButton, applies the func and adds it to the receiver MenuScene. final static RadioButton
radioButton(ToggleGroupBuilder $self, Function1<RadioButton, Unit> func)
Creates a new RadioButton, applies the func and adds it to the context of the receiver ToggleGroupBuilder. final static RadioButton
radioButton(MenuScene $self, Function1<ToggleButton, Unit> func)
Creates a new RadioButton, applies the func and adds it to the receiver MenuScene. final static Button
button(MenuScene $self, Function1<Button, Unit> func)
Creates a new Button, applies the func and adds it to the receiver MenuScene. final static CheckBox
checkBox(MenuScene $self, Function1<CheckBox, Unit> func)
Creates a new CheckBox, applies the func and adds it to the receiver MenuScene. final static Label
label(MenuScene $self, Function1<Label, Unit> func)
Creates a new Label, applies the func and adds it to the receiver MenuScene. final static <T extends Any> ListView<T>
listView(MenuScene $self, Function1<ListView<T>, Unit> func)
Creates a new ListView, applies the func and adds it to the receiver MenuScene. final static <T extends Any> Table<T>
tableView(MenuScene $self, Function1<Table<T>, Unit> func)
Creates a new Table, applies the func and adds it to the receiver MenuScene. final static <T extends Any> Unit
column(Table<T> $self, String title, Number width, Function1<T, String> func)
Creates a new TableColumn and adds it to the receiver Table. final static <T extends Any> Unit
data(Table<T> $self, List<T> data)
Sets the data model for the receiver Table. final static <T extends Any> Unit
appendData(Table<T> $self, List<T> data)
Appends the supplied data to the data model of the receiver Table. final static TextArea
textArea(MenuScene $self, String prompt, Function1<TextArea, Unit> func)
Creates a new TextArea, applies the func and adds it to the receiver MenuScene. final static TextField
textField(MenuScene $self, String prompt, Function1<TextField, Unit> func)
Creates a new TextField, applies the func and adds it to the receiver MenuScene. final static ProgressBar
progressBar(MenuScene $self, Function1<ProgressBar, Unit> func)
Creates a new ProgressBar, applies the func and adds it to the receiver MenuScene. final static <T extends Any> ComboBox<T>
comboBox(MenuScene $self, String prompt, Function1<ComboBox<T>, Unit> func)
Creates a new ComboBox, applies the func and adds it to the receiver MenuScene. final static ColorPicker
colorPicker(MenuScene $self, Color initialColor, Function1<ColorPicker, Unit> func)
Creates a new ColorPicker, applies the func and adds it to the receiver MenuScene. -
-
Method Detail
-
componentStyle
final static Unit componentStyle(UIComponent $self, Function0<String> func)
Sets the componentStyle of the receiver UIComponent to the return value of func.
-
backgroundStyle
final static Unit backgroundStyle(UIComponent $self, Function0<String> func)
Sets the backgroundStyle of the receiver UIComponent to the return value of func.
-
grid
final static <T extends StaticComponentView<T>> GridPane<T> grid(MenuScene $self, Integer rows, Integer cols, Function1<GridPane<T>, Unit> func)
-
toggleGroup
final static ToggleGroup toggleGroup(MenuScene $self, Function1<ToggleGroupBuilder, Unit> func)
Creates a new ToggleGroup and sets it for all ToggleButtons that get created in the context of the receiver ToggleGroupBuilder of func. Also adds all those ToggleButtons to the receiver MenuScene.
-
toggleButton
final static ToggleButton toggleButton(ToggleGroupBuilder $self, Function1<ToggleButton, Unit> func)
Creates a new ToggleButton, applies the func and adds it to the context of the receiver ToggleGroupBuilder.
-
toggleButton
final static ToggleButton toggleButton(MenuScene $self, Function1<ToggleButton, Unit> func)
Creates a new ToggleButton, applies the func and adds it to the receiver MenuScene.
-
radioButton
final static RadioButton radioButton(ToggleGroupBuilder $self, Function1<RadioButton, Unit> func)
Creates a new RadioButton, applies the func and adds it to the context of the receiver ToggleGroupBuilder.
-
radioButton
final static RadioButton radioButton(MenuScene $self, Function1<ToggleButton, Unit> func)
Creates a new RadioButton, applies the func and adds it to the receiver MenuScene.
-
listView
final static <T extends Any> ListView<T> listView(MenuScene $self, Function1<ListView<T>, Unit> func)
-
tableView
final static <T extends Any> Table<T> tableView(MenuScene $self, Function1<Table<T>, Unit> func)
-
column
final static <T extends Any> Unit column(Table<T> $self, String title, Number width, Function1<T, String> func)
Creates a new TableColumn and adds it to the receiver Table.
- Parameters:
title
- the title for the new TableColumn.width
- the width for the new TableColumn.func
- the new formatFunction for the new TableColumn.
-
data
final static <T extends Any> Unit data(Table<T> $self, List<T> data)
Sets the data model for the receiver Table.
- Parameters:
data
- the data to set.
-
appendData
final static <T extends Any> Unit appendData(Table<T> $self, List<T> data)
Appends the supplied data to the data model of the receiver Table.
- Parameters:
data
- the data to append.
-
textArea
final static TextArea textArea(MenuScene $self, String prompt, Function1<TextArea, Unit> func)
- Parameters:
prompt
- the prompt for the new TextArea.
-
textField
final static TextField textField(MenuScene $self, String prompt, Function1<TextField, Unit> func)
- Parameters:
prompt
- the prompt for the new TextField.
-
progressBar
final static ProgressBar progressBar(MenuScene $self, Function1<ProgressBar, Unit> func)
Creates a new ProgressBar, applies the func and adds it to the receiver MenuScene.
-
comboBox
final static <T extends Any> ComboBox<T> comboBox(MenuScene $self, String prompt, Function1<ComboBox<T>, Unit> func)
- Parameters:
prompt
- the prompt for the new ComboBox.
-
colorPicker
final static ColorPicker colorPicker(MenuScene $self, Color initialColor, Function1<ColorPicker, Unit> func)
Creates a new ColorPicker, applies the func and adds it to the receiver MenuScene.
- Parameters:
initialColor
- the initial Color for the new ColorPicker.
-
-
-
-