Hi Guys,

I have 2 form, first I insert the City where my client lives and I need to 
put this value in one Textbox in my main form.

I did so, 

I create one method set for increase the value in textbox on main form and 
on City form I create one click event for execute this method.

Exemple:

I my Main Form:

public class Cadastro extends Window {
     
      private TextBox txtcidade = new TextBox();

      public void setTxtcidade(String string) {
txtcidade.setValue(string);
      }

      public Cadastro(){
                absolutePanelPessoa.add(txtcidade, 109, 296);
                this.additem(absolutePanelPessoa);
      }

}


and my another form:

public class CadastroCidade extends Window {

                final Cadastro cadastro = new Cadastro();
                city.addRecordDoubleClickHandler(new 
RecordDoubleClickHandler() {

@Override
public void onRecordDoubleClick(RecordDoubleClickEvent event) {
ListGridRecord record = (ListGridRecord) event.getRecord();
cadastro.setTxtcidade(record.getAttribute("cidade"));
close();
}
});
}

Obs: city is one listgrid.


This way did not work.

Thanks,





-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to