Victor,
based on what I read, your flowpanel is part of a view which is mapped to a
presenter. You are dynamically adding buttons to the flowpanel. You can
setup click handlers for each of your buttons. if the button is present and
clicked, its handler would be invoked. Inside the handler call the presenter
of the view to perform what ever operation you want to
for example :
interface view {
void setDelegate(Delegate delegate);
interface Delegate {
void save();
}
}
public class MyView extends Composite implements view {
Delegate delegate;
public void setDelegate(Delegate delegate) {
this.delegate = delegate;
}
public OnLoad() {
FlowPanel panel = new FlowPanel();
Button btn = new Button("Click Me");
panle.add(btn);
btn.addClickHandler( new ClickHandler() {
public void onClick(ClickEvent event) {
delegate.save();
}
});
}
}
Thanks
Ashwin
On Tue, Jul 5, 2011 at 7:41 AM, Victor Zhang <[email protected]>wrote:
> Any ideas buddies?
>
> --
> 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.
>
>
--
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.