| Line 2... |
Line 2... |
| 2 |
|
2 |
|
| 3 |
import org.tela_botanica.client.ComposantClass;
|
3 |
import org.tela_botanica.client.ComposantClass;
|
| 4 |
import org.tela_botanica.client.ComposantId;
|
4 |
import org.tela_botanica.client.ComposantId;
|
| 5 |
import org.tela_botanica.client.Mediateur;
|
5 |
import org.tela_botanica.client.Mediateur;
|
| - |
|
6 |
import org.tela_botanica.client.RegistreId;
|
| 6 |
import org.tela_botanica.client.RegistreId;
|
7 |
import org.tela_botanica.client.images.Images;
|
| 7 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
8 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
| 8 |
import org.tela_botanica.client.modeles.Information;
|
9 |
import org.tela_botanica.client.modeles.Information;
|
| Line 9... |
Line 10... |
| 9 |
import org.tela_botanica.client.modeles.Utilisateur;
|
10 |
import org.tela_botanica.client.modeles.Utilisateur;
|
| Line 89... |
Line 90... |
| 89 |
identificationBouton.setId(ComposantId.BTN_CONNEXION);
|
90 |
identificationBouton.setId(ComposantId.BTN_CONNEXION);
|
| 90 |
barreBoutons.add(identificationBouton);
|
91 |
barreBoutons.add(identificationBouton);
|
| Line 91... |
Line 92... |
| 91 |
|
92 |
|
| 92 |
Button parametresBouton = new Button("Paramêtres", boutonEcouteur);
|
93 |
Button parametresBouton = new Button("Paramêtres", boutonEcouteur);
|
| 93 |
parametresBouton.setId(ComposantId.BTN_PARAMETRES);
|
94 |
parametresBouton.setId(ComposantId.BTN_PARAMETRES);
|
| 94 |
parametresBouton.setIconStyle(ComposantClass.ICONE_PARAMETRE);
|
95 |
parametresBouton.setIcon(Images.ICONES.engrenages());
|
| Line 95... |
Line 96... |
| 95 |
barreBoutons.add(parametresBouton);
|
96 |
barreBoutons.add(parametresBouton);
|
| 96 |
|
97 |
|
| 97 |
Button aideBouton = new Button("Aide", boutonEcouteur);
|
98 |
Button aideBouton = new Button("Aide", boutonEcouteur);
|
| 98 |
aideBouton.setId(ComposantId.BTN_AIDE);
|
99 |
aideBouton.setId(ComposantId.BTN_AIDE);
|
| Line 99... |
Line 100... |
| 99 |
aideBouton.setIconStyle(ComposantClass.ICONE_AIDE);
|
100 |
aideBouton.setIcon(Images.ICONES.aide());
|
| 100 |
barreBoutons.add(aideBouton);
|
101 |
barreBoutons.add(aideBouton);
|
| 101 |
|
102 |
|
| Line 113... |
Line 114... |
| 113 |
Info.display(mediateur.i18nC.chargement(), "Ouverture de l'application «{0}» en cours...", mi.getText());
|
114 |
Info.display(mediateur.i18nC.chargement(), "Ouverture de l'application «{0}» en cours...", mi.getText());
|
| 114 |
((Mediateur) Registry.get(RegistreId.MEDIATEUR)).ouvrirApplis(ComposantId.MENU_CEL);
|
115 |
((Mediateur) Registry.get(RegistreId.MEDIATEUR)).ouvrirApplis(ComposantId.MENU_CEL);
|
| 115 |
}
|
116 |
}
|
| 116 |
});
|
117 |
});
|
| 117 |
menuCel.setId(ComposantId.MENU_CEL);
|
118 |
menuCel.setId(ComposantId.MENU_CEL);
|
| 118 |
menuCel.setIconStyle(ComposantClass.ICONE_CEL);
|
119 |
menuCel.setIcon(Images.ICONES.images());
|
| 119 |
menu.add(menuCel);
|
120 |
menu.add(menuCel);
|
| 120 |
MenuItem menuBel = new MenuItem("Biblio en ligne");
|
121 |
MenuItem menuBel = new MenuItem("Biblio en ligne");
|
| 121 |
menuBel.addSelectionListener(new SelectionListener<MenuEvent>() {
|
122 |
menuBel.addSelectionListener(new SelectionListener<MenuEvent>() {
|
| 122 |
@Override
|
123 |
@Override
|
| 123 |
public void componentSelected(MenuEvent mEvent) {
|
124 |
public void componentSelected(MenuEvent mEvent) {
|
| Line 126... |
Line 127... |
| 126 |
Info.display(mediateur.i18nC.chargement(), "Ouverture de l'application «{0}» en cours...", mi.getText());
|
127 |
Info.display(mediateur.i18nC.chargement(), "Ouverture de l'application «{0}» en cours...", mi.getText());
|
| 127 |
((Mediateur) Registry.get(RegistreId.MEDIATEUR)).ouvrirApplis(ComposantId.MENU_BEL);
|
128 |
((Mediateur) Registry.get(RegistreId.MEDIATEUR)).ouvrirApplis(ComposantId.MENU_BEL);
|
| 128 |
}
|
129 |
}
|
| 129 |
});
|
130 |
});
|
| 130 |
menuBel.setId(ComposantId.MENU_BEL);
|
131 |
menuBel.setId(ComposantId.MENU_BEL);
|
| 131 |
menuBel.setIconStyle(ComposantClass.ICONE_BEL);
|
132 |
menuBel.setIcon(Images.ICONES.livreOuvert());
|
| 132 |
menu.add(menuBel);
|
133 |
menu.add(menuBel);
|
| Line 133... |
Line 134... |
| 133 |
|
134 |
|
| 134 |
applisBouton.setMenu(menu);
|
135 |
applisBouton.setMenu(menu);
|
| 135 |
applisBouton.setIconStyle(ComposantClass.ICONE_BASCULE);
|
136 |
applisBouton.setIcon(Images.ICONES.flecheBascule());
|
| Line 136... |
Line 137... |
| 136 |
barreBoutons.add(applisBouton);
|
137 |
barreBoutons.add(applisBouton);
|
| 137 |
|
138 |
|
| 138 |
add(html, new RowData(.3, 1));
|
139 |
add(html, new RowData(.3, 1));
|
| Line 146... |
Line 147... |
| 146 |
if (info.getType().equals("maj_utilisateur")) {
|
147 |
if (info.getType().equals("maj_utilisateur")) {
|
| 147 |
Utilisateur utilisateur = ((Utilisateur) Registry.get(RegistreId.UTILISATEUR_COURANT));
|
148 |
Utilisateur utilisateur = ((Utilisateur) Registry.get(RegistreId.UTILISATEUR_COURANT));
|
| 148 |
if (utilisateur.isIdentifie() == true) {
|
149 |
if (utilisateur.isIdentifie() == true) {
|
| 149 |
identificationInfoHtml.setHtml(Format.substitute(identificationInfoTpl, (new Params()).add("Bienvenue : "+utilisateur.getNomComplet())));
|
150 |
identificationInfoHtml.setHtml(Format.substitute(identificationInfoTpl, (new Params()).add("Bienvenue : "+utilisateur.getNomComplet())));
|
| 150 |
identificationBouton.setText("Deconnexion");
|
151 |
identificationBouton.setText("Deconnexion");
|
| 151 |
identificationBouton.setIconStyle(ComposantClass.ICONE_DECONNEXION);
|
152 |
identificationBouton.setIcon(Images.ICONES.deconnexion());
|
| 152 |
identificationBouton.setId(ComposantId.BTN_DECONNEXION);
|
153 |
identificationBouton.setId(ComposantId.BTN_DECONNEXION);
|
| 153 |
} else {
|
154 |
} else {
|
| 154 |
identificationInfoHtml.setHtml(Format.substitute(identificationInfoTpl, (new Params()).add("Mode anonyme")));
|
155 |
identificationInfoHtml.setHtml(Format.substitute(identificationInfoTpl, (new Params()).add("Mode anonyme")));
|
| 155 |
identificationBouton.setText("Identifiez vous...");
|
156 |
identificationBouton.setText("Identifiez vous...");
|
| 156 |
identificationBouton.setIconStyle(ComposantClass.ICONE_CONNEXION);
|
157 |
identificationBouton.setIcon(Images.ICONES.connexion());
|
| 157 |
identificationBouton.setId(ComposantId.BTN_CONNEXION);
|
158 |
identificationBouton.setId(ComposantId.BTN_CONNEXION);
|
| 158 |
}
|
159 |
}
|
| 159 |
}
|
160 |
}
|
| 160 |
} else {
|
161 |
} else {
|
| 161 |
GWT.log("Ce type d'objet n'est pas pris en compte par la méthode rafraichir de la classe "+getClass(), null);
|
162 |
GWT.log("Ce type d'objet n'est pas pris en compte par la méthode rafraichir de la classe "+getClass(), null);
|