Class PanelQuestion
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----PanelQuestion
- public class PanelQuestion
- extends Panel
Localisation: CLIENT
Panel recevant toutes les questions du jeu
-
labela
- label de reponse A
-
labelb
- label de reponse B
-
labelc
- label de reponse C
-
labelq
- label de question
-
PanelQuestion()
- constructeur
-
buildConstraints(GridBagConstraints, int, int, int, int, int, int)
- methode buildConstraints qui simplifie l'etablissement des contraintes de la mise en page
-
getQuestion()
- retourne la question
-
getRepA()
- retourne la reponse A
-
getRepB()
- retourne la reponse B
-
getRepC()
- retourne la reponse C
-
setNewGame(Question)
- pose la nouvelle question et ses reponses
-
setQuestion(String)
- pose la question
-
setRepA(String)
- pose la reponse A
-
setRepB(String)
- pose la reponse B
-
setRepC(String)
- pose la reponse C
labelq
private Label labelq
- label de question
labela
private Label labela
- label de reponse A
labelb
private Label labelb
- label de reponse B
labelc
private Label labelc
- label de reponse C
PanelQuestion
public PanelQuestion()
- constructeur
getQuestion
public String getQuestion()
- retourne la question
getRepA
public String getRepA()
- retourne la reponse A
getRepB
public String getRepB()
- retourne la reponse B
getRepC
public String getRepC()
- retourne la reponse C
setQuestion
public void setQuestion(String q)
- pose la question
setRepA
public void setRepA(String rA)
- pose la reponse A
setRepB
public void setRepB(String rB)
- pose la reponse B
setRepC
public void setRepC(String rC)
- pose la reponse C
setNewGame
public void setNewGame(Question question)
- pose la nouvelle question et ses reponses
buildConstraints
void buildConstraints(GridBagConstraints gbc,
int gx,
int gy,
int gw,
int gh,
int wx,
int wy)
- methode buildConstraints qui simplifie l'etablissement des contraintes de la mise en page