This repository has been archived on 2021-12-05. You can view files and clone it, but cannot push or open issues or pull requests.
envoy/src/main/java/envoy/client/ui/GeneralSettingsPane.java

30 lines
727 B
Java
Raw Normal View History

package envoy.client.ui;
2020-04-18 16:04:47 +02:00
import javafx.scene.layout.VBox;
import envoy.client.data.Settings;
/**
* Project: <strong>envoy-client</strong><br>
* File: <strong>GeneralSettingsPane.java</strong><br>
* Created: <strong>18.04.2020</strong><br>
*
* @author Kai S. K. Engelbart
* @since Envoy Client v0.1-beta
*/
public class GeneralSettingsPane extends SettingsPane {
private static final Settings settings = Settings.getInstance();
/**
* @since Envoy Client v0.1-beta
*/
2020-04-18 16:04:47 +02:00
public GeneralSettingsPane() {
super("General");
var vbox = new VBox();
for (var name : new String[] { "onCloseMode", "enterToSend" })
vbox.getChildren().add(settings.getItems().get(name).getNode());
getChildren().add(vbox);
}
}