Re: fundamental problems with predictive layout

2012-09-03 Thread Kara Rawsonkara
you have to call force layout to calc sizes in the new space. 

k

Sent from my iPhone

On Sep 1, 2012, at 6:09 PM, Magnus  wrote:

> Hi,
> 
> since I use GWT I have a fundamental problem with implementing a predictive 
> layout. I did many resize operations using the onResize method. This method 
> is called whenever a widget is resized. This is fine.
> However, it is only possible to react on a resize event if one knows the new 
> sizes!!
> 
> Consider a composed widget, with an outer panel and some child widgets. In 
> order to resize the child widgets, I need to know the actual size of the 
> outer panel. But this size is not known in most cases.
> In almost every onResize method I was not able to detect the *new* size of 
> the object being resized. Calling getOffset[Width|Height] nearly always 
> results in wrong sizes, old sizes.
> 
> One method to deal with this is to schedule the onResize code after the 
> current events are processed. But these retarded resizing codes cascade, when 
> there are composite widgets that must delegate the resize event to their 
> children. And cascading this stuff makes it slow.
> 
> So given a composite widget, with a horizontal fixed (left) component, and a 
> variable (right) component: How can you make this resizable?
> 
> Thanks
> Magnus
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/google-web-toolkit/-/2uqreZcZNCwJ.
> 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-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.



Re: GWT 2.4.0 - DataGrid - Differentiating between single click and double clicks on rows

2012-09-03 Thread Kara Rawsonkara
sink a mousedown event and use a static double click bool flag when u see a 
click check flag if its up the its a double click and reset the flag if not 
then is a single click. add a timer too that will reset the flag after a delay 
of like 100ms or something. 

kara

Sent from my iPhone

On Aug 28, 2012, at 11:39 AM, dave_mcgee  wrote:

> Hi there,
> 
> I am currently picking up on a row selection (single click) in a DataGrid 
> using NoSelectionModel (As seen below). This works fine and I perform a 
> certain action based on this selection. However, I also want to pick up on 
> when a user double clicks a row in this data grid. Does anyone have any 
> advice? Thanks! 
> 
> final NoSelectionModel selectionModel = new 
> NoSelectionModel();
> selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
> @Override
> public void onSelectionChange(SelectionChangeEvent event) { 
>   final MyObjectRecord myObjectRecord = 
> selectionModel.getLastSelectedObject();
> // Do stuff with myObjectRecord 
> }
> });
> 
> this.setSelectionModel(selectionModel);
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/google-web-toolkit/-/mKxVnb-JzJ0J.
> 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-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.



Re: Best serverside architecture(framework/stack) to use with GWT for large application...please show me the light

2012-09-03 Thread Kara Rawsonkara
hibernate with jpa beans. run onto of a restful java servlet to serve up your 
DAL. if your not good with dep inj design use GIN and Guice for instantiating 
your widgets and composites. also if your new to gwt use the ui binder. 
advanced create a viewport and screen manager to inject your classes. and 
oracle for db since it works nicely with run native behind the scenes of your 
plsql views that u create in your db. also for quick and dirty apps use 
springroo to architect and develop your back end. 

Sent from my iPhone

On Aug 27, 2012, at 5:20 PM, GWTter  wrote:

> Hi all,
> 
> I also posted this question on SO and revised it a little since, but received 
> one really great response so far if anyone is interested:
> 
> http://stackoverflow.com/questions/12132213/recommended-serverside-architectureframework-stack-to-use-with-gwt-for-large-a
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/google-web-toolkit/-/8O06mXQjVUwJ.
> 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-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.



Re: Login form auto-complete and GWT-RPC (or RequestBuilder), a solution!

2012-09-03 Thread Kara Rawsonkara
forms??? thats so 2000s. use event based design like u mentioned and submit via 
restful. using post get or update or whatever ur backend or api require. 
sometimes u need to use forms for file xfer or other specialized means. just 
keep in mind that not using forms can and does break usability / accessabilty 
guidelines. but then again i was never good at coloring or following the rules. 

Sent from my iPhone

On Aug 28, 2012, at 1:20 AM, jopaki  wrote:

> So all this form/FormPanel mangling implies that the  tag is required 
> to be present in the original markup yes?  Otherwise, one could just have the 
> username and password fields in the orig. markup and manually submit to 
> server by trapping an onclick to a simple button and then construct the 
> request via RequestBuilder.  What do you guys think about this?
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/google-web-toolkit/-/vcL7hYiHy7UJ.
> 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-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.



Re: CellTable - style specific columns

2012-09-03 Thread Kara Rawsonkara
use css selectors to id your datagrid or cell table container. and by use child 
and exclusion selectors u should be able to spefic the style on the td. u can 
also use css expressions or some jsni for quick and dirty impl. however i woukd 
implement it using my own custom cells to render via safe html templates. this 
would allow u to not only wrap the inner content with a div for overflow 
handling and or tooltips. iylt would also be the easiest way to specify a class 
and or id name or other atreibutes. u could crawl it with the dom and element 
methods but i dont recommend that

Sent from my iPhone

On Aug 27, 2012, at 3:43 PM, Kevin Buikema  wrote:

> I'm using a CellTable element via UIBinder, and I'm trying to come up with a 
> way to simply style specific columns in the table to make them look distinct. 
> To make it as simple as possible, I set up a separate css style for them:
> 
> .special_column_style {
>   background-color: pink;
> }
> 
> and used the code
> 
> table.addColumnStyleName(colIndex, "special_column_style");
> 
> ...and it does nothing. Is there additional setup for the table that needs to 
> be done to make the above code work? It seems like it should be simple, and 
> yet it does nothing.
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/google-web-toolkit/-/YneTtXIy0mgJ.
> 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-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.