Subversion Repositories eFlore/Archives.cel-v1

Rev

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

Rev 10 Rev 11
Line 1... Line 1...
1
package org.tela_botanica.client;
1
package org.tela_botanica.client;
Line 2... Line 2...
2
 
2
 
3
import com.google.gwt.user.client.ui.Composite;
-
 
4
import com.google.gwt.user.client.ui.DockPanel;
-
 
5
import com.google.gwt.user.client.ui.HTML;
3
import com.google.gwt.user.client.ui.Composite;
Line 6... Line 4...
6
import com.google.gwt.user.client.ui.VerticalPanel;
4
import com.google.gwt.user.client.ui.VerticalPanel;
7
 
-
 
Line 8... Line 5...
8
 
5
 
9
import org.tela_botanica.client.TaxonList;
6
 
10
import org.tela_botanica.client.NameAssistant;
7
import org.tela_botanica.client.InventoryItemList;
Line 11... Line 8...
11
 
8
 
Line 12... Line 9...
12
/**
9
/**
13
 * Composite permet de wrapper des Widgett pour creer un nouveau Widget cf methode initWidget()
-
 
14
 */
-
 
15
 
-
 
16
public class CenterPanel extends Composite {
10
 * Composite permet de wrapper des Widgett pour creer un nouveau Widget cf methode initWidget()
17
 
11
 */
Line 18... Line 12...
18
	
12
 
19
  private TaxonList taxonList = null;
-
 
20
  private NameAssistant nameAssistant = null;
-
 
21
  private LocationAssistant locationAssistant = null;
-
 
Line 22... Line -...
22
 
-
 
23
 
-
 
24
  public CenterPanel(Mediator mediator) {
-
 
25
 
-
 
26
	
13
public class CenterPanel extends Composite {
27
	taxonList = new TaxonList(mediator);
-
 
28
	
-
 
29
	nameAssistant = new NameAssistant(taxonList);
-
 
30
	locationAssistant = new LocationAssistant(taxonList);
-
 
31
 
-
 
32
	  
-
 
33
	taxonList.setNameProvider(nameAssistant);
-
 
34
	taxonList.setLocationProvider(locationAssistant);
-
 
35
	  
-
 
36
    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
	 
-
 
Line 53... Line -...
53
	 locationAssistant.setWidth("100%");
-
 
54
	 locationPanel.setCellWidth(locationAssistant,"100%");
14
 
55
	 locationPanel.setWidth("100%");
-
 
56
	 
15
	
Line 57... Line 16...
57
	 inner.add(namePanel,DockPanel.WEST);
16
  private InventoryItemList inventoryItemList = null;
58
	 inner.add(locationPanel,DockPanel.CENTER);
17