Share access beween two UiBinder files?

2010-05-28 Thread Mark
Hello, I need your help! I've got two files: Buttons.ui.xml / Buttons.java TextFields.ui.xml / TextFields.java Now I need to change the content of the TextFields in the Buttons and vice versa. Is it possible to do this without merging the two ui and java files? I hope you understand what I

Re: Share access beween two UiBinder files?

2010-05-28 Thread Tristan
like this? Buttons buttons = new Buttons(); TextFields fields = new TextFields(); buttons.setFieds(fields); fields.setButtons(buttons); ?? Can you elaborate? On May 28, 7:05 am, Mark rausch.pi...@gmail.com wrote: Hello, I need your help! I've got two files: Buttons.ui.xml / Buttons.java

Re: Share access beween two UiBinder files?

2010-05-28 Thread Mark Schewe
First of all thank you for the answer. I am new to GWT so I am a bit confused and not know yet the correct terminology :) Main.ui.xml: g:FlowPanel g:VerticalPanel r:TextFields / // calls TextFields.ui.xml r:Buttons / // calls Buttons.ui.xml

Re: Share access beween two UiBinder files?

2010-05-28 Thread Tristan Slominski
Hmm... Why don't you do it in main? It's the one thing that knows about both. Buttons.java: @UiHandler(nextButton) void onClickNext(ClickEvent click) { getMain().onClickNext(); } Main.java: public void onClickNext(){ getTextFields.setText(something); } On Fri, May 28, 2010 at 10:19, Mark

Re: Share access beween two UiBinder files?

2010-05-28 Thread Mark
Ah, ok. Thank you very much! On 28 Mai, 17:27, Tristan Slominski tristan.slomin...@gmail.com wrote: Hmm... Why don't you do it in main? It's the one thing that knows about both. Buttons.java: @UiHandler(nextButton) void onClickNext(ClickEvent click) {   getMain().onClickNext(); }