Re: Share access beween two UiBinder files?
Ah, ok. Thank you very much! On 28 Mai, 17:27, Tristan Slominski 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(); > > } > > Main.java: > > public void onClickNext(){ > getTextFields.setText("something"); > > > > } > On Fri, May 28, 2010 at 10:19, Mark Schewe wrote: > > 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: > > > > > > > // calls TextFields.ui.xml > > // calls Buttons.ui.xml > > > > > > > Buttons.ui.xml: > > > > > prev > > next > > > > > TextFields.ui.xml: > > > > > blah > > > > > Buttons.java: > > > @UiHandler("nextButton") > > void onClickNext(ClickEvent click) { > > // change text field in TextFields.ui.xml > > } > > > In this last handler I need to access the textfield. I hope my problem > > is now easier to understand. I guess this has something to do with > > @UiFactory but I just don't get it. > > > 2010/5/28 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 wrote: > > >> 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 mean. > > > >> Thank you very much for your help! > > >> Mark > > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > > To post to this group, send email to google-web-toolkit@googlegroups.com > > . > > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com> > > . > > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-tool...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Share access beween two UiBinder files?
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 Schewe wrote: > 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: > > > > // calls TextFields.ui.xml > // calls Buttons.ui.xml > > > > > Buttons.ui.xml: > > >prev >next > > > > TextFields.ui.xml: > > >blah > > > > Buttons.java: > > @UiHandler("nextButton") > void onClickNext(ClickEvent click) { >// change text field in TextFields.ui.xml > } > > In this last handler I need to access the textfield. I hope my problem > is now easier to understand. I guess this has something to do with > @UiFactory but I just don't get it. > > 2010/5/28 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 wrote: > >> 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 mean. > >> > >> Thank you very much for your help! > >> Mark > > > > -- > > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > > To post to this group, send email to google-web-toolkit@googlegroups.com > . > > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com > . > > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Share access beween two UiBinder files?
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: // calls TextFields.ui.xml // calls Buttons.ui.xml Buttons.ui.xml: prev next TextFields.ui.xml: blah Buttons.java: @UiHandler("nextButton") void onClickNext(ClickEvent click) { // change text field in TextFields.ui.xml } In this last handler I need to access the textfield. I hope my problem is now easier to understand. I guess this has something to do with @UiFactory but I just don't get it. 2010/5/28 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 wrote: >> 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 mean. >> >> Thank you very much for your help! >> Mark > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Share access beween two UiBinder files?
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 wrote: > 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 mean. > > Thank you very much for your help! > Mark -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Share access beween two UiBinder files?
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 mean. Thank you very much for your help! Mark -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.