public class UploaderWithAuthorization
extends gwt.material.design.addins.client.fileuploader.MaterialFileUploader
UploaderWithAuthorization.Headers.UploaderTokenCallback| Modifier and Type | Class and Description |
|---|---|
static interface |
UploaderWithAuthorization.AppendHeadersCallback |
static class |
UploaderWithAuthorization.Headers
The
MaterialFileUploader related headers:
Authorization - Bearer token
vnd.turnon.cloud.associated-id - ID as an identification of a record
that will be associated with the uploaded data
vnd.turnon.cloud.logo-image
- boolean value indicating whether uploaded image is being intended to be a logo
vnd.turnon.cloud.stamp-image
- boolean value indicating whether uploaded image is being intended to be a stamp
|
static interface |
UploaderWithAuthorization.SuccessCallback |
static class |
UploaderWithAuthorization.UploadItemSuccessEvent |
gwt.material.design.client.base.MaterialWidget.Featurecom.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabledgwt.material.design.client.base.HasResize.ResizableALIGN_CONTENT, ALIGN_ITEMS, ALIGN_SELF, ASPECT_RATIO, COLUMN_GAP, GAP, GRID, GRID_AREA, GRID_AUTO_COLUMNS, GRID_AUTO_FLOW, GRID_AUTO_ROWS, GRID_COLUMN, GRID_COLUMN_END, GRID_COLUMN_GAP, GRID_COLUMN_START, GRID_GAP, GRID_ROW, GRID_ROW_END, GRID_ROW_GAP, GRID_ROW_START, GRID_TEMPLATE, GRID_TEMPLATE_AREAS, GRID_TEMPLATE_COLUMNS, GRID_TEMPLATE_ROWS, JUSTIFY_CONTENT, JUSTIFY_ITEMS, JUSTIFY_SELF, PLACE_CONTENT, PLACE_ITEMS, PLACE_SELF, ROW_GAP| Constructor and Description |
|---|
UploaderWithAuthorization(String urlKey)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAppendHeadersCallback(UploaderWithAuthorization.AppendHeadersCallback callback)
Adds callback that will be called right before
load() will be executed and URL set
with possibility to adjust request headers. |
void |
addSuccessCallback(UploaderWithAuthorization.SuccessCallback callback)
Adds success callback to get a notification once upload has been successfully processed and its response parsed.
|
void |
load() |
addAddedFileHandler, addCanceledHandler, addCanceledMultipleHandler, addCompleteHandler, addCompleteMultipleHandler, addCurrentUploadProgressHandler, addErrorHandler, addMaxFilesExceededHandler, addMaxFilesReachHandler, addProcessingHandler, addProcessingMultipleHandler, addQueueCompleteHandler, addRemovedFileHandler, addResetHandler, addSendingHandler, addSendingMultipleHandler, addSuccessHandler, addSuccessMultipleHandler, addThumbnailHandler, addTotalUploadProgressHandler, addUnauthorizedHandler, convertUploadFile, convertUploadFiles, disable, enable, enqueueFile, fireDropEvent, generateUploadResponse, getAcceptedFiles, getCapture, getChunkSize, getClickable, getDictCancelUpload, getDictCancelUploadConfirmation, getDictDefaultMessage, getDictFallbackMessage, getDictFallbackText, getDictFileSizeUnits, getDictFileTooBig, getDictInvalidFileType, getDictMaxFilesExceeded, getDictRemoveFile, getDictRemoveFileConfirmation, getDictResponseError, getDictUploadCanceled, getFilsizeBase, getHeaders, getHiddenInputContainer, getMaxFiles, getMaxFileSize, getMaxThumbnailFilesize, getMethod, getParallelUploads, getParamName, getQueuedFiles, getRejectedFiles, getRenameFile, getResizeHeight, getResizeMethod, getResizeMimeType, getResizeQuality, getResizeWidth, getRetryChunksLimit, getThumbnailHeight, getThumbnailMethod, getThumbnailWidth, getTimeout, getUploadingFiles, getUploadPreview, getUrl, initDropzone, isAddRemoveLinks, isAutoProcessQueue, isAutoQueue, isChunking, isCreateImageThumbnails, isEnabled, isForceChunking, isForceFallback, isIgnoreHiddenFiles, isParallelChunkUploads, isPreview, isRetryChunks, isUploadMultiple, isWithCredentials, onLoad, onUnload, processQueue, reload, removeAllFiles, removeAllFiles, removeFile, reset, setAcceptedFiles, setAddRemoveLinks, setAutoProcessQueue, setAutoQueue, setCapture, setChunking, setChunkSize, setClickable, setCreateImageThumbnails, setDictCancelUpload, setDictCancelUploadConfirmation, setDictDefaultMessage, setDictFallbackMessage, setDictFallbackText, setDictFileSizeUnits, setDictFileTooBig, setDictInvalidFileType, setDictMaxFilesExceeded, setDictRemoveFile, setDictRemoveFileConfirmation, setDictResponseError, setDictUploadCanceled, setEnabled, setFilesizeBase, setForceChunking, setForceFallback, setHeaders, setHiddenInputContainer, setIgnoreHiddenFiles, setMaxFiles, setMaxFileSize, setMaxThumbnailFilesize, setMethod, setParallelChunkUploads, setParallelUploads, setParamName, setPreview, setRenameFile, setResizeHeight, setResizeMethod, setResizeMimeType, setResizeQuality, setResizeWidth, setRetryChunks, setRetryChunksLimit, setThumbnailHeight, setThumbnailMethod, setThumbnailWidth, setTimeout, setUploadMultiple, setUrl, setWithCredentials, unload$this, add, add, addAttachHandler, addBlurHandler, addClickHandler, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragLeaveHandler, addDragMoveHandler, addDragOverHandler, addDragStartHandler, addDropActivateHandler, addDropDeactivateHandler, addDropHandler, addFocusHandler, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addMouseDownHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addOrientationChangeHandler, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, body, clearActiveClass, enableFeature, getAlignContent, getAlignItems, getAlignSelf, getAspectRatio, getBackfaceVisibility, getBackgroundColor, getBorder, getBorderBottom, getBorderLeft, getBorderMixin, getBorderRadius, getBorderRight, getBorderTop, getCenterOn, getCenterOnMixin, getChildren, getChildrenList, getCircleMixin, getColorsMixin, getColumnGap, getContainerMixin, getCursor, getDataAttribute, getDepth, getDimensionMixin, getEnabledMixin, getFilterStyle, getFilterStyleMixin, getFlexboxMixin, getFloat, getFloatMixin, getFocusableMixin, getFontSize, getFontSizeMixin, getFontWeight, getFontWeightMixin, getGap, getGridArea, getGridAutoColumns, getGridAutoFlow, getGridAutoRows, getGridColumn, getGridColumnEnd, getGridColumnGap, getGridColumnStart, getGridGap, getGridLayout, getGridLayoutMixin, getGridMixin, getGridRow, getGridRowEnd, getGridRowGap, getGridRowStart, getGridTemplate, getGridTemplateAreas, getGridTemplateColumns, getGridTemplateRows, getHandlerRegistry, getHideOn, getHideOnMixin, getHoverableMixin, getId, getIdMixin, getInitialClasses, getJustifyContent, getJustifyItems, getJustifySelf, getLayoutPosition, getLetterSpacing, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpacity, getOrientation, getOrientationMixin, getPerspective, getPerspectiveOrigin, getPlaceContent, getPlaceItems, getPlaceSelf, getResize, getRowGap, getScrollspy, getScrollspyMixin, getSeparatorMixin, getShadow, getShadowMixin, getShowOn, getShowOnMixin, getTabIndex, getTextAlign, getTextAlignMixin, getTextColor, getTooltip, getTooltipDelayMs, getTooltipElement, getTooltipHTML, getTooltipMixin, getTooltipPosition, getTransform, getTransformMixin, getTransformOrigin, getTransformStyle, getTranslationKey, getTruncateMixin, getVerticalAlign, getVerticalAlignMixin, getVisibility, getWaves, getWavesMixin, getWidth, getWordBreak, insert, insert, isCircle, isContainerEnabed, isContentEditable, isDetectOrientation, isFeatureEnabled, isHoverable, isSeparator, isTruncate, isValignWrapper, registerHandler, removeHandler, removeTooltip, setAccessKey, setAlignContent, setAlignItems, setAlignSelf, setAspectRatio, setBackfaceVisibility, setBackgroundColor, setBorder, setBorderBottom, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBottom, setCenterOn, setCircle, setClass, setColumnGap, setContainerEnabled, setContentEditable, setCursor, setDataAttribute, setDepth, setDetectOrientation, setDisplay, setFilterStyle, setFlex, setFlexAlignContent, setFlexAlignItems, setFlexAlignSelf, setFlexBasis, setFlexDirection, setFlexGrow, setFlexJustifyContent, setFlexOrder, setFlexShrink, setFlexValue, setFlexWrap, setFloat, setFocus, setFocus, setFontSize, setFontSize, setFontWeight, setGap, setGrid, setGridArea, setGridAutoColumns, setGridAutoFlow, setGridAutoRows, setGridColumn, setGridColumnEnd, setGridColumnGap, setGridColumnStart, setGridGap, setGridLayout, setGridRow, setGridRowEnd, setGridRowGap, setGridRowStart, setGridTemplate, setGridTemplateAreas, setGridTemplateColumns, setGridTemplateRows, setGwtDisplay, setHeight, setHideOn, setHoverable, setId, setInitialClasses, setJustifyContent, setJustifyItems, setJustifySelf, setLayoutPosition, setLeft, setLetterSpacing, setLineHeight, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOffset, setOpacity, setOrientation, setOverflow, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPerspective, setPerspectiveOrigin, setPlaceContent, setPlaceItems, setPlaceSelf, setResize, setRight, setRowGap, setScrollspy, setSeparator, setShadow, setShowOn, setStyle, setTabIndex, setTextAlign, setTextColor, setTooltip, setTooltip, setTooltipDelayMs, setTooltipHTML, setTooltipPosition, setTop, setTransform, setTransformOrigin, setTransformStyle, setTransition, setTranslationKey, setTruncate, setValignWrapper, setVerticalAlign, setVisibility, setWaves, setWidth, setWordBreak, setZoom, stopTouchStartEvent, validate, windowadd, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, iterator, remove, removeadd, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic UploaderWithAuthorization(@Nonnull String urlKey)
urlKey - a key to lookup for configured service URL in Configurationpublic void load()
load in interface gwt.material.design.client.base.JsLoaderload in class gwt.material.design.addins.client.fileuploader.MaterialFileUploaderpublic void addAppendHeadersCallback(UploaderWithAuthorization.AppendHeadersCallback callback)
load() will be executed and URL set
with possibility to adjust request headers.public void addSuccessCallback(UploaderWithAuthorization.SuccessCallback callback)
It ignores responses if
Copyright © 2023. All rights reserved.