Créé dans le cadre du projet de fin d'année de la promo 2018 de CIR2 de l'ISEN Brest/Rennes, le Burger Quizz est une adaptation numérique du jeu télévisé éponyme, plus précisément d'une épreuve spécifique de ce jeu : le "Sel ou Poivre".

Question.html 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="fr">
  4. <head>
  5. <!-- Generated by javadoc (version 1.7.0_79) on Thu Jun 11 10:20:10 CEST 2015 -->
  6. <meta http-equiv="Content-Type" content="text/html" charset="utf8">
  7. <title>Question</title>
  8. <meta name="date" content="2015-06-11">
  9. <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
  10. </head>
  11. <body>
  12. <script type="text/javascript"><!--
  13. if (location.href.indexOf('is-external=true') == -1) {
  14. parent.document.title="Question";
  15. }
  16. //-->
  17. </script>
  18. <noscript>
  19. <div>JavaScript is disabled on your browser.</div>
  20. </noscript>
  21. <!-- ========= START OF TOP NAVBAR ======= -->
  22. <div class="topNav"><a name="navbar_top">
  23. <!-- -->
  24. </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
  25. <!-- -->
  26. </a>
  27. <ul class="navList" title="Navigation">
  28. <li><a href="../overview-summary.html">Overview</a></li>
  29. <li><a href="package-summary.html">Package</a></li>
  30. <li class="navBarCell1Rev">Class</li>
  31. <li><a href="package-tree.html">Tree</a></li>
  32. <li><a href="../deprecated-list.html">Deprecated</a></li>
  33. <li><a href="../index-files/index-1.html">Index</a></li>
  34. <li><a href="../help-doc.html">Help</a></li>
  35. </ul>
  36. </div>
  37. <div class="subNav">
  38. <ul class="navList">
  39. <li><a href="../Modele/Categorie.html" title="class in Modele"><span class="strong">Prev Class</span></a></li>
  40. <li><a href="../Modele/Reponses.html" title="class in Modele"><span class="strong">Next Class</span></a></li>
  41. </ul>
  42. <ul class="navList">
  43. <li><a href="../index.html?Modele/Question.html" target="_top">Frames</a></li>
  44. <li><a href="Question.html" target="_top">No Frames</a></li>
  45. </ul>
  46. <ul class="navList" id="allclasses_navbar_top">
  47. <li><a href="../allclasses-noframe.html">All Classes</a></li>
  48. </ul>
  49. <div>
  50. <script type="text/javascript"><!--
  51. allClassesLink = document.getElementById("allclasses_navbar_top");
  52. if(window==top) {
  53. allClassesLink.style.display = "block";
  54. }
  55. else {
  56. allClassesLink.style.display = "none";
  57. }
  58. //-->
  59. </script>
  60. </div>
  61. <div>
  62. <ul class="subNavList">
  63. <li>Summary:&nbsp;</li>
  64. <li>Nested&nbsp;|&nbsp;</li>
  65. <li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
  66. <li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
  67. <li><a href="#method_summary">Method</a></li>
  68. </ul>
  69. <ul class="subNavList">
  70. <li>Detail:&nbsp;</li>
  71. <li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
  72. <li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
  73. <li><a href="#method_detail">Method</a></li>
  74. </ul>
  75. </div>
  76. <a name="skip-navbar_top">
  77. <!-- -->
  78. </a></div>
  79. <!-- ========= END OF TOP NAVBAR ========= -->
  80. <!-- ======== START OF CLASS DATA ======== -->
  81. <div class="header">
  82. <div class="subTitle">Modele</div>
  83. <h2 title="Class Question" class="title">Class Question</h2>
  84. </div>
  85. <div class="contentContainer">
  86. <ul class="inheritance">
  87. <li>java.lang.Object</li>
  88. <li>
  89. <ul class="inheritance">
  90. <li>Modele.Question</li>
  91. </ul>
  92. </li>
  93. </ul>
  94. <div class="description">
  95. <ul class="blockList">
  96. <li class="blockList">
  97. <hr>
  98. <br>
  99. <pre>public class <span class="strong">Question</span>
  100. extends java.lang.Object</pre>
  101. <div class="block">Modéle représentant une question.</div>
  102. </li>
  103. </ul>
  104. </div>
  105. <div class="summary">
  106. <ul class="blockList">
  107. <li class="blockList">
  108. <!-- =========== FIELD SUMMARY =========== -->
  109. <ul class="blockList">
  110. <li class="blockList"><a name="field_summary">
  111. <!-- -->
  112. </a>
  113. <h3>Field Summary</h3>
  114. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
  115. <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
  116. <tr>
  117. <th class="colFirst" scope="col">Modifier and Type</th>
  118. <th class="colLast" scope="col">Field and Description</th>
  119. </tr>
  120. <tr class="altColor">
  121. <td class="colFirst"><code>protected java.lang.String</code></td>
  122. <td class="colLast"><code><strong><a href="../Modele/Question.html#intitule">intitule</a></strong></code>
  123. <div class="block">Intitulé de la qustion.</div>
  124. </td>
  125. </tr>
  126. <tr class="rowColor">
  127. <td class="colFirst"><code>protected int</code></td>
  128. <td class="colLast"><code><strong><a href="../Modele/Question.html#reponse">reponse</a></strong></code>
  129. <div class="block">Numéro bonne réponses.</div>
  130. </td>
  131. </tr>
  132. <tr class="altColor">
  133. <td class="colFirst"><code>protected java.lang.String</code></td>
  134. <td class="colLast"><code><strong><a href="../Modele/Question.html#reponse1">reponse1</a></strong></code>
  135. <div class="block">Réponse une.</div>
  136. </td>
  137. </tr>
  138. <tr class="rowColor">
  139. <td class="colFirst"><code>protected java.lang.String</code></td>
  140. <td class="colLast"><code><strong><a href="../Modele/Question.html#reponse2">reponse2</a></strong></code>
  141. <div class="block">Réponse deux.</div>
  142. </td>
  143. </tr>
  144. </table>
  145. </li>
  146. </ul>
  147. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  148. <ul class="blockList">
  149. <li class="blockList"><a name="constructor_summary">
  150. <!-- -->
  151. </a>
  152. <h3>Constructor Summary</h3>
  153. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  154. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  155. <tr>
  156. <th class="colOne" scope="col">Constructor and Description</th>
  157. </tr>
  158. <tr class="altColor">
  159. <td class="colOne"><code><strong><a href="../Modele/Question.html#Question(java.lang.String,%20java.lang.String,%20java.lang.String,%20int)">Question</a></strong>(java.lang.String&nbsp;intitule,
  160. java.lang.String&nbsp;reponse1,
  161. java.lang.String&nbsp;reponse2,
  162. int&nbsp;reponse)</code>
  163. <div class="block">Constructeur initiant les champs de la question.</div>
  164. </td>
  165. </tr>
  166. </table>
  167. </li>
  168. </ul>
  169. <!-- ========== METHOD SUMMARY =========== -->
  170. <ul class="blockList">
  171. <li class="blockList"><a name="method_summary">
  172. <!-- -->
  173. </a>
  174. <h3>Method Summary</h3>
  175. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  176. <caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
  177. <tr>
  178. <th class="colFirst" scope="col">Modifier and Type</th>
  179. <th class="colLast" scope="col">Method and Description</th>
  180. </tr>
  181. <tr class="altColor">
  182. <td class="colFirst"><code>java.lang.String</code></td>
  183. <td class="colLast"><code><strong><a href="../Modele/Question.html#getIntitule()">getIntitule</a></strong>()</code>
  184. <div class="block">Renvoie l'intitulé de la question.</div>
  185. </td>
  186. </tr>
  187. <tr class="rowColor">
  188. <td class="colFirst"><code>int</code></td>
  189. <td class="colLast"><code><strong><a href="../Modele/Question.html#getReponse()">getReponse</a></strong>()</code>
  190. <div class="block">Renvoie le numéro de la bonne réponse.</div>
  191. </td>
  192. </tr>
  193. <tr class="altColor">
  194. <td class="colFirst"><code>java.lang.String</code></td>
  195. <td class="colLast"><code><strong><a href="../Modele/Question.html#getReponse1()">getReponse1</a></strong>()</code>
  196. <div class="block">Renvoie la réponse une.</div>
  197. </td>
  198. </tr>
  199. <tr class="rowColor">
  200. <td class="colFirst"><code>java.lang.String</code></td>
  201. <td class="colLast"><code><strong><a href="../Modele/Question.html#getReponse2()">getReponse2</a></strong>()</code>
  202. <div class="block">Renvoie la réponse deux.</div>
  203. </td>
  204. </tr>
  205. <tr class="altColor">
  206. <td class="colFirst"><code>void</code></td>
  207. <td class="colLast"><code><strong><a href="../Modele/Question.html#setIntitule(java.lang.String)">setIntitule</a></strong>(java.lang.String&nbsp;intitule)</code>
  208. <div class="block">Modifie l'intitulé de la question.</div>
  209. </td>
  210. </tr>
  211. <tr class="rowColor">
  212. <td class="colFirst"><code>void</code></td>
  213. <td class="colLast"><code><strong><a href="../Modele/Question.html#setReponse(int)">setReponse</a></strong>(int&nbsp;reponse)</code>
  214. <div class="block">Modifie le numéro de la bonne réponse.</div>
  215. </td>
  216. </tr>
  217. <tr class="altColor">
  218. <td class="colFirst"><code>void</code></td>
  219. <td class="colLast"><code><strong><a href="../Modele/Question.html#setReponse1(java.lang.String)">setReponse1</a></strong>(java.lang.String&nbsp;reponse1)</code>
  220. <div class="block">Modifie la réponse une.</div>
  221. </td>
  222. </tr>
  223. <tr class="rowColor">
  224. <td class="colFirst"><code>void</code></td>
  225. <td class="colLast"><code><strong><a href="../Modele/Question.html#setReponse2(java.lang.String)">setReponse2</a></strong>(java.lang.String&nbsp;reponse2)</code>
  226. <div class="block">Modifie la réponse deux.</div>
  227. </td>
  228. </tr>
  229. <tr class="altColor">
  230. <td class="colFirst"><code>java.lang.String</code></td>
  231. <td class="colLast"><code><strong><a href="../Modele/Question.html#toString()">toString</a></strong>()</code>
  232. <div class="block">Renvoie une chaine représentant l'objet, sous la forme: "intitulé | bonneRéponse".</div>
  233. </td>
  234. </tr>
  235. </table>
  236. <ul class="blockList">
  237. <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
  238. <!-- -->
  239. </a>
  240. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  241. <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
  242. </ul>
  243. </li>
  244. </ul>
  245. </li>
  246. </ul>
  247. </div>
  248. <div class="details">
  249. <ul class="blockList">
  250. <li class="blockList">
  251. <!-- ============ FIELD DETAIL =========== -->
  252. <ul class="blockList">
  253. <li class="blockList"><a name="field_detail">
  254. <!-- -->
  255. </a>
  256. <h3>Field Detail</h3>
  257. <a name="intitule">
  258. <!-- -->
  259. </a>
  260. <ul class="blockList">
  261. <li class="blockList">
  262. <h4>intitule</h4>
  263. <pre>protected&nbsp;java.lang.String intitule</pre>
  264. <div class="block">Intitulé de la qustion.</div>
  265. </li>
  266. </ul>
  267. <a name="reponse1">
  268. <!-- -->
  269. </a>
  270. <ul class="blockList">
  271. <li class="blockList">
  272. <h4>reponse1</h4>
  273. <pre>protected&nbsp;java.lang.String reponse1</pre>
  274. <div class="block">Réponse une.</div>
  275. </li>
  276. </ul>
  277. <a name="reponse2">
  278. <!-- -->
  279. </a>
  280. <ul class="blockList">
  281. <li class="blockList">
  282. <h4>reponse2</h4>
  283. <pre>protected&nbsp;java.lang.String reponse2</pre>
  284. <div class="block">Réponse deux.</div>
  285. </li>
  286. </ul>
  287. <a name="reponse">
  288. <!-- -->
  289. </a>
  290. <ul class="blockListLast">
  291. <li class="blockList">
  292. <h4>reponse</h4>
  293. <pre>protected&nbsp;int reponse</pre>
  294. <div class="block">Numéro bonne réponses.</div>
  295. </li>
  296. </ul>
  297. </li>
  298. </ul>
  299. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  300. <ul class="blockList">
  301. <li class="blockList"><a name="constructor_detail">
  302. <!-- -->
  303. </a>
  304. <h3>Constructor Detail</h3>
  305. <a name="Question(java.lang.String, java.lang.String, java.lang.String, int)">
  306. <!-- -->
  307. </a>
  308. <ul class="blockListLast">
  309. <li class="blockList">
  310. <h4>Question</h4>
  311. <pre>public&nbsp;Question(java.lang.String&nbsp;intitule,
  312. java.lang.String&nbsp;reponse1,
  313. java.lang.String&nbsp;reponse2,
  314. int&nbsp;reponse)</pre>
  315. <div class="block">Constructeur initiant les champs de la question.</div>
  316. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>intitule</code> - Intitulé de la question.</dd><dd><code>reponse1</code> - Réponse une.</dd><dd><code>reponse2</code> - Réponse deux.</dd><dd><code>reponse</code> - Numéro bonne réponse.</dd></dl>
  317. </li>
  318. </ul>
  319. </li>
  320. </ul>
  321. <!-- ============ METHOD DETAIL ========== -->
  322. <ul class="blockList">
  323. <li class="blockList"><a name="method_detail">
  324. <!-- -->
  325. </a>
  326. <h3>Method Detail</h3>
  327. <a name="getIntitule()">
  328. <!-- -->
  329. </a>
  330. <ul class="blockList">
  331. <li class="blockList">
  332. <h4>getIntitule</h4>
  333. <pre>public&nbsp;java.lang.String&nbsp;getIntitule()</pre>
  334. <div class="block">Renvoie l'intitulé de la question.</div>
  335. <dl><dt><span class="strong">Returns:</span></dt><dd>l'intitulé de la question.</dd></dl>
  336. </li>
  337. </ul>
  338. <a name="setIntitule(java.lang.String)">
  339. <!-- -->
  340. </a>
  341. <ul class="blockList">
  342. <li class="blockList">
  343. <h4>setIntitule</h4>
  344. <pre>public&nbsp;void&nbsp;setIntitule(java.lang.String&nbsp;intitule)</pre>
  345. <div class="block">Modifie l'intitulé de la question.</div>
  346. </li>
  347. </ul>
  348. <a name="getReponse1()">
  349. <!-- -->
  350. </a>
  351. <ul class="blockList">
  352. <li class="blockList">
  353. <h4>getReponse1</h4>
  354. <pre>public&nbsp;java.lang.String&nbsp;getReponse1()</pre>
  355. <div class="block">Renvoie la réponse une.</div>
  356. <dl><dt><span class="strong">Returns:</span></dt><dd>la réponse une.</dd></dl>
  357. </li>
  358. </ul>
  359. <a name="setReponse1(java.lang.String)">
  360. <!-- -->
  361. </a>
  362. <ul class="blockList">
  363. <li class="blockList">
  364. <h4>setReponse1</h4>
  365. <pre>public&nbsp;void&nbsp;setReponse1(java.lang.String&nbsp;reponse1)</pre>
  366. <div class="block">Modifie la réponse une.</div>
  367. </li>
  368. </ul>
  369. <a name="getReponse2()">
  370. <!-- -->
  371. </a>
  372. <ul class="blockList">
  373. <li class="blockList">
  374. <h4>getReponse2</h4>
  375. <pre>public&nbsp;java.lang.String&nbsp;getReponse2()</pre>
  376. <div class="block">Renvoie la réponse deux.</div>
  377. <dl><dt><span class="strong">Returns:</span></dt><dd>la réponse deux.</dd></dl>
  378. </li>
  379. </ul>
  380. <a name="setReponse2(java.lang.String)">
  381. <!-- -->
  382. </a>
  383. <ul class="blockList">
  384. <li class="blockList">
  385. <h4>setReponse2</h4>
  386. <pre>public&nbsp;void&nbsp;setReponse2(java.lang.String&nbsp;reponse2)</pre>
  387. <div class="block">Modifie la réponse deux.</div>
  388. </li>
  389. </ul>
  390. <a name="getReponse()">
  391. <!-- -->
  392. </a>
  393. <ul class="blockList">
  394. <li class="blockList">
  395. <h4>getReponse</h4>
  396. <pre>public&nbsp;int&nbsp;getReponse()</pre>
  397. <div class="block">Renvoie le numéro de la bonne réponse.</div>
  398. <dl><dt><span class="strong">Returns:</span></dt><dd>le numéro de la bonne réponse.</dd></dl>
  399. </li>
  400. </ul>
  401. <a name="setReponse(int)">
  402. <!-- -->
  403. </a>
  404. <ul class="blockList">
  405. <li class="blockList">
  406. <h4>setReponse</h4>
  407. <pre>public&nbsp;void&nbsp;setReponse(int&nbsp;reponse)</pre>
  408. <div class="block">Modifie le numéro de la bonne réponse.</div>
  409. </li>
  410. </ul>
  411. <a name="toString()">
  412. <!-- -->
  413. </a>
  414. <ul class="blockListLast">
  415. <li class="blockList">
  416. <h4>toString</h4>
  417. <pre>public&nbsp;java.lang.String&nbsp;toString()</pre>
  418. <div class="block">Renvoie une chaine représentant l'objet, sous la forme: "intitulé | bonneRéponse".</div>
  419. <dl>
  420. <dt><strong>Overrides:</strong></dt>
  421. <dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
  422. <dt><span class="strong">Returns:</span></dt><dd>une chaine représentant l'objet.</dd></dl>
  423. </li>
  424. </ul>
  425. </li>
  426. </ul>
  427. </li>
  428. </ul>
  429. </div>
  430. </div>
  431. <!-- ========= END OF CLASS DATA ========= -->
  432. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  433. <div class="bottomNav"><a name="navbar_bottom">
  434. <!-- -->
  435. </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
  436. <!-- -->
  437. </a>
  438. <ul class="navList" title="Navigation">
  439. <li><a href="../overview-summary.html">Overview</a></li>
  440. <li><a href="package-summary.html">Package</a></li>
  441. <li class="navBarCell1Rev">Class</li>
  442. <li><a href="package-tree.html">Tree</a></li>
  443. <li><a href="../deprecated-list.html">Deprecated</a></li>
  444. <li><a href="../index-files/index-1.html">Index</a></li>
  445. <li><a href="../help-doc.html">Help</a></li>
  446. </ul>
  447. </div>
  448. <div class="subNav">
  449. <ul class="navList">
  450. <li><a href="../Modele/Categorie.html" title="class in Modele"><span class="strong">Prev Class</span></a></li>
  451. <li><a href="../Modele/Reponses.html" title="class in Modele"><span class="strong">Next Class</span></a></li>
  452. </ul>
  453. <ul class="navList">
  454. <li><a href="../index.html?Modele/Question.html" target="_top">Frames</a></li>
  455. <li><a href="Question.html" target="_top">No Frames</a></li>
  456. </ul>
  457. <ul class="navList" id="allclasses_navbar_bottom">
  458. <li><a href="../allclasses-noframe.html">All Classes</a></li>
  459. </ul>
  460. <div>
  461. <script type="text/javascript"><!--
  462. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  463. if(window==top) {
  464. allClassesLink.style.display = "block";
  465. }
  466. else {
  467. allClassesLink.style.display = "none";
  468. }
  469. //-->
  470. </script>
  471. </div>
  472. <div>
  473. <ul class="subNavList">
  474. <li>Summary:&nbsp;</li>
  475. <li>Nested&nbsp;|&nbsp;</li>
  476. <li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
  477. <li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
  478. <li><a href="#method_summary">Method</a></li>
  479. </ul>
  480. <ul class="subNavList">
  481. <li>Detail:&nbsp;</li>
  482. <li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
  483. <li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
  484. <li><a href="#method_detail">Method</a></li>
  485. </ul>
  486. </div>
  487. <a name="skip-navbar_bottom">
  488. <!-- -->
  489. </a></div>
  490. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  491. </body>
  492. </html>