/**
* The output of the upload is redirected to this receiver.
*/
- private Receiver receiver;
+ private com.vaadin.terminal.Receiver receiver;
private boolean isUploading;
private int nextid;
- /* TODO: Add a default constructor, receive to temp file. */
-
/**
* Creates a new instance of Upload.
*
public Upload() {
}
+ /**
+ * @deprecated use
+ * {@link Upload#Upload(String, com.vaadin.terminal.Receiver)}
+ * instead
+ */
+ @Deprecated
+ public Upload(String caption, Receiver uploadReceiver) {
+ setCaption(caption);
+ receiver = uploadReceiver;
+ }
+
/**
* Creates a new instance of Upload that redirects the uploaded data to
* stream given by the Receiver.
* @param uploadReceiver
* Receiver to call to retrieve output stream when upload starts.
*/
- public Upload(String caption, Receiver uploadReceiver) {
+ public Upload(String caption, com.vaadin.terminal.Receiver uploadReceiver) {
setCaption(caption);
receiver = uploadReceiver;
}
*
* @return the Receiver.
*/
- public Receiver getReceiver() {
+ public com.vaadin.terminal.Receiver getReceiver() {
return receiver;
}
/**
* Sets the receiver.
*
+ * @deprecated use {@link #setReceiver(com.vaadin.terminal.Receiver)}
+ * instead
* @param receiver
* the receiver to set.
*/
+ @Deprecated
public void setReceiver(Receiver receiver) {
this.receiver = receiver;
}
+ /**
+ * Sets the receiver.
+ *
+ * @param receiver
+ * the receiver to set.
+ */
+ public void setReceiver(com.vaadin.terminal.Receiver receiver) {
+ this.receiver = receiver;
+ }
+
/**
* {@inheritDoc}
*/