The simplest way is the have DynamicFormDisplayGrid implement
SourcesTableEvents. Then in it's addTableListener(TableListener
listener) method you just write:

table.addTableListener(listener)

So client widgets implementing Table Listener interface can be
notified of selection events on the internal FlexTable without
actually knowing about it, only DynamicFormDisplayGrid.

Not sure if this is exactly what you mean though....


On Mar 7, 8:37 am, jagadesh <[email protected]> wrote:
> HI Guys,
>
> i need help in table listener.
> what i have done is i have written a widget extendsing composite. i
> have  code like
>
>         public DynamicFormDisplayGrid(int columns) {
>                 this.columns = columns;
>
>                 SimplePanel panel = new SimplePanel();
>                 panel.setStyleName("MD-Standard-DisplayGrid");
>
>                 table = new FlexTable();
>                 panel.setWidget(table);
>
>                 initWidget(panel);
>
>         }
>
> now i will be using this DynamicFormDisplayGrid in other classes.i
> will place widgets in the rows and columns in the grid.
>
> now what i need i i need to set tableListener for the
> DynamicFormDisplayGrid so that i can catch which row is clicked
>
> Please Sort me out from this issue.
>
> Thank u,
> jagadesh
--~--~---------~--~----~------------~-------~--~----~
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