本文整理了Java中com.vaadin.ui.Upload.addFinishedListener()
方法的一些代码示例,展示了Upload.addFinishedListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Upload.addFinishedListener()
方法的具体详情如下:
包路径:com.vaadin.ui.Upload
类名称:Upload
方法名:addFinishedListener
[英]Adds the upload received event listener.
[中]添加上载收到的事件侦听器。
代码示例来源:origin: nz.co.senanque/madura-workflow-vaadin
public void load(final long pid) {
panel.removeAllComponents();
final Upload upload = new Upload(null, receiver);
upload.setImmediate(true);
upload.setButtonCaption(m_messageSourceAccessor.getMessage("upload.file", "Upload File"));
checkbox = new CheckBox(m_messageSourceAccessor.getMessage("upload.protected", "Protected"));
comment = new TextField(m_messageSourceAccessor.getMessage("upload.comment", "Comment"));
panel.addComponent(comment);
panel.addComponent(checkbox);
panel.addComponent(upload);
upload.addFinishedListener(new Upload.FinishedListener() {
private static final long serialVersionUID = 1L;
public void uploadFinished(FinishedEvent event) {
Attachment attachment = receiver.getWrapper().getCurrentAttachment();
attachment.setProcessInstanceId(pid);
attachment.setComment((String)comment.getValue());
attachment.setProtectedDocument((boolean)checkbox.getValue());
m_workflowDAO.addAttachment(attachment);
close();
}
});
if (getParent() == null) {
UI.getCurrent().addWindow(this);
this.center();
}
}
public void close() {
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
upload.addSucceededListener(receiver);
upload.addFinishedListener(new Upload.FinishedListener() {
public void uploadFinished(Upload.FinishedEvent event) {
upload.setVisible(false);
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
upload.addSucceededListener(receiver);
upload.addFinishedListener(new Upload.FinishedListener() {
public void uploadFinished(FinishedEvent event) {
upload.setVisible(false);
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
upload.addSucceededListener(receiver);
upload.addFinishedListener(new Upload.FinishedListener() {
public void uploadFinished(FinishedEvent event) {
upload.setVisible(false);
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
upload.addSucceededListener(receiver);
upload.addFinishedListener(new Upload.FinishedListener() {
public void uploadFinished(Upload.FinishedEvent event) {
upload.setVisible(false);
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
upload.addSucceededListener(receiver);
upload.addFinishedListener(new Upload.FinishedListener() {
public void uploadFinished(FinishedEvent event) {
upload.setVisible(false);
内容来源于网络,如有侵权,请联系作者删除!