"...handle consistently looking GWT forms...."=> Twitter bootstrap gives a
very consistent lnf to forms.


For html based "templates" try this concept from a larger framework-Errai.
https://docs.jboss.org/author/display/ERRAI/Errai+UI






On Mon, Apr 1, 2013 at 9:00 PM, BM <bhushan.ma...@gmail.com> wrote:

> Interesting. Thanks for that. Is it compatible with GWT 2.5?
>
> What my real goal is to have global way to handle consistently looking GWT
> forms on UI binder for each different GWT Views.
>
> Since you worked on it, would love to see if you have further explanation
> on the example I gave how can this get incorporated..
>
> Thanks again.
>
> On Monday, April 1, 2013 10:06:08 AM UTC-5, subhro wrote:
>>
>> i had sorted these issues by using
>> http://gwtbootstrap.github.**com/ <http://gwtbootstrap.github.com/>
>>
>> Basically letting the CSS do the aligning.
>>
>> its dependent on your app of-course!
>>
>> HTH,
>> Subhro.
>>
>>
>>
>> On Mon, Apr 1, 2013 at 8:04 PM, BM <bhusha...@gmail.com> wrote:
>>
>>> We use GWT inside every other panels like VerticalPanel,
>>> HorizontalPanel, DockLayoutPanel, etc.
>>>
>>> The thing I feel it is cumbersome in assigning alignment (both
>>> horizontal and vertical) for each elements in those panels.
>>>
>>> One way is :
>>> <g:HorizontalPanel width="100%" height="100%" horizontalAlignment="ALIGN_
>>> **CENTER" verticalAlignment="ALIGN_**MIDDLE">
>>>     <g:Label>Hello Center</g:Label>
>>>     <g:TextBox ui:field="firstNameTxtBox" />
>>>
>>> </g:HorizontalPanel>
>>> The problem is that if we have several UI binder template files, this
>>> get hard-coded inside the XML file. Plus if there is a pretty good chance
>>> of forgetting to apply alignment when we are dealing with several template
>>> files.
>>>
>>> I would like to have a better way to create my UI through UI Binder by
>>> having alignment center and middle already taken care of. Some kind of
>>> template wherein I can just insert GWT UI elements (Textbox, Radio,
>>> Checkboxes, ListBox, etc) and labels. Since our views can use
>>> DockLayoutPanel, Or HorizontalPanel and VerticalPanel inside
>>> DockLayoutPanel, there is no constant source of template how all my UI
>>> (basically UI entry form) should look like consistently)
>>>
>>>
>>> One way I thought would be to use custom CellPanel (Not Cell List) but
>>> not sure if it is the best way.
>>>
>>> xmlns:i="urn:import:com.**project.client.widgets.input"
>>> <g:HorizontalPanel width="100%" height="100%" >
>>>     <i:properAlignmentCell>
>>>         <g:Label>Hello Center</g:Label>
>>>     </i: properAlignmentCell>
>>>
>>>     <i: properAlignmentCell>
>>>         <g:TextBox ui:field="**firstNameTxtBox" />
>>>     </i: properAlignmentCell>
>>>
>>> </g:HorizontalPanel>
>>>
>>> Where properAlignmentCell extends Cell and it contains
>>> horizontalAlignment="**ALIGN_CENTER" verticalAlignment="ALIGN_**MIDDLE"
>>> declared inside programmatically.
>>>
>>> What other ways anyone can recommend?
>>>
>>>
>>>
>>>  --
>>> 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 google-web-toolkit+**unsubscr...@googlegroups.com.
>>> To post to this group, send email to google-we...@**googlegroups.com.
>>> Visit this group at http://groups.google.com/**
>>> group/google-web-toolkit?hl=en<http://groups.google.com/group/google-web-toolkit?hl=en>
>>> **.
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>> .
>>>
>>>
>>>
>>
>>  --
> 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 google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to