Skip to content
Browse files

Move to the new gwt api for click handlers.

  • Loading branch information...
1 parent 969e476 commit 46390ae0a081556f122de24ef44093c9e3cd6f8c @willscott willscott committed Apr 17, 2012
View
14 oneswarm_gwt_ui/src/edu/washington/cs/oneswarm/ui/gwt/client/ReportableErrorDialogBox.java
@@ -1,13 +1,13 @@
package edu.washington.cs.oneswarm.ui.gwt.client;
+import com.google.gwt.event.dom.client.ClickEvent;
+import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Button;
-import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.VerticalPanel;
-import com.google.gwt.user.client.ui.Widget;
import edu.washington.cs.oneswarm.ui.gwt.client.i18n.OSMessages;
import edu.washington.cs.oneswarm.ui.gwt.rpc.OneSwarmException;
@@ -78,8 +78,9 @@ public ReportableErrorDialogBox(final String inErrorString, boolean fatal,
status_and_button.setCellHorizontalAlignment(statusLabel, HorizontalPanel.ALIGN_LEFT);
mainPanel.add(status_and_button);
- dismissButton.addClickListener(new ClickListener() {
- public void onClick(Widget sender) {
+ dismissButton.addClickHandler(new ClickHandler() {
+ @Override
+ public void onClick(ClickEvent event) {
// statusLabel.setText("Sending report...");
// ((Button)sender).setEnabled(false);
//
@@ -98,9 +99,8 @@ public void onClick(Widget sender) {
// onFailure(null);
// }
hide();
- // }); // reportError RPC
- } // report button onClick()
- }); // add click listener
+ }
+ });
setWidget(mainPanel);

0 comments on commit 46390ae

Please sign in to comment.
Something went wrong with that request. Please try again.