/*
* Ext GWT - Ext for GWT
* Copyright(c) 2007-2009, Ext JS, LLC.
* licensing@extjs.com
*
* http://extjs.com/license
*/
package com.google.gwt.sample.hello.client;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.event.MessageBoxEvent;
import com.extjs.gxt.ui.client.util.Format;
import com.extjs.gxt.ui.client.util.Params;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.MessageBox;
import com.google.gwt.core.client.EntryPoint;
public class Hello implements EntryPoint {
public void onModuleLoad() {
MessageBox box = MessageBox.prompt("Address", "Please enter your address:", true);
box.addCallback(new Listener() {
public void handleEvent(MessageBoxEvent be) {
String v = Format.ellipse(be.getValue(), 80);
Info.display("MessageBox", "You entered '{0}'", new Params(v));
}
});
}
}
Ext-GWT.zip( 4,297 k)