Revision 10791b56 web_client/src/gr/grnet/pithos/web/client/FileUploadDialog.java
b/web_client/src/gr/grnet/pithos/web/client/FileUploadDialog.java | ||
---|---|---|
52 | 52 |
import com.google.gwt.user.client.ui.FormPanel.SubmitEvent; |
53 | 53 |
import com.google.gwt.user.client.ui.FormPanel.SubmitHandler; |
54 | 54 |
import com.google.gwt.user.client.ui.Grid; |
55 |
import com.google.gwt.user.client.ui.HTML; |
|
56 | 55 |
import com.google.gwt.user.client.ui.HasHorizontalAlignment; |
57 | 56 |
import com.google.gwt.user.client.ui.Hidden; |
58 | 57 |
import com.google.gwt.user.client.ui.HorizontalPanel; |
... | ... | |
69 | 68 |
/** |
70 | 69 |
* The Form element that performs the file upload. |
71 | 70 |
*/ |
72 |
private final FormPanel form = new FormPanel();
|
|
71 |
protected final FormPanel form = new FormPanel();
|
|
73 | 72 |
|
74 | 73 |
private final FileUpload upload = new FileUpload(); |
75 | 74 |
|
... | ... | |
128 | 127 |
// form. |
129 | 128 |
submit = new Button("Upload", new ClickHandler() { |
130 | 129 |
@Override |
131 |
public void onClick(ClickEvent event) { |
|
130 |
public void onClick(@SuppressWarnings("unused") ClickEvent event) {
|
|
132 | 131 |
prepareAndSubmit(); |
133 | 132 |
} |
134 | 133 |
}); |
... | ... | |
138 | 137 |
// dialog when the button is clicked. |
139 | 138 |
final Button cancel = new Button("Cancel", new ClickHandler() { |
140 | 139 |
@Override |
141 |
public void onClick(ClickEvent event) { |
|
140 |
public void onClick(@SuppressWarnings("unused") ClickEvent event) {
|
|
142 | 141 |
hide(); |
143 | 142 |
} |
144 | 143 |
}); |
... | ... | |
152 | 151 |
form.addSubmitHandler(new SubmitHandler() { |
153 | 152 |
|
154 | 153 |
@Override |
155 |
public void onSubmit(SubmitEvent event) { |
|
154 |
public void onSubmit(@SuppressWarnings("unused") SubmitEvent event) {
|
|
156 | 155 |
auth.setValue(app.getToken()); //This is done here because the app object is not available in the constructor |
157 | 156 |
} |
158 | 157 |
}); |
Also available in: Unified diff