Subversion Repositories eFlore/Archives.cel-v1

Rev

Rev 8 | Go to most recent revision | Show entire file | Ignore 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 -... Line 16...
-
 
16
public class CenterPanel extends Composite {
16
public class CenterPanel extends Composite {
17
 
17
 
18
	
-
 
19
  private TaxonList taxonList = null;
Line 18... Line 20...
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
	  
-
 
33
	taxonList.setNameProvider(nameAssistant);
-
 
34
	taxonList.setLocationProvider(locationAssistant);
-
 
35
	  
Line 21... Line -...
21
 
-
 
22
  public CenterPanel() {
-
 
Line 23... Line 36...
23
	  
36
    VerticalPanel outer = new VerticalPanel();
24
    VerticalPanel outer = new VerticalPanel();
37
    DockPanel inner = new DockPanel();
-
 
38
   
-
 
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
	 
-
 
53
	 locationAssistant.setWidth("100%");
-
 
54
	 locationPanel.setCellWidth(locationAssistant,"100%");
-
 
55
	 locationPanel.setWidth("100%");
Line 25... Line -...
25
    DockPanel inner = new DockPanel();
-
 
26
    
-
 
27
    
-
 
28
    nameAssistant.setWidth("50%");
-
 
29
 
-
 
30
     inner.add(new HTML("Nom: "),DockPanel.WEST);
56
	 
31
     inner.add (nameAssistant,DockPanel.CENTER);
57
	 inner.add(namePanel,DockPanel.WEST);
-
 
58
	 inner.add(locationPanel,DockPanel.CENTER);
32
	 
59
	 
Line 33... Line 60...
33
	 nameAssistant.setWidth("40%");
60
	 inner.setCellWidth(namePanel,"50%");
34
	 inner.setCellWidth(nameAssistant,"100%");
61
	 inner.setCellWidth(locationPanel,"50%");
Line -... Line 62...
-
 
62
 
-
 
63
	 
35
	 inner.setWidth("100%");
64
	 outer.add(inner);