Commit 178ce6f2 authored by E194212A's avatar E194212A
Browse files

Ajout getters, setters et autres fonction dans FenetreConnexion

parent 29de5c3e
...@@ -102,29 +102,22 @@ public class FenetreConnexion extends JFrame { ...@@ -102,29 +102,22 @@ public class FenetreConnexion extends JFrame {
} }
}
/*
// Les getters // Les getters
public boolean getStatutActualiser(){ return boutonActualiser.isEnabled(); } public String getPseudo(){ return pseudo.getText(); }
public String getLogin(){ return textLogin.getText(); }
public Integer getGameID(){ return gameId; } // public Integer getGameID(){ return gameId; }
public Boolean getCreerpartie() { return creerPartie; } public Boolean getCreerpartie() { return true; }
// Les setters // Les setters
public void setGameID(Integer i){ gameId = i; } // public void setGameID(Integer i){ gameId = i; }
public void setCreerpartie(Boolean bool) { creerPartie = bool; } // public void setCreerpartie(Boolean bool) { creerPartie = bool; }
// Autres fonctions // Autres fonctions
public void visibleCreer(){ boutonCreer.setEnabled(true); } public void visibleCreer(){ creerPartie.setEnabled(true); }
public void visibleRejoidre(){ boutonRejoindre.setEnabled(true); }
public void visibleActualiser(){ boutonActualiser.setEnabled(true); } public void visibleRejoidre(){ rejoindre.setEnabled(true); }
}
}*/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment