From 2906c578bf76c2c2223b1fce9395a8048bf6c39c Mon Sep 17 00:00:00 2001 From: Quentin Date: Sun, 8 Dec 2013 10:13:32 +0100 Subject: [PATCH] new file: bin/controleur/CtrlAccesListe.class new file: bin/controleur/CtrlLogin.class new file: bin/vue/AfficherListeMembre.class modified: bin/vue/Planning$1.class modified: bin/vue/Planning$2.class modified: bin/vue/Planning$3.class modified: bin/vue/Planning.class new file: src/controleur/CtrlAccesListe.java new file: src/controleur/CtrlLogin.java new file: src/vue/AfficherListeMembre.java modified: src/vue/Planning.java --- bin/controleur/CtrlAccesListe.class | Bin 0 -> 1931 bytes bin/controleur/CtrlLogin.class | Bin 0 -> 274 bytes bin/vue/AfficherListeMembre.class | Bin 0 -> 2035 bytes bin/vue/Planning$1.class | Bin 873 -> 1180 bytes bin/vue/Planning$2.class | Bin 1059 -> 1328 bytes bin/vue/Planning$3.class | Bin 977 -> 977 bytes bin/vue/Planning.class | Bin 6895 -> 7119 bytes src/controleur/CtrlAccesListe.java | 63 +++++++++++++++++++++ src/controleur/CtrlLogin.java | 11 ++++ src/vue/AfficherListeMembre.java | 82 ++++++++++++++++++++++++++++ src/vue/Planning.java | 33 ++++++----- 11 files changed, 174 insertions(+), 15 deletions(-) create mode 100644 bin/controleur/CtrlAccesListe.class create mode 100644 bin/controleur/CtrlLogin.class create mode 100644 bin/vue/AfficherListeMembre.class create mode 100644 src/controleur/CtrlAccesListe.java create mode 100644 src/controleur/CtrlLogin.java create mode 100644 src/vue/AfficherListeMembre.java diff --git a/bin/controleur/CtrlAccesListe.class b/bin/controleur/CtrlAccesListe.class new file mode 100644 index 0000000000000000000000000000000000000000..9fb0dc9b2a4f25c22d2a8e263bbeaf012a1367e7 GIT binary patch literal 1931 zcmZ`)>v|Ja6kVrHI_WUn5@-npEvPiTgtSFO8?2VtN--^^fntkVr^z8qnaqTlleVC! z&*2OB+drw;@ACnC2A@S-CrN4Y8UAF>*_XBVS^JW||NZkX0N3z~fgXWm(f3r~yRsH! zaw>4=ibWabolr>w5rI?N_Kux#ZLgfUyR|KgN}%ti<2hAvUgQRYe=CCvIbHD zi3SN;vEcfLijXh$QN&;hT);YgY^*v^r?MU-bsGoM-!biH3B2~NiR0}?~@CjyEZf3CNgifQY zBB>1>D~X#HKGj-_+Ep1kFLaj~_)Oq*g}v#@%>0h@WQ8$96SL@#;TEx`C#R;?pXK=d1A0YZ5V^8#n!`hn=;>; zs|r$OV^|i5mTV>Gk6{I?2JRgeqr=cb0ry!9qBaLX;7XUYS}_`v+Zvb{I58q^;%jUe zSnn9_riq0|_=Z`8RoCI9k95QBGKnU>!}kU@NqGB^Dan4YU}K9*qa=&0#al4jC|qPG z>o(GuB?}UdSsKSvYqndXJ9o~aiD5jk;9#3oEc&h=Y--xrFQj%&ljmBffO{k2$vwV< zP8+<~L759D(d7Z8h3<*`|JsEsNCX0BnhAE)fhzOyX0J1eG9xo`i{*qm7EK36fF$;bzD9Qy#Z`4HRs=lge$0g96s~za!iMyD;25%XD z1;5d;eZ+oms7?NAHE;sQ_-i!{_&v^BKcy!La*AgY5u8Q>XECV3#2oJ$^yLAP>+zv| zTwFfD@cKS3&qUI7yf+g~Mh`GT!Dt<0$!IcC$K*q5K1}m;Bi&m^_5icgf1V$Y&qd<7 zI_AfF>R4R*4VNb3ORsRZ2k{4WJe=uEMv{He=|Avo9mP7z6R+@8;Mdpx=tuN2HQ-hw z$w8jaG0F4X218tnmyt#aQyAkO8Aq1uD~CzsDOu$o-veAn2{#b({3BO~Cg67SQSeda zEr%IALqJki=^sLo43pm)b{IE-ZR}!?L?nsx952XqiG=+?-##J&7tr&XVfqZbG%#ym U#X!=)ut6|fBA}zc0qj!U0ssI2 literal 0 HcmV?d00001 diff --git a/bin/controleur/CtrlLogin.class b/bin/controleur/CtrlLogin.class new file mode 100644 index 0000000000000000000000000000000000000000..0ff2cbf1de05f35ded40f5a3b2c8eeb9138534d4 GIT binary patch literal 274 zcmZusF>b;@5S%qOCWc^y5ItRz0v9PkG)Pny6d?MuIgvw`JLz)HzfvJl@2r-ME0*5r(jJvb5fcU{@hJ)|%(2*1Cs}(!d#;S~ z3qtGZc~6L!_8>E~@X$koHX$#Sk?ZEYl5Qs|EeXTY)z!USy34}dELTgH@Gapyqtaz^Kig$NmA7=stOjJ(0 zwt#NW`<8E$yC+$vlQc8Z9u{b_m1%+9&#`$+ZsT&XAkb0Io635wZC^7Tsq_n`GvBwx zyy6Dt75hX@tY09MnfIjcmOO#hdaI))-*+8aY#y;3%TG`s8c4)#lR-}T9%CKuo)OT- z+?))f5uFCwuy-2-_8DkGv)UanpjUTY2DVjqhYWD>6mV zasGABD1OvHH(~+?`PXI9dSGT$?zHG!mEUXN81^y@@~2f^l~UY59~fghFVD*bvt;{Y zwp)~w1?ic-xI#eK^4dl(;Zb(Z?O1*)TY2kOO~CJ zUI?e@@R)5$$L|W`Bs$gSO#=y>Vdl(2K{`36gU@ZrUCqR>(l}>e6l09TcdLnI0i#=0 zDBF(<1}@?foilSZU00OJ%ravb?w->@+_lsLj0g(jGOnuFk{gPfLT5Eq$tDaK*rDTE zE$(Ny-T+z{len%7O;M%>3-hiYA9M2s*I_bfO2^yJH%0*R5M~7qjV$?jJJA(1QddqE zyYfLd6}v_ zgfKD~RHhdU>_Us$Eg6VZcgqHLqeY3>D${v^*oz~qR1@>0= z3oUGd#Cqid)Y~DHXl2SR`5YTNla?bVO8JcRrmOIeB;BlO&zPR2&b3R;U$WRe9m)Th zQ))KUMo(nZ!?ivpit}br3?{6~-V6+)&B+j-!V+k!fBk-8-Gd`r^hUNml%O9wrhGGd zJ7pFE*L6HvZ^KOuCJ<))URGYTRL8f!VDcVUV8B79xsh{vI~QjTzfcn=pqw%R<=i1{ zP%sK8;T_PIurr{VYZ~y=R literal 0 HcmV?d00001 diff --git a/bin/vue/Planning$1.class b/bin/vue/Planning$1.class index 03d1efbdd222771ce604bf2b0db1e15de5a7be8a..c7c5166f10fc1ef9c10565748fb527cecf4ca7c5 100644 GIT binary patch delta 509 zcmZXRNlF7z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bJc^6^_!<5s z&L*GMTsc6uRn8wBLwbBu;r7F?P#86wOA428XTI9$S6legHlW-`)gMzfncwnl$l;*k znYs-r%FmE38HO!6J9(2hFr2?jnR?(3-Wzvf7|~JAaV+j)+V956xQ8XY7a=}i)?pWM z6z$=IW;eDHLbvi!awi_d(|8CkkbV`9-~&90Z}A9A^rYnADH(!i;hDQpJP8Z+B&;;)bx|vk~uW#rfoFRvZjWm6vFZ&=$*cRAo zt-RbR(U;hyUS@xJC1x@wc4OxE->3PByHTlf!I7#7w-zFCZ=;#Z)xDi%6m}B{{r9VC z3@Twsv4rJtD~MSa-r#HHO{C#1Wa90Z!Ibz7o~0~WujQ7AX8oA!mp-d7uOzz97QZb; zqih*w@TyrfP=f-M8hpq%`bRMEF`LXMn98tc@HmX1Bp%1iL>vaPV#yJxI2@1}jDoL+ z_&Go~Sq=*76s`+zKz0noJ;)m4A#~X;y5La(h6sl~>%}~Obhs^}%552=xJP+4f(H!v ziYfV;$N3v}*6&!1gP4x**|QE|9)3VA4#zw!iks}ube&YhiaQY&-W^&G{ath@PA>KHDyF`9xonR1dXwFB|aAf6zp7$k$> z7awCz=i4$9lO+qYn6^5}#aWVv<%GaWVt0-BaTU+mR$kh-N>MB~@s~+gJU3@E->3BF zdj>0^UJ-7i(3S-QX1$6lCA?RM#Z<%*=k8ChTTWH=^m(LSPD|8oI7gmzxCo>zRzsmb l_w@fO+hJW<=pVU|E0biAoWZexRlkv=`s maListe = new Vector () ; + int nbC = 22 ; + + for (int i = 1 ; i < nbC ; i++) + maListe.add("Client " + i) ; + + liste = new JList(maListe) ; + + JScrollPane jsp = new JScrollPane(liste) ; + + + // Cr�er des composants et les ins�rer dans la fen�tre + + + this.l_title = new JLabel(" Liste des membres

") ; + this.b_retour = new JButton("Retour") ; + + this.pan_0 = new JPanel() ; + this.pan_1 = new JPanel() ; + this.pan_2 = new JPanel() ; + + + // Mise en place des composants + + pan_0.add(l_title) ; + + this.add(pan_0, BorderLayout.NORTH) ; + + pan_1.add(jsp); + + this.add(pan_1) ; + + pan_2.add(b_retour) ; + this.add(pan_2, BorderLayout.SOUTH) ; + } + + +} diff --git a/src/vue/Planning.java b/src/vue/Planning.java index 94e9a61..03462e1 100644 --- a/src/vue/Planning.java +++ b/src/vue/Planning.java @@ -48,7 +48,7 @@ public class Planning extends JPanel { super(); setYYMMDD(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DAY_OF_MONTH)); - buildGUI(); + System.out.println(buildGUI()); recompute(); print_button() ; } @@ -62,7 +62,7 @@ public class Planning extends JPanel { public Planning(int year, int month, int today) { super(); setYYMMDD(year, month, today); - buildGUI(); + System.out.println(buildGUI()); recompute(); print_button() ; } @@ -73,13 +73,13 @@ public class Planning extends JPanel { dd = today; } - String[] months = { "Janvier", "Fevrier", "Mars", "Avril", "Mai", "Juin", - "Juillet", "Aout", "Septembre", "Octobre", "Novembre", "Decembre" }; + String[] months = { "Janvier", "F�vrier", "Mars", "Avril", "Mai", "Juin", + "Juillet", "Ao�t", "Septembre", "Octobre", "Novembre", "D�cembre" }; - /** Build the GUI. Assumes that setYYMMDD has been called. */ - private void buildGUI() { + + private String buildGUI() { getAccessibleContext().setAccessibleDescription( - "Calendrier non disponible, desole"); + "Calendrier non disponible, d�sol�"); setBorder(BorderFactory.createEtchedBorder()); setLayout(new BorderLayout()); @@ -97,6 +97,7 @@ public class Planning extends JPanel { int i = monthChoice.getSelectedIndex(); if (i >= 0) { mm = i; + System.out.println("Mois=" + mm); recompute(); } } @@ -120,6 +121,7 @@ public class Planning extends JPanel { if (i >= 0) { yy = Integer.parseInt(yearChoice.getSelectedItem() .toString()); + System.out.println("Annee=" + yy); recompute(); } } @@ -145,7 +147,7 @@ public class Planning extends JPanel { if (!num.equals("")) { // met le jour actuel d'une couleur setDayActive(Integer.parseInt(num)); - } + } } }; @@ -158,6 +160,8 @@ public class Planning extends JPanel { } add(BorderLayout.CENTER, bp); + + return (Integer.toString(yy) + Integer.toString(mm)) ; } public final static int dom[] = { 31, 28, 31, 30, /* jan fev mar avr */ @@ -192,8 +196,8 @@ public class Planning extends JPanel { for (int i = leadGap + 1 + daysInMonth; i < 6 * 7; i++) { labs[(i) / 7][(i) % 7].setText(""); } - - // Shade current day, only if current month + + if (thisYear == yy && mm == thisMonth) setDayActive(dd); @@ -217,7 +221,7 @@ public class Planning extends JPanel { /** Set l'ann�e, le mois et le jour */ public void setDate(int yy, int mm, int dd) { this.yy = yy; - this.mm = mm; // starts at 0, like Date + this.mm = mm; // commence a 0 this.dd = dd; recompute(); } @@ -236,7 +240,7 @@ public class Planning extends JPanel { private int activeDay = -1; - /** Set just the day, on the current month */ + public void setDayActive(int newDay) { clearDayActive(); @@ -267,7 +271,7 @@ public class Planning extends JPanel { // rajouter bouton inscrire / d�sinscrire, si jour dispo ou non this.b_inscrire = new JButton("S'inscrire") ; - this.b_desinscrire = new JButton("Se desinscrire") ; + this.b_desinscrire = new JButton("Se d�sinscrire") ; b_inscrire.setEnabled(true) ; b_desinscrire.setEnabled(false) ; @@ -290,7 +294,6 @@ public class Planning extends JPanel { public void color_date(int day) { setTaskDay(day) ; } + - - }