mirror of
https://github.com/klmp200/PQT_Gestionnaire_vente_stock.git
synced 2024-11-26 02:54:15 +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 {
|
try {
|
||||||
mainPane = new VBox();
|
mainPane = new VBox();
|
||||||
|
|
||||||
|
//TODO to uncomment
|
||||||
|
/*
|
||||||
Label serverHostLabel = new Label(GUIStringTool.getServerHostLabel());
|
Label serverHostLabel = new Label(GUIStringTool.getServerHostLabel());
|
||||||
serverHostTextField = makeTextField(TextField.class);
|
serverHostTextField = makeTextField(TextField.class);
|
||||||
Label serverPortLabel = new Label(GUIStringTool.getServerPortLabel());
|
Label serverPortLabel = new Label(GUIStringTool.getServerPortLabel());
|
||||||
serverPortTextField = makeTextField(TextField.class);
|
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();
|
GridPane serverFieldGridPane = new GridPane();
|
||||||
serverFieldGridPane.add(serverHostLabel, 0, 0);
|
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 {
|
private <T extends TextField> T makeTextField(Class<T> clazz) throws IllegalAccessException, InstantiationException {
|
||||||
T ntf = clazz.newInstance();
|
T ntf = clazz.newInstance();
|
||||||
ntf.textProperty().addListener((obs, oldVal, newVal)->{
|
ntf.textProperty().addListener((obs, oldVal, newVal)->ctrl.updateView());
|
||||||
ctrl.updateView();
|
|
||||||
});
|
|
||||||
return ntf;
|
return ntf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user