Browse Source

avancées javadoc6

PCYoshi 9 years ago
parent
commit
75da24ba41

+ 65
- 66
java/.idea/workspace.xml View File

7
   </component>
7
   </component>
8
   <component name="ChangeListManager">
8
   <component name="ChangeListManager">
9
     <list default="true" id="a647cb6a-4230-4101-a652-d7cfd0c21e24" name="Default" comment="">
9
     <list default="true" id="a647cb6a-4230-4101-a652-d7cfd0c21e24" name="Default" comment="">
10
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/Modele/package-info.java" />
10
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/GestionErreurs/BDDException.class" afterPath="$PROJECT_DIR$/out/production/java/GestionErreurs/BDDException.class" />
11
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/GestionErreurs/BDDException.class" afterPath="$PROJECT_DIR$/out/production/java/GestionErreurs/BDDException.class" />
11
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/InterfaceGraphique/Bouton.class" afterPath="$PROJECT_DIR$/out/production/java/InterfaceGraphique/Bouton.class" />
12
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/InterfaceGraphique/Bouton.class" afterPath="$PROJECT_DIR$/out/production/java/InterfaceGraphique/Bouton.class" />
12
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/GestionBddDAO/ConfigBDD.class" afterPath="$PROJECT_DIR$/out/production/java/GestionBddDAO/ConfigBDD.class" />
13
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/GestionBddDAO/ConfigBDD.class" afterPath="$PROJECT_DIR$/out/production/java/GestionBddDAO/ConfigBDD.class" />
18
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/InterfaceGraphique/DialogBoxes/NouvelleQuestionDialog.class" afterPath="$PROJECT_DIR$/out/production/java/InterfaceGraphique/DialogBoxes/NouvelleQuestionDialog.class" />
19
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/InterfaceGraphique/DialogBoxes/NouvelleQuestionDialog.class" afterPath="$PROJECT_DIR$/out/production/java/InterfaceGraphique/DialogBoxes/NouvelleQuestionDialog.class" />
19
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/InterfaceGraphique/DialogBoxes/NouvelleReponseDialog.class" afterPath="$PROJECT_DIR$/out/production/java/InterfaceGraphique/DialogBoxes/NouvelleReponseDialog.class" />
20
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/InterfaceGraphique/DialogBoxes/NouvelleReponseDialog.class" afterPath="$PROJECT_DIR$/out/production/java/InterfaceGraphique/DialogBoxes/NouvelleReponseDialog.class" />
20
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/InterfaceGraphique/SplashScreen.class" afterPath="$PROJECT_DIR$/out/production/java/InterfaceGraphique/SplashScreen.class" />
21
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/InterfaceGraphique/SplashScreen.class" afterPath="$PROJECT_DIR$/out/production/java/InterfaceGraphique/SplashScreen.class" />
21
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/InterfaceGraphique/Bouton.java" afterPath="$PROJECT_DIR$/src/InterfaceGraphique/Bouton.java" />
22
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/Modele/Categorie.java" afterPath="$PROJECT_DIR$/src/Modele/Categorie.java" />
23
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/Modele/Question.java" afterPath="$PROJECT_DIR$/src/Modele/Question.java" />
22
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/Modele/Question.java" afterPath="$PROJECT_DIR$/src/Modele/Question.java" />
24
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/InterfaceGraphique/SplashScreen.java" afterPath="$PROJECT_DIR$/src/InterfaceGraphique/SplashScreen.java" />
23
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/Modele/Reponses.java" afterPath="$PROJECT_DIR$/src/Modele/Reponses.java" />
25
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
24
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
26
     </list>
25
     </list>
27
     <ignored path="java.iws" />
26
     <ignored path="java.iws" />
54
           </provider>
53
           </provider>
55
         </entry>
54
         </entry>
56
       </file>
55
       </file>
57
-      <file leaf-file-name="Question.java" pinned="false" current-in-tab="true">
58
-        <entry file="file://$PROJECT_DIR$/src/Modele/Question.java">
56
+      <file leaf-file-name="package-info.java" pinned="false" current-in-tab="true">
57
+        <entry file="file://$PROJECT_DIR$/src/Modele/package-info.java">
59
           <provider selected="true" editor-type-id="text-editor">
58
           <provider selected="true" editor-type-id="text-editor">
60
-            <state vertical-scroll-proportion="0.09514926">
61
-              <caret line="4" column="17" selection-start-line="4" selection-start-column="17" selection-end-line="4" selection-end-column="17" />
62
-              <folding>
63
-                <element signature="e#439#440#0" expanded="true" />
64
-                <element signature="e#461#462#0" expanded="true" />
65
-                <element signature="e#506#507#0" expanded="true" />
66
-                <element signature="e#537#538#0" expanded="true" />
67
-                <element signature="e#569#570#0" expanded="true" />
68
-                <element signature="e#591#592#0" expanded="true" />
69
-                <element signature="e#636#637#0" expanded="true" />
70
-                <element signature="e#667#668#0" expanded="true" />
71
-                <element signature="e#699#700#0" expanded="true" />
72
-                <element signature="e#721#722#0" expanded="true" />
73
-                <element signature="e#766#767#0" expanded="true" />
74
-                <element signature="e#797#798#0" expanded="true" />
75
-                <element signature="e#825#826#0" expanded="true" />
76
-                <element signature="e#846#847#0" expanded="true" />
77
-                <element signature="e#886#887#0" expanded="true" />
78
-                <element signature="e#915#916#0" expanded="true" />
79
-              </folding>
80
-            </state>
81
-          </provider>
82
-        </entry>
83
-      </file>
84
-      <file leaf-file-name="Reponses.java" pinned="false" current-in-tab="false">
85
-        <entry file="file://$PROJECT_DIR$/src/Modele/Reponses.java">
86
-          <provider selected="true" editor-type-id="text-editor">
87
-            <state vertical-scroll-proportion="0.0">
88
-              <caret line="2" column="13" selection-start-line="2" selection-start-column="13" selection-end-line="2" selection-end-column="13" />
59
+            <state vertical-scroll-proportion="0.063432835">
60
+              <caret line="2" column="17" selection-start-line="2" selection-start-column="17" selection-end-line="2" selection-end-column="17" />
89
               <folding />
61
               <folding />
90
             </state>
62
             </state>
91
           </provider>
63
           </provider>
147
         <option value="$PROJECT_DIR$/src/InterfaceGraphique/SplashScreen.java" />
119
         <option value="$PROJECT_DIR$/src/InterfaceGraphique/SplashScreen.java" />
148
         <option value="$PROJECT_DIR$/src/Modele/Categorie.java" />
120
         <option value="$PROJECT_DIR$/src/Modele/Categorie.java" />
149
         <option value="$PROJECT_DIR$/src/Modele/Question.java" />
121
         <option value="$PROJECT_DIR$/src/Modele/Question.java" />
122
+        <option value="$PROJECT_DIR$/src/Modele/Reponses.java" />
123
+        <option value="$PROJECT_DIR$/src/Modele/package-info.java" />
150
       </list>
124
       </list>
151
     </option>
125
     </option>
152
   </component>
126
   </component>
774
       <option name="project" value="LOCAL" />
748
       <option name="project" value="LOCAL" />
775
       <updated>1433973812842</updated>
749
       <updated>1433973812842</updated>
776
     </task>
750
     </task>
777
-    <option name="localTasksCounter" value="32" />
751
+    <task id="LOCAL-00032" summary="avancées javadoc5">
752
+      <created>1433975034387</created>
753
+      <option name="number" value="00032" />
754
+      <option name="project" value="LOCAL" />
755
+      <updated>1433975034387</updated>
756
+    </task>
757
+    <option name="localTasksCounter" value="33" />
778
     <servers />
758
     <servers />
779
   </component>
759
   </component>
780
   <component name="TodoView">
760
   <component name="TodoView">
827
     <option name="myLimit" value="2678400000" />
807
     <option name="myLimit" value="2678400000" />
828
   </component>
808
   </component>
829
   <component name="VcsManagerConfiguration">
809
   <component name="VcsManagerConfiguration">
830
-    <MESSAGE value="creation classe de base" />
831
     <MESSAGE value="evolution" />
810
     <MESSAGE value="evolution" />
832
     <MESSAGE value="evolution (pikachu evolue en raichu)" />
811
     <MESSAGE value="evolution (pikachu evolue en raichu)" />
833
     <MESSAGE value="+mieux l'interface et easter egg ajouté" />
812
     <MESSAGE value="+mieux l'interface et easter egg ajouté" />
852
     <MESSAGE value="avancées javadoc2" />
831
     <MESSAGE value="avancées javadoc2" />
853
     <MESSAGE value="avancées javadoc3" />
832
     <MESSAGE value="avancées javadoc3" />
854
     <MESSAGE value="avancées javadoc4" />
833
     <MESSAGE value="avancées javadoc4" />
855
-    <option name="LAST_COMMIT_MESSAGE" value="avancées javadoc4" />
834
+    <MESSAGE value="avancées javadoc5" />
835
+    <option name="LAST_COMMIT_MESSAGE" value="avancées javadoc5" />
856
   </component>
836
   </component>
857
   <component name="XDebuggerManager">
837
   <component name="XDebuggerManager">
858
     <breakpoint-manager>
838
     <breakpoint-manager>
1186
         </state>
1166
         </state>
1187
       </provider>
1167
       </provider>
1188
     </entry>
1168
     </entry>
1169
+    <entry file="file://$PROJECT_DIR$/src/Modele/Reponses.java">
1170
+      <provider selected="true" editor-type-id="text-editor">
1171
+        <state vertical-scroll-proportion="0.74626863">
1172
+          <caret line="60" column="95" selection-start-line="60" selection-start-column="95" selection-end-line="60" selection-end-column="95" />
1173
+          <folding>
1174
+            <element signature="e#555#556#0" expanded="true" />
1175
+            <element signature="e#577#578#0" expanded="true" />
1176
+            <element signature="e#688#689#0" expanded="true" />
1177
+            <element signature="e#719#720#0" expanded="true" />
1178
+            <element signature="e#819#820#0" expanded="true" />
1179
+            <element signature="e#841#842#0" expanded="true" />
1180
+            <element signature="e#954#955#0" expanded="true" />
1181
+            <element signature="e#985#986#0" expanded="true" />
1182
+            <element signature="e#1164#1165#0" expanded="true" />
1183
+            <element signature="e#1223#1224#0" expanded="true" />
1184
+          </folding>
1185
+        </state>
1186
+      </provider>
1187
+    </entry>
1188
+    <entry file="file://$PROJECT_DIR$/src/Modele/Question.java">
1189
+      <provider selected="true" editor-type-id="text-editor">
1190
+        <state vertical-scroll-proportion="0.048507463">
1191
+          <caret line="100" column="31" selection-start-line="100" selection-start-column="31" selection-end-line="100" selection-end-column="31" />
1192
+          <folding>
1193
+            <element signature="e#873#874#0" expanded="true" />
1194
+            <element signature="e#895#896#0" expanded="true" />
1195
+            <element signature="e#1028#1029#0" expanded="true" />
1196
+            <element signature="e#1059#1060#0" expanded="true" />
1197
+            <element signature="e#1157#1158#0" expanded="true" />
1198
+            <element signature="e#1179#1180#0" expanded="true" />
1199
+            <element signature="e#1290#1291#0" expanded="true" />
1200
+            <element signature="e#1321#1322#0" expanded="true" />
1201
+            <element signature="e#1421#1422#0" expanded="true" />
1202
+            <element signature="e#1443#1444#0" expanded="true" />
1203
+            <element signature="e#1556#1557#0" expanded="true" />
1204
+            <element signature="e#1587#1588#0" expanded="true" />
1205
+            <element signature="e#1711#1712#0" expanded="true" />
1206
+            <element signature="e#1732#1733#0" expanded="true" />
1207
+            <element signature="e#1868#1869#0" expanded="true" />
1208
+            <element signature="e#1897#1898#0" expanded="true" />
1209
+          </folding>
1210
+        </state>
1211
+      </provider>
1212
+    </entry>
1189
     <entry file="file://$PROJECT_DIR$/src/Modele/Categorie.java">
1213
     <entry file="file://$PROJECT_DIR$/src/Modele/Categorie.java">
1190
       <provider selected="true" editor-type-id="text-editor">
1214
       <provider selected="true" editor-type-id="text-editor">
1191
-        <state vertical-scroll-proportion="0.8731343">
1215
+        <state vertical-scroll-proportion="0.74626863">
1192
           <caret line="40" column="7" selection-start-line="40" selection-start-column="7" selection-end-line="40" selection-end-column="7" />
1216
           <caret line="40" column="7" selection-start-line="40" selection-start-column="7" selection-end-line="40" selection-end-column="7" />
1193
           <folding />
1217
           <folding />
1194
         </state>
1218
         </state>
1202
         </state>
1226
         </state>
1203
       </provider>
1227
       </provider>
1204
     </entry>
1228
     </entry>
1205
-    <entry file="file://$PROJECT_DIR$/src/Modele/Reponses.java">
1229
+    <entry file="file://$PROJECT_DIR$/src/Modele/package-info.java">
1206
       <provider selected="true" editor-type-id="text-editor">
1230
       <provider selected="true" editor-type-id="text-editor">
1207
-        <state vertical-scroll-proportion="0.0">
1208
-          <caret line="2" column="13" selection-start-line="2" selection-start-column="13" selection-end-line="2" selection-end-column="13" />
1231
+        <state vertical-scroll-proportion="0.063432835">
1232
+          <caret line="2" column="17" selection-start-line="2" selection-start-column="17" selection-end-line="2" selection-end-column="17" />
1209
           <folding />
1233
           <folding />
1210
         </state>
1234
         </state>
1211
       </provider>
1235
       </provider>
1212
     </entry>
1236
     </entry>
1213
-    <entry file="file://$PROJECT_DIR$/src/Modele/Question.java">
1214
-      <provider selected="true" editor-type-id="text-editor">
1215
-        <state vertical-scroll-proportion="0.09514926">
1216
-          <caret line="4" column="17" selection-start-line="4" selection-start-column="17" selection-end-line="4" selection-end-column="17" />
1217
-          <folding>
1218
-            <element signature="e#439#440#0" expanded="true" />
1219
-            <element signature="e#461#462#0" expanded="true" />
1220
-            <element signature="e#506#507#0" expanded="true" />
1221
-            <element signature="e#537#538#0" expanded="true" />
1222
-            <element signature="e#569#570#0" expanded="true" />
1223
-            <element signature="e#591#592#0" expanded="true" />
1224
-            <element signature="e#636#637#0" expanded="true" />
1225
-            <element signature="e#667#668#0" expanded="true" />
1226
-            <element signature="e#699#700#0" expanded="true" />
1227
-            <element signature="e#721#722#0" expanded="true" />
1228
-            <element signature="e#766#767#0" expanded="true" />
1229
-            <element signature="e#797#798#0" expanded="true" />
1230
-            <element signature="e#825#826#0" expanded="true" />
1231
-            <element signature="e#846#847#0" expanded="true" />
1232
-            <element signature="e#886#887#0" expanded="true" />
1233
-            <element signature="e#915#916#0" expanded="true" />
1234
-          </folding>
1235
-        </state>
1236
-      </provider>
1237
-    </entry>
1238
   </component>
