Package com.stormBrain.basedata.client

Source Code of com.stormBrain.basedata.client.BaseData

package com.stormBrain.basedata.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.DeckPanel;
import com.google.gwt.user.client.ui.DockPanel;
import com.google.gwt.user.client.ui.DockLayoutPanel;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.HasVerticalAlignment;
import com.google.gwt.user.client.ui.SplitLayoutPanel;
import com.google.gwt.user.client.ui.Tree;
import com.google.gwt.user.client.ui.TreeItem;
import com.google.gwt.user.client.ui.Widget;

/**
* Entry point classes define <code>onModuleLoad()</code>.
*/
public class BaseData implements EntryPoint {
  private Button btnContinue;

  /**
   * This is the entry point method.
   */
  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");
 
}
TOP

Related Classes of com.stormBrain.basedata.client.BaseData

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.