Search in sources :

Example 1 with MouseWarpOverride

use of org.phoenicis.containers.wine.parameters.MouseWarpOverride in project POL-POM-5 by PlayOnLinux.

the class WinePrefixContainerInputTab method populate.

private void populate() {
    final VBox inputPane = new VBox();
    final Text title = new TextWithStyle(tr("Input settings"), TITLE_CSS_CLASS);
    inputPane.getStyleClass().add(CONFIGURATION_PANE_CSS_CLASS);
    inputPane.getChildren().add(title);
    final GridPane inputContentPane = new GridPane();
    inputContentPane.getStyleClass().add("grid");
    final ComboBox<MouseWarpOverride> mouseWarpOverrideComboBox = new ComboBox<>();
    mouseWarpOverrideComboBox.setValue(container.getMouseWarpOverride());
    addItems(mouseWarpOverrideComboBox, MouseWarpOverride.class);
    inputContentPane.add(new TextWithStyle(tr("Mouse Warp Override"), CAPTION_TITLE_CSS_CLASS), 0, 0);
    inputContentPane.add(mouseWarpOverrideComboBox, 1, 0);
    inputContentPane.getColumnConstraints().addAll(new ColumnConstraintsWithPercentage(30), new ColumnConstraintsWithPercentage(70));
    inputPane.getChildren().addAll(inputContentPane);
    this.setContent(inputPane);
    lockableElements.add(mouseWarpOverrideComboBox);
}
Also used : TextWithStyle(org.phoenicis.javafx.views.common.TextWithStyle) ColumnConstraintsWithPercentage(org.phoenicis.javafx.views.common.ColumnConstraintsWithPercentage) GridPane(javafx.scene.layout.GridPane) ComboBox(javafx.scene.control.ComboBox) MouseWarpOverride(org.phoenicis.containers.wine.parameters.MouseWarpOverride) Text(javafx.scene.text.Text) VBox(javafx.scene.layout.VBox)

Aggregations

ComboBox (javafx.scene.control.ComboBox)1 GridPane (javafx.scene.layout.GridPane)1 VBox (javafx.scene.layout.VBox)1 Text (javafx.scene.text.Text)1 MouseWarpOverride (org.phoenicis.containers.wine.parameters.MouseWarpOverride)1 ColumnConstraintsWithPercentage (org.phoenicis.javafx.views.common.ColumnConstraintsWithPercentage)1 TextWithStyle (org.phoenicis.javafx.views.common.TextWithStyle)1