Rev 6 | Blame | Last modification | View Log | RSS feed
package org.tela_botanica.client;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.DockPanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.VerticalPanel;
import org.tela_botanica.client.TaxonList;
import org.tela_botanica.client.NameAssistant;
/**
* Composite permet de wrapper des Widgett pour creer un nouveau Widget cf methode initWidget()
*/
public class CenterPanel extends Composite {
private TaxonList taxonList = new TaxonList();
private NameAssistant nameAssistant = new NameAssistant(taxonList);
public CenterPanel() {
VerticalPanel outer = new VerticalPanel();
DockPanel inner = new DockPanel();
nameAssistant.setWidth("50%");
inner.add(new HTML("Nom: "),DockPanel.WEST);
inner.add (nameAssistant,DockPanel.CENTER);
nameAssistant.setWidth("40%");
inner.setCellWidth(nameAssistant,"100%");
inner.setWidth("100%");
outer.add(inner);
outer.add(taxonList);
taxonList.setWidth("100%");
initWidget(outer);
}
}