Well Grid uses a html <table> to work, yes. The point is when working with
UiBinder you can use normal HTML markup to make a widget, so you can do:
<g:HTMLPanel>
<table>
<tr>
<td>Name</td><td><g:TextBox ui:field="nameText"></td>
</tr>
<tr>
<td>Phone</td><td><g:TextBox ui:field="phoneText"></td>
</tr>
</table>
</g:HTMLPanel>
Jeff: I guess it reduces DOM complexity, and improves performance (almost
certainly negligible in most cases, unless your widget is large and needs to
be created many times over) In any case, I'm not saying this approach is
better or worse than using Panels, its just the approach I take.
The obvious disadvantage is that its a static table, you can't really modify
it at runtime easily. If you need a dynamic table, Panels/FlexTable/Grid are
more suited.
On Sat, Oct 8, 2011 at 4:39 PM, Mike Dee <[email protected]> wrote:
> Wouldn't that be a Grid control? Would a Grid control be a little
> heavy handed in that it seems to be designed to handle widgets in its
> cells.
>
> A property table - or something like that - seems ideal (if it
> existed).
>
> On Oct 8, 8:30 am, Jeffrey Chimene <[email protected]> wrote:
> > On 10/8/2011 7:29 AM, Aidan O'Kelly wrote:
> >
> > > Well, its creating a table with a table for each row.. to end up with
> > > a table structure...
> > > If its a statically sized table, you can just write the <table>
> > > structure yourself in UiBinder, and place Widgets/Text in each <td>.
> >
> > Is that to to reduce DOM complexity, time to implementation,
> > performance? Or some other factor I'm not understanding?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > On Sat, Oct 8, 2011 at 2:53 PM, Jeffrey Chimene <[email protected]
> > > <mailto:[email protected]>> wrote:
> >
> > > On 10/8/2011 4:23 AM, benneq wrote:
> > > > A vertical panel containing several horizontal panels SOUNDS
> pretty
> > > > straight forward, indeed.
> > > > BUT: Do it, look at you dom tree, and see that it's totally ugly!
> > > > It is: A <table><tr><td>.... (vertical panel) containing several
> > > > <table><tr><td>..</td><td>..</td></tr></table> (1 horizontal
> panel).
> >
> > > Sorry, I'm missing the point here...
> >
> > > > On 7 Okt., 22:45, Jeff Chimene <[email protected]
> > > <mailto:[email protected]>> wrote:
> > > >> On 10/07/2011 01:38 PM, Mike Dee wrote:
> >
> > > >>> I have small data tables that I'd like to display. In the
> widget
> > > >>> showcase for DataGrid and CellTable it says they are ideal for
> > > large
> > > >>> amounts of data.
> > > >>> The goal is to display detail info. For example, to display a
> > > single
> > > >>> record from a database - not a bunch of records from a
> > > database. So
> > > >>> the columns of the database will be different. Think of
> something
> > > >>> like:
> > > >>> Name: John Doe
> > > >>> Address: Main St.
> > > >>> Phone: 555-1234
> > > >>> I was thinking a PropertyTable would be ideal. It doesn't
> exist,
> > > >>> although they have something similar in SmartGWT, which I'd
> > > like to
> > > >>> avoid for now.
> > > >>> Any ideas would be appreciated.
> > > >> I'd probably create a custom widget based on using ui.xml It
> > > might not
> > > >> even be a widget, just an MVP instance. From your description
> > > it sounds
> > > >> like a Popup enclosing a VerticalPanel enclosing several
> > > >> HorizontalPanels. Very simple, very straightforward to
> implement.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.