public static class UIFileUpload.AcceptMimeExtension
extends com.vaadin.server.AbstractJavaScriptExtension
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener| Constructor and Description |
|---|
AcceptMimeExtension() |
| Modifier and Type | Method and Description |
|---|---|
void |
extend(com.vaadin.ui.Upload target)
Adds this extension to an upload component.
|
static UIFileUpload.AcceptMimeExtension |
get(com.vaadin.ui.Upload target)
Gets the
UIFileUpload.AcceptMimeExtension attached to the target. |
String |
getAcceptedMimeTypes()
Returns the currently accepted mime types.
|
void |
setAcceptedMimeTypes(String mimeTypes)
Updates the input accept attribute.
|
addFunction, callFunction, getState, registerRpcextend, getParent, getSupportedParentType, remove, setParentaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, attach, beforeClientResponse, createState, detach, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getState, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isConnectorEnabled, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResourceclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerpublic void extend(com.vaadin.ui.Upload target)
target - public void setAcceptedMimeTypes(String mimeTypes)
mimeTypes - the new mime types, for example audio/*,video/*,image/*. Pass null to remove the attribute.public String getAcceptedMimeTypes()
public static UIFileUpload.AcceptMimeExtension get(com.vaadin.ui.Upload target)
UIFileUpload.AcceptMimeExtension attached to the target.target - null if there isn't any.Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.