Package com.google.gwt.topspin.example.client

Source Code of com.google.gwt.topspin.example.client.TopSpinExample

/*
* Copyright 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.gwt.topspin.example.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.topspin.ui.client.Button;
import com.google.gwt.topspin.ui.client.ClickEvent;
import com.google.gwt.topspin.ui.client.ClickListener;
import com.google.gwt.topspin.ui.client.Root;
import com.google.gwt.topspin.ui.client.Window;

public class TopSpinExample implements EntryPoint {

  public void onModuleLoad() {
    Button b = new Button(Root.getContainer());
    b.setText("Hello?");

    b.addClickListener(new ClickListener() {
      public void onClick(ClickEvent event) {
        Window.alert("Hello!");
      }
    });
  }
}
TOP

Related Classes of com.google.gwt.topspin.example.client.TopSpinExample

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.