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


Variable Index

 o labela
label de reponse A
 o labelb
label de reponse B
 o labelc
label de reponse C
 o labelq
label de question

Constructor Index

 o PanelQuestion()
constructeur

Method Index

 o buildConstraints(GridBagConstraints, int, int, int, int, int, int)
methode buildConstraints qui simplifie l'etablissement des contraintes de la mise en page
 o getQuestion()
retourne la question
 o getRepA()
retourne la reponse A
 o getRepB()
retourne la reponse B
 o getRepC()
retourne la reponse C
 o setNewGame(Question)
pose la nouvelle question et ses reponses
 o setQuestion(String)
pose la question
 o setRepA(String)
pose la reponse A
 o setRepB(String)
pose la reponse B
 o setRepC(String)
pose la reponse C

Variables

 o labelq
 private Label labelq
label de question

 o labela
 private Label labela
label de reponse A

 o labelb
 private Label labelb
label de reponse B

 o labelc
 private Label labelc
label de reponse C

Constructors

 o PanelQuestion
 public PanelQuestion()
constructeur

Methods

 o getQuestion
 public String getQuestion()
retourne la question

 o getRepA
 public String getRepA()
retourne la reponse A

 o getRepB
 public String getRepB()
retourne la reponse B

 o getRepC
 public String getRepC()
retourne la reponse C

 o setQuestion
 public void setQuestion(String q)
pose la question

 o setRepA
 public void setRepA(String rA)
pose la reponse A

 o setRepB
 public void setRepB(String rB)
pose la reponse B

 o setRepC
 public void setRepC(String rC)
pose la reponse C

 o setNewGame
 public void setNewGame(Question question)
pose la nouvelle question et ses reponses

 o 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