1237
   </component>
1239
   <component name="masterDetails">
1238
   <component name="masterDetails">
1240
     <states>
1239
     <states>

+ 55
- 0
java/src/Modele/Question.java View File

6
  */
6
  */
7
 public class Question
7
 public class Question
8
 {
8
 {
9
+	/**
10
+	 * Intitulé de la qustion.
11
+	 */
9
 	protected String intitule;
12
 	protected String intitule;
13
+	/**
14
+	 * Réponse une.
15
+	 */
10
 	protected String reponse1;
16
 	protected String reponse1;
17
+	/**
18
+	 * Réponse deux.
19
+	 */
11
 	protected String reponse2;
20
 	protected String reponse2;
21
+	/**
22
+	 * Numéro bonne réponses.
23
+	 */
12
 	protected int reponse;
24
 	protected int reponse;
13
 
25
 
26
+	/**
27
+	 * Constructeur initiant les champs de la question.
28
+	 * @param intitule Intitulé de la question.
29
+	 * @param reponse1 Réponse une.
30
+	 * @param reponse2 Réponse deux.
31
+	 * @param reponse Numéro bonne réponse.
32
+	 */
14
 	public Question(String intitule, String reponse1, String reponse2, int reponse) {
33
 	public Question(String intitule, String reponse1, String reponse2, int reponse) {
15
 		this.intitule = intitule;
34
 		this.intitule = intitule;
16
 		this.reponse1 = reponse1;
35
 		this.reponse1 = reponse1;
18
 		this.reponse = reponse;
37
 		this.reponse = reponse;
19
 	}
38
 	}
20
 
39
 
40
+	/**
41
+	 * Renvoie l'intitulé de la question.
42
+	 * @return l'intitulé de la question.
43
+	 */
21
 	public String getIntitule() {
44
 	public String getIntitule() {
22
 		return intitule;
45
 		return intitule;
23
 	}
46
 	}
24
 
47
 
48
+	/**
49
+	 * Modifie l'intitulé de la question.
50
+	 * @return l'intitulé de la question.
51
+	 */
25
 	public void setIntitule(String intitule) {
52
 	public void setIntitule(String intitule) {
26
 		this.intitule = intitule;
53
 		this.intitule = intitule;
27
 	}
54
 	}
28
 
55
 
56
+	/**
57
+	 * Renvoie la réponse une.
58
+	 * @return la réponse une.
59
+	 */
29
 	public String getReponse1() {
60
 	public String getReponse1() {
30
 		return reponse1;
61
 		return reponse1;
31
 	}
62
 	}
32
 
63
 
64
+	/**
65
+	 * Modifie la réponse une.
66
+	 * @return la réponse une.
67
+	 */
33
 	public void setReponse1(String reponse1) {
68
 	public void setReponse1(String reponse1) {
34
 		this.reponse1 = reponse1;
69
 		this.reponse1 = reponse1;
35
 	}
70
 	}
36
 
71
 
72
+	/**
73
+	 * Renvoie la réponse deux.
74
+	 * @return la réponse deux.
75
+	 */
37
 	public String getReponse2() {
76
 	public String getReponse2() {
38
 		return reponse2;
77
 		return reponse2;
39
 	}
78
 	}
40
 
79
 
80
+	/**
81
+	 * Modifie la réponse deux.
82
+	 * @return la réponse deux.
83
+	 */
41
 	public void setReponse2(String reponse2) {
84
 	public void setReponse2(String reponse2) {
42
 		this.reponse2 = reponse2;
85
 		this.reponse2 = reponse2;
43
 	}
86
 	}
44
 
87
 
88
+	/**
89
+	 * Renvoie le numéro de la bonne réponse.
90
+	 * @return le numéro de la bonne réponse.
91
+	 */
45
 	public int getReponse() {
92
 	public int getReponse() {
46
 		return reponse;
93
 		return reponse;
47
 	}
94
 	}
48
 
95
 
96
+	/**
97
+	 * Modifie le numéro de la bonne réponse.
98
+	 * @return le numéro de la bonne réponse.
99
+	 */
49
 	public void setReponse(int reponse) {
100
 	public void setReponse(int reponse) {
50
 		this.reponse = reponse;
101
 		this.reponse = reponse;
51
 	}
102
 	}
52
 
103
 
104
+	/**
105
+	 * Renvoie une chaine représentant l'objet, sous la forme: "intitulé | bonneRéponse".
106
+	 * @return une chaine représentant l'objet.
107
+	 */
53
 	public String toString() {
108
 	public String toString() {
54
 		String bonneReponse = new String();
109
 		String bonneReponse = new String();
55
 		if(reponse == 0)
110
 		if(reponse == 0)

+ 35
- 0
java/src/Modele/Reponses.java View File

1
 package Modele;
1
 package Modele;
2
 
2
 
3
+/**
4
+ * Modéle représentant un jeu de réponses.
5
+ * @author joseph
6
+ */
3
 public class Reponses
7
 public class Reponses
4
 {
8
 {
9
+	/**
10
+	 * Réponse 1
11
+	 */
5
 	protected String reponse1;
12
 	protected String reponse1;
13
+	/**
14
+	 * Réponse 2
15
+	 */
6
 	protected String reponse2;
16
 	protected String reponse2;
7
 
17
 
18
+	/**
19
+	 * Constructeur d'initialisation des réponses du jeu.
20
+	 * @param reponse1 Réponse une.
21
+	 * @param reponse2 Réponse deux.
22
+	 */
8
 	public Reponses(String reponse1, String reponse2) {
23
 	public Reponses(String reponse1, String reponse2) {
9
 		this.reponse1 = reponse1;
24
 		this.reponse1 = reponse1;
10
 		this.reponse2 = reponse2;
25
 		this.reponse2 = reponse2;
11
 	}
26
 	}
12
 
27
 
28
+	/**
29
+	 * Renvoie la réponse une.
30
+	 * @return la réponse une.
31
+	 */
13
 	public String getReponse1() {
32
 	public String getReponse1() {
14
 		return reponse1;
33
 		return reponse1;
15
 	}
34
 	}
16
 
35
 
36
+	/**
37
+	 * Modifie la réponse une.
38
+	 * @return la réponse une.
39
+	 */
17
 	public void setReponse1(String reponse1) {
40
 	public void setReponse1(String reponse1) {
18
 		this.reponse1 = reponse1;
41
 		this.reponse1 = reponse1;
19
 	}
42
 	}
20
 
43
 
44
+	/**
45
+	 * Renvoie la réponse deux.
46
+	 * @return la réponse deux.
47
+	 */
21
 	public String getReponse2() {
48
 	public String getReponse2() {
22
 		return reponse2;
49
 		return reponse2;
23
 	}
50
 	}
24
 
51
 
52
+	/**
53
+	 * Modifie la réponse deux.
54
+	 * @return la réponse deux.
55
+	 */
25
 	public void setReponse2(String reponse2) {
56
 	public void setReponse2(String reponse2) {
26
 		this.reponse2 = reponse2;
57
 		this.reponse2 = reponse2;
27
 	}
58
 	}
28
 
59
 
60
+	/**
61
+	 * Renvoie une chaine représentant l'objet, sous la forme: "reponse1, reponse2 ou les deux?".
62
+	 * @return une chaine représentant l'objet.
63
+	 */
29
 	public String toString() {
64
 	public String toString() {
30
 		return  reponse1 + ", " + reponse2 + " ou les deux?";
65
 		return  reponse1 + ", " + reponse2 + " ou les deux?";
31
 	}
66
 	}

+ 5
- 0
java/src/Modele/package-info.java View File

1
+/**
2
+ * Contient les modéles représentant les données manipulées.
3
+ * @author joseph
4
+ */
5
+package Modele;