private Label lngLabel;
private MapWidget map;
public GeocoderDemo() {
Panel panel = new FlowPanel();
final FormPanel form = new FormPanel();
form.setAction("#");
Panel formElements = new FlowPanel();
final TextBox address = new TextBox();
address.setVisibleLength(60);
address.setText("10 10th Street, Atlanta, GA");
formElements.add(address);
formElements.add(buildLatLngPanel());
this.displayLatLng(ATLANTA);
Button submit = new Button("Go!");
submit.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
form.submit();
}
});
formElements.add(submit);
form.add(formElements);
form.addSubmitHandler(new SubmitHandler() {
public void onSubmit(SubmitEvent event) {
showAddress(address.getText());
event.cancel();