List of usage examples for com.vaadin.client UIDL getIntArrayAttribute
public int[] getIntArrayAttribute(final String name)
From source file:com.wcs.wcslib.vaadin.widget.multifileupload.client.VMultiUpload.java
License:Apache License
@Override public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { if (client.updateComponent(this, uidl, true)) { return;/*from w ww.ja v a 2s.co m*/ } addStyleName(CLASSNAME + "-immediate"); this.client = client; paintableId = uidl.getId(); receiverUri = client.translateVaadinUri(uidl.getStringVariable("target")); submitButton.setText(uidl.getStringAttribute("buttoncaption")); fu.setName(paintableId + "_file"); if (uidl.hasAttribute("enabled")) { if (uidl.getBooleanAttribute("enabled")) { enableUpload(); } else { disableUpload(); } } if (uidl.hasAttribute("maxFileSize")) { maxFileSize = uidl.getLongAttribute("maxFileSize"); } if (uidl.hasAttribute("sizeErrorMsg")) { sizeErrorMsg = uidl.getStringAttribute("sizeErrorMsg"); } if (uidl.hasAttribute("mimeTypeErrorMsg")) { mimeTypeErrorMsg = uidl.getStringAttribute("mimeTypeErrorMsg"); } if (uidl.hasAttribute("acceptFilter")) { getInput().setAccept(uidl.getStringAttribute("acceptFilter")); } if (uidl.hasAttribute("acceptedMimeTypes")) { acceptedMimeTypes = Arrays.asList(uidl.getStringArrayAttribute("acceptedMimeTypes")); } if (uidl.hasAttribute("interruptedFileIds")) { removeFromFileQueue(uidl.getIntArrayAttribute("interruptedFileIds")); } if (uidl.hasAttribute("ready")) { postNextFileFromQueue(); } }