Package com.gwt.tutorial.LoginManager.client

Source Code of com.gwt.tutorial.LoginManager.client.LoginManager

package com.gwt.tutorial.LoginManager.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Label;

/**
* Entry point classes define <code>onModuleLoad()</code>.
*/
public class LoginManager implements EntryPoint {
  public void onModuleLoad() {
    RootPanel rootPanel = RootPanel.get();
   
    HorizontalPanel horizontalPanel = new HorizontalPanel();
    rootPanel.add(horizontalPanel, 10, 10);
    horizontalPanel.setSize("470px", "212px");
   
    VerticalPanel verticalPanel = new VerticalPanel();
    horizontalPanel.add(verticalPanel);
   
    Label lblWelcomeToThe = new Label("Welcome to my login page");
    lblWelcomeToThe.setStyleName("gwt-Label-Login");
    verticalPanel.add(lblWelcomeToThe);
    lblWelcomeToThe.setSize("206px", "124px");
   
    Login login = new Login();
    horizontalPanel.add(login);
  }
}
TOP

Related Classes of com.gwt.tutorial.LoginManager.client.LoginManager

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.