*/
public void onModuleLoad() {
// Add the nameField and sendButton to the RootPanel
// Use RootPanel.get() to get the entire body element
RootPanel rootPanel = RootPanel.get("nameFieldContainer");
rootPanel.setSize("479", "200");
rootPanel.setStyleName("gwt-RootPanel");
DeckPanel deckPanel = new DeckPanel();
deckPanel.setStyleName("gwt-Container");
rootPanel.add(deckPanel, 0, 0);
deckPanel.setSize("479px", "171px");
VerticalPanel deckChild1 = new VerticalPanel();
deckPanel.add(deckChild1);
deckChild1.setSize("100%", "141px");
Label lblTitleProject = new Label("Creare un nuovo baseData progetto.");
deckChild1.add(lblTitleProject);
FlexTable flexTableProject = new FlexTable();
flexTableProject.setCellPadding(4);
deckChild1.add(flexTableProject);
flexTableProject.setWidth("100%");
Label lblNomeProject = new Label("Nome");
lblNomeProject.setStyleName("gwt-Label gwt-Required");
flexTableProject.setWidget(0, 0, lblNomeProject);
TextBox txtNomeProject = new TextBox();
txtNomeProject.setFocus(true);
flexTableProject.setWidget(0, 1, txtNomeProject);
txtNomeProject.setWidth("100%");
Label lblDescriptionProject = new Label("Descrizione");
flexTableProject.setWidget(1, 0, lblDescriptionProject);
lblDescriptionProject.setWidth("");
TextArea txtDescriptionProject = new TextArea();
txtDescriptionProject.setTabIndex(1);
flexTableProject.setWidget(1, 1, txtDescriptionProject);
txtDescriptionProject.setWidth("100%");
flexTableProject.getCellFormatter().setVerticalAlignment(1, 0, HasVerticalAlignment.ALIGN_TOP);
flexTableProject.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_TOP);
VerticalPanel deckChild2 = new VerticalPanel();
deckChild2.setVisible(false);
deckPanel.add(deckChild2);
deckChild2.setSize("100%", "141px");
Label lblTitleEntityInfo = new Label("Immaginare un contenitore che verr\u00E0 riempito con dati che servono a te. Qui definisci che tipi di dati di inserire.");
deckChild2.add(lblTitleEntityInfo);
SplitLayoutPanel splitEntityInfo = new SplitLayoutPanel();
deckChild2.add(splitEntityInfo);
splitEntityInfo.setHeight("88px");
Tree tree = new Tree();
splitEntityInfo.addEast(tree, 209.0);
TreeItem trtmProject = new TreeItem("Project");
tree.addItem(trtmProject);
VerticalPanel verticalPanel = new VerticalPanel();
splitEntityInfo.add(verticalPanel);
Label lblContainer = new Label("Prima di iniziare, dobbiamo definire un nome per questo contenitore:");
verticalPanel.add(lblContainer);
FlexTable flexTableContainer = new FlexTable();
verticalPanel.add(flexTableContainer);
flexTableContainer.setSize("100%", "");
Label lblNomeContainer = new Label("Nome");
flexTableContainer.setWidget(0, 0, lblNomeContainer);
TextBox txtNomeContainer = new TextBox();
flexTableContainer.setWidget(0, 1, txtNomeContainer);
VerticalPanel deckChild3 = new VerticalPanel();
deckChild3.setVisible(false);
deckPanel.add(deckChild3);
deckChild3.setHeight("142px");
Label lblTitleAttributes = new Label("Eccellente! Ora iniziamo definire il tuo oggetto.");
deckChild3.add(lblTitleAttributes);
SplitLayoutPanel splitAttributes = new SplitLayoutPanel();
deckChild3.add(splitAttributes);
splitAttributes.setHeight("88px");
Tree treeAttribute = new Tree();
splitAttributes.addEast(treeAttribute, 209.0);
TreeItem trtmProjectAttribute = new TreeItem("Project");
treeAttribute.addItem(trtmProjectAttribute);
TreeItem trtmEntityInfo = new TreeItem("Entity name");
trtmProjectAttribute.addItem(trtmEntityInfo);
trtmProjectAttribute.setState(true);
VerticalPanel verticalPanelAttribute = new VerticalPanel();
splitAttributes.add(verticalPanelAttribute);
FlexTable flexTableAttribute = new FlexTable();
verticalPanelAttribute.add(flexTableAttribute);
flexTableAttribute.setSize("100%", "null");
Label lblNomeAttribute = new Label("Nome attributo");
lblNomeAttribute.setWordWrap(false);
flexTableAttribute.setWidget(0, 0, lblNomeAttribute);
lblNomeAttribute.setWidth("");
TextBox txtAttributeName = new TextBox();
flexTableAttribute.setWidget(0, 1, txtAttributeName);
txtAttributeName.setWidth("100%");
flexTableAttribute.getCellFormatter().setVerticalAlignment(0, 1, HasVerticalAlignment.ALIGN_TOP);
deckPanel.showWidget(0);
btnContinue = new Button("");
rootPanel.add(btnContinue, 4, 149);
btnContinue.setSize("86px", "27px");
btnContinue.setTabIndex(3);
btnContinue.setText("Continua");
}