Tuesday, January 29, 2013

Re: CellList - is there a better way than building raw html?

Not sure if you got this working. But one can't use Vertical Panel as cell rows inside any Cell Widgets. GWT widgets (Vertical Panels, Horizontal Panel, GWT Button, GWT textbox, etc) can't be used inside Cell because they are heavyweight components and very slow so if used would defeat the purpose of lightweight faster Cell Widgets. GWT Cell Widget package provide 16 different types of Cell types and one can make custom cells using these cell types with UIRenderer. 

Make a custom Cell type and use that in CellList. Add SelectionHandlerModel or OnBrowserEvent inside CellType.

On Wednesday, September 5, 2012 11:08:58 AM UTC-5, markww wrote:
Hi Jens,

Let's say I only plan on having 20 rows at any given time. If I were to implement a list using a ScrollPanel + 20 VerticalPanel instances as rows, could you see that working? I'd be mostly concerned with being able to scroll the list nicely on mobile devices (fling scrolling, elastic bounce back like CellList has). Also not clear how click handling a VerticalPanel as a row would work. Ideally would want the entire VerticalPanel to have an onClick state to give the user visual feedback that they've clicked it. Possible?

Thank you

On Wednesday, 5 September 2012 12:00:30 UTC-4, Jens wrote:
In GWT 2.5 you can use UiBinder for Cells so you don't have to write the raw HTML inside your code.

But you can't use ordinary GWT widgets like Buttons, etc inside Cells.

-- J.

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+unsubscribe@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.

No comments:

Post a Comment