mirror of
https://github.com/klmp200/PQT_Gestionnaire_vente_stock.git
synced 2024-11-22 08:13:20 +00:00
[CLIENT][DEBUG] Ajout sysout pré-remplissant les champs host et port pour al connexion au serveur; A ENLEVER UNE FOIS LA PHASE DE DEBUG FINIE
This commit is contained in:
parent
9f80fa0e9d
commit
74a23da5a2
@ -28,10 +28,22 @@ public class StartupFrameView implements IFXComponent{
|
||||
try {
|
||||
mainPane = new VBox();
|
||||
|
||||
//TODO to uncomment
|
||||
/*
|
||||
Label serverHostLabel = new Label(GUIStringTool.getServerHostLabel());
|
||||
serverHostTextField = makeTextField(TextField.class);
|
||||
Label serverPortLabel = new Label(GUIStringTool.getServerPortLabel());
|
||||
serverPortTextField = makeTextField(TextField.class);
|
||||
/**/
|
||||
|
||||
//TODO to remove
|
||||
Label serverHostLabel = new Label(GUIStringTool.getServerHostLabel());
|
||||
serverHostTextField = new TextField("localhost");
|
||||
serverHostTextField.textProperty().addListener((obs, oldVal, newVal)->ctrl.updateView());
|
||||
Label serverPortLabel = new Label(GUIStringTool.getServerPortLabel());
|
||||
serverPortTextField = new TextField("8080");
|
||||
serverPortTextField.textProperty().addListener((obs, oldVal, newVal)->ctrl.updateView());
|
||||
/**/
|
||||
|
||||
GridPane serverFieldGridPane = new GridPane();
|
||||
serverFieldGridPane.add(serverHostLabel, 0, 0);
|
||||
@ -74,9 +86,7 @@ public class StartupFrameView implements IFXComponent{
|
||||
|
||||
private <T extends TextField> T makeTextField(Class<T> clazz) throws IllegalAccessException, InstantiationException {
|
||||
T ntf = clazz.newInstance();
|
||||
ntf.textProperty().addListener((obs, oldVal, newVal)->{
|
||||
ctrl.updateView();
|
||||
});
|
||||
ntf.textProperty().addListener((obs, oldVal, newVal)->ctrl.updateView());
|
||||
return ntf;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user