Subversion Repositories eFlore/Archives.cel-v1

Rev

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

Rev 11 Rev 12
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;
-
 
19
import com.google.gwt.user.client.ui.DockPanel;
18
import com.google.gwt.user.client.ui.Composite;
20
import com.google.gwt.user.client.ui.HTML;
19
import com.google.gwt.user.client.ui.HTML;
21
import com.google.gwt.user.client.ui.HorizontalPanel;
20
import com.google.gwt.user.client.ui.HorizontalPanel;
Line 22... Line 21...
22
import com.google.gwt.user.client.ui.VerticalPanel;
21
import com.google.gwt.user.client.ui.VerticalPanel;
23
 
22
 
24
/**
23
/**
Line 25... Line 24...
25
 * Composite permet de wrapper des Widget pour creer un nouveau Widget cf methode initWidget()
24
 * Composite permet de wrapper des Widget pour creer un nouveau Widget cf methode initWidget()
Line 26... Line -...
26
 */
-
 
27
 
-
 
Line 28... Line -...
28
public class TopPanel extends Composite {
-
 
Line 29... Line -...
29
	
-
 
30
  private NameAssistant nameAssistant = null;
-
 
31
  private LocationAssistant locationAssistant = null;
-
 
32
 
25
 */
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);
-
 
Line 49... Line -...
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%");
26
 
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%");
-
 
Line 64... Line 27...
64
	 locationPanel.setWidth("50%");
27
public class TopPanel extends Composite {
Line 65... Line 28...
65
	 
28
 
Line 66... Line -...
66
	 inner.add(namePanel);
-
 
67
	 inner.add(locationPanel);
-
 
68
	
-
 
69
	 inner.setCellWidth(namePanel,"50%");
-
 
70
	 inner.setCellWidth(locationPanel,"50%");
-
 
Line 71... Line 29...
71
 
29
	
72
 
30