Re: How do I detect Mouse Up, Mouse Out, Mouse Over, etc on Grid Cells?

2010-06-07 Thread Professor Vagner
Try this:

public class MyGrid extends Grid {
  public MyGrid() {
 sinkEvents(MOUSEEVENTS);
  }// end constructor

public void onBrowserEvent(Event event) {
   Element td = getEventTargetCell(event);
if (td == null)
return;
int type = event.getTypeInt();
 switch (type) {
  case ONMOUSEOVER:
 break;
   case ONMOUSEOUT:
 break;
  case ONMOUSEUP:
  break;
}// end switch
super.onBrowserEvent(event);
}// end onBrowserEvent

}// end class

-- 
Professor Vagner

O PLANETA É O MEU PAÍS, E A CIÊNCIA É A MINHA RELIGIÃO ! INDO AO INFINITO E
ALÉM... !!

-- 
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-tool...@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: How do I detect Mouse Up, Mouse Out, Mouse Over, etc on Grid Cells?

2010-06-07 Thread Frank Argueta
Please stop spamming everyone with your misleading blog link in every
single post!

On Jun 4, 4:21 pm, Sorinel C scristescu...@hotmail.com wrote:
 Do you use pure GWT grid, or somthing else from, let's say, SmartGWT
 or GXT, or even GWT-Ext ? 'cause it might be different fromm each
 another.

 Cheers!

 PS: how you change cell background and other GWT hints, you can find
 here:http://ui-programming.blogspot.com/

-- 
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-tool...@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: How do I detect Mouse Up, Mouse Out, Mouse Over, etc on Grid Cells?

2010-06-04 Thread Sorinel C
Do you use pure GWT grid, or somthing else from, let's say, SmartGWT
or GXT, or even GWT-Ext ? 'cause it might be different fromm each
another.


Cheers!

PS: how you change cell background and other GWT hints, you can find
here: http://ui-programming.blogspot.com/

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



How do I detect Mouse Up, Mouse Out, Mouse Over, etc on Grid Cells?

2010-06-02 Thread spierce7
I need to be able to do this efficiently in a 50X8 Grid. I need it for
the individual cells within the grid. It seems that all I can get to
work on my grid is a simple click handler.

Grid.addClickHandler(this);
and then whenever a click event occurs (a click down and then a click
up in the same cell), it fires public void onClick(ClickEvent event).
I need much more usability than this for my individual cells.

I was playing around with the idea of possibly adding a blank html
object to each of the cells and having it fill the cells, but this
seems like it would be slow, and I would run into some problems down
the road with table borders. Is there a way that I could access the
Grids native HTML cell objects themselves? If I could somehow access
those I would be able to add click handlers and what not. Still not an
ideal method, but better than adding my own HTML panels and dealing
with border issues.

Do I have any other options?

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