Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.RootPanel


        // iview is focused when created so element needs tabIndex
        // 1 due 0 is at the end of natural tabbing order
        DOM.setElementProperty(getElement(), "tabIndex", "1");

        RootPanel root = RootPanel.get(rootPanelId);

        // Remove the v-app-loading or any splash screen added inside the div by
        // the user
        root.getElement().setInnerHTML("");
        // For backwards compatibility with static index pages only.
        // No longer added by AbstractApplicationServlet/Portlet
        root.removeStyleName("v-app-loading");

        root.add(this);

        if (applicationConnection.getConfiguration().isStandalone()) {
            // set focus to iview element by default to listen possible keyboard
            // shortcuts. For embedded applications this is unacceptable as we
            // don't want to steal focus from the main page nor we don't want
View Full Code Here


  public void onModuleLoad() {
    KtrWjrServiceAsync rpcService = GWT.create(KtrWjrService.class);
    WjrPresenter presenter =
      new WjrPresenter(rpcService, new WjrLoadingView(), new WjrView());

    RootPanel initialPanel = RootPanel.get(INITIAL_PANEL_ID);
    if (initialPanel != null) {
      initialPanel.getElement().removeFromParent();
    }

    presenter.go(RootLayoutPanel.get());
  }
View Full Code Here

   
    if (!attemptToLoadModule()) {
      return;
    }

    RootPanel adContent = RootPanel.get("adContent");
    if (adContent != null) {
      adContent.removeFromParent();
      adContent.setVisible(false);
      adContent.setHeight("0px");
    }

    setApplicationInitialized();

    addStartupListener(this);
View Full Code Here

      startupListener.loadModule();
    }
  }

  private static void clearLoadingIndicator() {
    RootPanel loadingPanel = RootPanel.get("loading");
    if (loadingPanel != null) {
      loadingPanel.removeFromParent();
      loadingPanel.setVisible(false);
      loadingPanel.setHeight("0px");
    }
  }
View Full Code Here

   */
  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");
 
View Full Code Here

    HorizontalPanel applicationPanel = new HorizontalPanel();
    applicationPanel.setStyleName("applicationPanel");
    applicationPanel.add(contentTable);

    RootPanel rp = RootPanel.get("content");
    rp.add(applicationPanel);
  }
View Full Code Here

  private Painter painter;
  private Controller controller;

  public void onModuleLoad() {
    canvas = Canvas.createIfSupported();
    RootPanel container = RootPanel.get(CONTAINER_ID);
    if (canvas == null) {
      container.add(new Label("No canvas, get Chrome!"));
    } else {
      canvas.setCoordinateSpaceWidth(container.getOffsetWidth());
      canvas.setCoordinateSpaceHeight(container.getOffsetHeight());
      container.add(canvas);

      painter = new Painter(canvas, new ClassicTheme());   
      controller = new Controller(canvas, painter);
    }
  }
View Full Code Here

    HorizontalPanel applicationPanel = new HorizontalPanel();
    applicationPanel.setStyleName("applicationPanel");
    applicationPanel.add(contentTable);

    RootPanel rp = RootPanel.get("content");
    rp.add(applicationPanel);
  }
View Full Code Here

    HorizontalPanel applicationPanel = new HorizontalPanel();
    applicationPanel.setStyleName("applicationPanel");
    applicationPanel.add(contentTable);

    RootPanel rp = RootPanel.get("content");
    rp.add(applicationPanel);
  }
View Full Code Here

  public String getRandomQuote() {
    return quotes.get(Random.nextInt(quotes.size()));
  }

  public void activate() {
    RootPanel quotePanel = RootPanel.get("quote");
    if(quotePanel != null) {
      init();
     
      quotePanel.getElement().setInnerHTML(getRandomQuote());
    }
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.RootPanel

Copyright © 2018 www.massapicom. 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.