summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/Upload.java
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-08-23 12:09:48 +0300
committerLeif Åstrand <leif@vaadin.com>2012-08-23 12:09:48 +0300
commitbc6786f0dc865b88dd2eeb0614534bfce80dee35 (patch)
tree0e1d0d0a27a0c0c50293798490888f92029bb937 /server/src/com/vaadin/ui/Upload.java
parentaf8afede9f0d196a28792dea9e587a1eac829902 (diff)
downloadvaadin-framework-bc6786f0dc865b88dd2eeb0614534bfce80dee35.tar.gz
vaadin-framework-bc6786f0dc865b88dd2eeb0614534bfce80dee35.zip
Rename requestRepaint to markAsDirty (#9378)
Also remove some requestRepaint calls that are no longer needed (#9325)
Diffstat (limited to 'server/src/com/vaadin/ui/Upload.java')
-rw-r--r--server/src/com/vaadin/ui/Upload.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/src/com/vaadin/ui/Upload.java b/server/src/com/vaadin/ui/Upload.java
index b50ba03835..619db07eea 100644
--- a/server/src/com/vaadin/ui/Upload.java
+++ b/server/src/com/vaadin/ui/Upload.java
@@ -138,7 +138,7 @@ public class Upload extends AbstractComponent implements Component.Focusable,
int id = (Integer) variables.get("pollForStart");
if (!isUploading && id == nextid) {
notStarted = true;
- requestRepaint();
+ markAsDirty();
} else {
}
}
@@ -829,7 +829,7 @@ public class Upload extends AbstractComponent implements Component.Focusable,
isUploading = false;
contentLength = -1;
interrupted = false;
- requestRepaint();
+ markAsDirty();
}
public boolean isUploading() {
@@ -901,7 +901,7 @@ public class Upload extends AbstractComponent implements Component.Focusable,
*/
public void setButtonCaption(String buttonCaption) {
this.buttonCaption = buttonCaption;
- requestRepaint();
+ markAsDirty();
}
/**
@@ -922,14 +922,14 @@ public class Upload extends AbstractComponent implements Component.Focusable,
* fired.
*/
public void submitUpload() {
- requestRepaint();
+ markAsDirty();
forceSubmit = true;
}
@Override
- public void requestRepaint() {
+ public void markAsDirty() {
forceSubmit = false;
- super.requestRepaint();
+ super.markAsDirty();
}
/*
@@ -982,7 +982,7 @@ public class Upload extends AbstractComponent implements Component.Focusable,
fireUploadSuccess(event.getFileName(), event.getMimeType(),
event.getContentLength());
endUpload();
- requestRepaint();
+ markAsDirty();
}
@Override