On Aug/08/2011 14:53, Alex Luya wrote:
At every beginning,I want to use a editor to replace a row when mouse
hover on it.It seems be impossible.Now,I want to show popup over
it.But How can I get the row on that mouse is hovering?


Maybe CellTable.addCellPreviewHandler will help you.

The event passed to the handler will contain the column index (CellPreviewEvent.getColumn), as well as the context (CellPreviewEvent.getContext). From the context you can extract the key that identifies the row (Context.getKey).

To restrict the event just to mouseover events, do a check inside the handler for:

  event.getNativeEvent().getType().equals("mouseover");


References:

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/cellview/client/AbstractHasData.html#addCellPreviewHandler%28com.google.gwt.view.client.CellPreviewEvent.Handler%29

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/view/client/CellPreviewEvent.html

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/Cell.Context.html

--
Ionuț G. Stan  |  http://igstan.ro

--
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.

Reply via email to