Package com.googlecode.mgwt.examples.showcase.client.activities.animationdone

Source Code of com.googlecode.mgwt.examples.showcase.client.activities.animationdone.AnimationDoneViewGwtImpl

/*
* Copyright 2010 Daniel Kurka
*
* 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.googlecode.mgwt.examples.showcase.client.activities.animationdone;

import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Widget;

import com.googlecode.mgwt.dom.client.event.tap.HasTapHandlers;
import com.googlecode.mgwt.ui.client.widget.button.Button;
import com.googlecode.mgwt.ui.client.widget.panel.Panel;

/**
* @author Daniel Kurka
*
*/
public class AnimationDoneViewGwtImpl implements AnimationDoneView {

  private Panel panel;
  private Button button;

  /**
   *
   */
  public AnimationDoneViewGwtImpl() {
    panel = new Panel();
    panel.getElement().setAttribute("style", "text-align:center");
    panel.setHeight("200px");

    HTML html = new HTML("<p style='text-align: center; position: relative; top: 75px; font-size: 20px'>great, yeah!<p>");

    panel.add(html);

    button = new Button();
    button.getElement().setAttribute("style", "margin:auto;width: 200px; top: 125px; position:relative;");
    button.setText("Back");

    panel.add(button);

  }

  @Override
  public Widget asWidget() {
    return panel;
  }

  @Override
  public HasTapHandlers getBackButton() {
    return button;
  }

}
TOP

Related Classes of com.googlecode.mgwt.examples.showcase.client.activities.animationdone.AnimationDoneViewGwtImpl

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.