Saturday, October 1, 2011

Re: Create a VIEW layer for Widget and Composite

You can simply put your .ui.xml file to another folder and tell
your .java file where it is:

Here's a small code that will do it:
@UiTemplate("RootUIDisplay.ui.xml")
interface RootUIDisplayUiBinder extends UiBinder<Widget,
RootUIDisplay> {}

In words: You have to write an annotation for the UiBinder interface,
to tell it where its .ui.xml file it.

Pretty simple. Isn't it ? :)


On 1 Okt., 19:58, Paulo Coutinho <pa...@prsolucoes.com> wrote:
> Hi,
>
> I got do it.
>
> I create a file called:
>
> LoginForm.ui.xml
> for
> LoginForm.java
>
> And it works.
>
> But i need that this files are separated by theme folders or in a differente
> path from default.
>
> How i can do it?
>
> 2011/10/1 Paulo Coutinho <pa...@prsolucoes.com>
>
>
>
>
>
>
>
>
>
> > Hi,
>
> > Im already have a GWT app with PHP and now i want put the VIEW layer of my
> > widgets and composites classes in a HTML page or UI-BINDER.
>
> > How i can do it?
>
> > Today im creating all components in the java class, but i want separate it
> > to the designer can change all.
>
> > Please help me!
>
> > --
> > Atenciosamente,
> > Paulo Coutinho.
> > Blog:www.prsolucoes.com/blog
> > Site:www.prsolucoes.com
> > Msn:  pa...@prsolucoes.com
> > Skype: paulo.prsolucoes
> > Telefone: +55 21 9386-0010
> > Consultor Certificado Bindows
>
> --
> Atenciosamente,
> Paulo Coutinho.
> Blog:www.prsolucoes.com/blog
> Site:www.prsolucoes.com
> Msn:  pa...@prsolucoes.com
> Skype: paulo.prsolucoes
> Telefone: +55 21 9386-0010
> Consultor Certificado Bindows

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment