Subversion Repositories eFlore/Applications.coel

Rev

Rev 553 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 553 Rev 716
Line 10... Line 10...
10
import com.extjs.gxt.ui.client.util.Format;
10
import com.extjs.gxt.ui.client.util.Format;
11
import com.extjs.gxt.ui.client.util.Params;
11
import com.extjs.gxt.ui.client.util.Params;
12
import com.extjs.gxt.ui.client.widget.ContentPanel;
12
import com.extjs.gxt.ui.client.widget.ContentPanel;
13
import com.extjs.gxt.ui.client.widget.Html;
13
import com.extjs.gxt.ui.client.widget.Html;
14
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
14
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
-
 
15
import com.google.gwt.user.client.Window;
Line 15... Line 16...
15
 
16
 
Line 16... Line 17...
16
public class PublicationDetailVue extends ContentPanel implements Rafraichissable {
17
public class PublicationDetailVue extends ContentPanel implements Rafraichissable {
17
	
18
	
Line 18... Line 19...
18
	private Mediateur mediateur = null;
19
	private Mediateur mediateur = null;
19
	private Constantes i18nC = null;
20
	private Constantes i18nC = null;
20
	
21
	
21
	private ContentPanel content;
22
	private ContentPanel content;
22
	private Html header;
23
	private Html header;
23
	private String enteteHTML = "<div class='coel-detail'><h1>{0}</h1><h2>{1}</h2><h2>{2}</h2></div>";
24
	private String enteteHTML = "<div id='coel-detail-entete'><div id='css_id'><h1>{0}</h1><h2>{1}</h2><h2>{2}</h2></div></div>";
24
	private String contenuHTML = "<div style='padding: 12px;'><h2>Détails de la publication</h2><span style='font-weight:bold;'>Nom de la revue :</span> {0}<br /><span style='font-weight:bold;'>Editeur :</span> {1}<br /><span style='font-weight:bold;'>Année :</span> {2}<br /><span style='font-weight:bold;'>Tome :</span> {3}<br /><span style='font-weight:bold;'>Fascicule :</span> {4}<br /><span style='font-weight:bold;'>Pages :</span> {5}</div>";
25
	private String contenuHTML = "<div id='coel-detail-corps'><div class='css_fieldset coel-detail-corps-contenu'><h2>Détails de la publication</h2><span style='font-weight:bold;'>Nom de la revue :</span> {0}<br /><span style='font-weight:bold;'>Editeur :</span> {1}<br /><span style='font-weight:bold;'>Année :</span> {2}<br /><span style='font-weight:bold;'>Tome :</span> {3}<br /><span style='font-weight:bold;'>Fascicule :</span> {4}<br /><span style='font-weight:bold;'>Pages :</span> {5}</div></div>";
Line 25... Line 26...
25
	private String publicationNom = null;
26
	private String publicationNom = null;
Line 37... Line 38...
37
		content.setBodyBorder(false);
38
		content.setBodyBorder(false);
38
		content.setHeaderVisible(false);
39
		content.setHeaderVisible(false);
39
		content.setScrollMode(Scroll.AUTO);
40
		content.setScrollMode(Scroll.AUTO);
Line 40... Line 41...
40
 
41
 
41
		header = new Html();
-
 
42
		header.setStyleName("coel-detail");
42
		header = new Html();
Line 43... Line 43...
43
		content.setTopComponent(header);
43
		content.setTopComponent(header);
44
 
44
 
Line 78... Line 78...
78
			content.removeAll();
78
			content.removeAll();
79
		}
79
		}
80
	}
80
	}
Line 81... Line 81...
81
 
81
 
-
 
82
	public void rafraichir(Object nouvelleDonnees) {
82
	public void rafraichir(Object nouvelleDonnees) {
83
		
83
		if (nouvelleDonnees instanceof Publication) {
84
		if (nouvelleDonnees instanceof Publication) {
84
			afficherDetailPublication((Publication) nouvelleDonnees);
85
			afficherDetailPublication((Publication) nouvelleDonnees);
85
		} else if (nouvelleDonnees instanceof PublicationListe) {
86
		} else if (nouvelleDonnees instanceof PublicationListe) {
86
			PublicationListe listePublication = (PublicationListe) nouvelleDonnees;
87
			PublicationListe listePublication = (PublicationListe) nouvelleDonnees;