Subversion Repositories eFlore/Archives.cel-v1

Rev

Rev 8 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8 Rev 10
Line 13... Line 13...
13
 * Composite permet de wrapper des Widgett pour creer un nouveau Widget cf methode initWidget()
13
 * Composite permet de wrapper des Widgett pour creer un nouveau Widget cf methode initWidget()
14
 */
14
 */
Line 15... Line 15...
15
 
15
 
Line 16... Line -...
16
public class CenterPanel extends Composite {
-
 
17
 
-
 
Line -... Line 16...
-
 
16
public class CenterPanel extends Composite {
-
 
17
 
-
 
18
	
Line -... Line 19...
-
 
19
  private TaxonList taxonList = null;
18
  private TaxonList taxonList = new TaxonList();
20
  private NameAssistant nameAssistant = null;
-
 
21
  private LocationAssistant locationAssistant = null;
-
 
22
 
-
 
23
 
-
 
24
  public CenterPanel(Mediator mediator) {
-
 
25
 
-
 
26
	
-
 
27
	taxonList = new TaxonList(mediator);
-
 
28
	
-
 
29
	nameAssistant = new NameAssistant(taxonList);
-
 
30
	locationAssistant = new LocationAssistant(taxonList);
Line 19... Line 31...
19
  private NameAssistant nameAssistant = new NameAssistant(taxonList);
31
 
20
 
32
	  
Line -... Line 33...
-
 
33
	taxonList.setNameProvider(nameAssistant);
-
 
34
	taxonList.setLocationProvider(locationAssistant);
Line 21... Line -...
21
 
-
 
Line 22... Line 35...
22
  public CenterPanel() {
35
	  
23
	  
36
    VerticalPanel outer = new VerticalPanel();
Line 24... Line 37...
24
    VerticalPanel outer = new VerticalPanel();
37
    DockPanel inner = new DockPanel();
25
    DockPanel inner = new DockPanel();
38
   
26
    
39
    DockPanel namePanel = new DockPanel();
-
 
40
    DockPanel locationPanel = new DockPanel();
-
 
41
    
-
 
42
 
-
 
43
     namePanel.add(new HTML("Nom: "),DockPanel.WEST);
-
 
44
     namePanel.add (nameAssistant,DockPanel.CENTER);
-
 
45
	 
-
 
46
	 nameAssistant.setWidth("100%");
-
 
47
	 namePanel.setCellWidth(nameAssistant,"100%");
-
 
48
	 namePanel.setWidth("100%");
-
 
49
	 
-
 
50
     locationPanel.add(new HTML("Lieu: "),DockPanel.WEST);
-
 
51
     locationPanel.add (locationAssistant,DockPanel.CENTER);
-
 
52
	 
Line 27... Line 53...
27
    
53
	 locationAssistant.setWidth("100%");
28
    nameAssistant.setWidth("50%");
54
	 locationPanel.setCellWidth(locationAssistant,"100%");
-
 
55
	 locationPanel.setWidth("100%");
29
 
56
	 
Line 30... Line 57...
30
     inner.add(new HTML("Nom: "),DockPanel.WEST);
57
	 inner.add(namePanel,DockPanel.WEST);
31
     inner.add (nameAssistant,DockPanel.CENTER);
58
	 inner.add(locationPanel,DockPanel.CENTER);
Line -... Line 59...
-
 
59
	 
-
 
60
	 inner.setCellWidth(namePanel,"50%");
32
	 
61
	 inner.setCellWidth(locationPanel,"50%");