Subversion Repositories eFlore/Archives.cel-v1

Rev

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

Rev 2 Rev 11
Line 14... Line 14...
14
 * the License.
14
 * the License.
15
 */
15
 */
16
package org.tela_botanica.client;
16
package org.tela_botanica.client;
Line 17... Line 17...
17
 
17
 
-
 
18
import com.google.gwt.user.client.ui.Composite;
18
import com.google.gwt.user.client.ui.Composite;
19
import com.google.gwt.user.client.ui.DockPanel;
19
import com.google.gwt.user.client.ui.HTML;
20
import com.google.gwt.user.client.ui.HTML;
-
 
21
import com.google.gwt.user.client.ui.HorizontalPanel;
Line 20... Line 22...
20
import com.google.gwt.user.client.ui.HorizontalPanel;
22
import com.google.gwt.user.client.ui.VerticalPanel;
21
 
23
 
22
/**
24
/**
Line 23... Line 25...
23
 * Composite permet de wrapper des Widget pour creer un nouveau Widget cf methode initWidget()
25
 * Composite permet de wrapper des Widget pour creer un nouveau Widget cf methode initWidget()
-
 
26
 */
-
 
27
 
-
 
28
public class TopPanel extends Composite {
Line 24... Line 29...
24
 */
29
	
Line -... Line 30...
-
 
30
  private NameAssistant nameAssistant = null;
25
 
31
  private LocationAssistant locationAssistant = null;
-
 
32
 
-
 
33
  public TopPanel(final Mediator mediator) {
-
 
34
	  
-
 
35
	  
-
 
36
   VerticalPanel outer = new VerticalPanel();
-
 
37
    
-
 
38
   VerticalPanel inner = new VerticalPanel();
-
 
39
    
-
 
40
 
-
 
41
	nameAssistant = new NameAssistant(mediator);
-
 
42
	locationAssistant = new LocationAssistant(mediator);
-
 
43
	
-
 
44
	DockPanel namePanel = new DockPanel();
-
 
45
	DockPanel locationPanel = new DockPanel();
-
 
46
	       
-
 
47
     HTML labelNameAssistant = new HTML("Nom: ");
-
 
48
     namePanel.add(labelNameAssistant,DockPanel.WEST);
-
 
49
     namePanel.add (nameAssistant,DockPanel.CENTER);
-
 
50
	 
-
 
51
	 nameAssistant.setWidth("100%");
-
 
52
	 namePanel.setCellWidth(labelNameAssistant,"7%");
-
 
53
	 namePanel.setCellWidth(nameAssistant,"93%");
-
 
54
	 namePanel.setWidth("50%");
-
 
55
 
-
 
56
	 
-
 
57
     HTML labelLocationAssistant= new HTML("Lieu: ");
-
 
58
     locationPanel.add(labelLocationAssistant,DockPanel.WEST);
-
 
59
     locationPanel.add (locationAssistant,DockPanel.CENTER);
-
 
60
	 
-
 
61
	 locationAssistant.setWidth("100%");
-
 
62
	 locationPanel.setCellWidth(locationAssistant,"7%");
-
 
63
	 locationPanel.setCellWidth(locationAssistant,"93%");
-
 
64
	 locationPanel.setWidth("50%");
-
 
65
	 
-
 
66
	 inner.add(namePanel);
-
 
67
	 inner.add(locationPanel);
-
 
68
	
-
 
69
	 inner.setCellWidth(namePanel,"50%");
-
 
70
	 inner.setCellWidth(locationPanel,"50%");
-
 
71
 
-
 
72
 
-
 
73
		
-
 
74
	outer.setHorizontalAlignment(HorizontalPanel.ALIGN_RIGHT);
-
 
75
 
Line 26... Line 76...
26
public class TopPanel extends Composite {
76
	 outer.add(new HTML("<b>Carnet en ligne</b>"));
Line 27... Line -...
27
 
-
 
Line 28... Line 77...
28
  public TopPanel() {
77
 
29
	  
78
	 outer.setHorizontalAlignment(HorizontalPanel.ALIGN_LEFT);
Line 30... Line 79...
30
    HorizontalPanel outer = new HorizontalPanel();
79