T - type of uploaded referencepublic abstract class AbstractDragAndDropFileUploadEditor<T> extends AbstractCockpitEditorRenderer<T>
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_MAX_FILE_SIZE |
protected static String |
FILE_UPLOAD_MAX_SIZE |
protected static String |
LABEL_DROPCONTENT |
protected static String |
LABEL_UNSUPPORTED_FILETYPE |
protected static String |
LABEL_UPLOAD |
protected static String |
PARAM_ACCEPT |
protected static String |
PARAM_MAX_SIZE |
protected static String |
PARAM_SINGLE_LINE_MODE |
protected static int |
UNLIMITED_FILE_SIZE |
HEADER_LABEL_TOOLTIP, ON_ADD_EVENT, ON_DELETE_EVENTINITIAL_EDIT_STRING| Constructor and Description |
|---|
AbstractDragAndDropFileUploadEditor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addImageZoomPopup(org.zkoss.zk.ui.Component parent,
org.zkoss.zul.Image target) |
protected org.zkoss.zk.ui.Component |
createDropUpload(org.zkoss.zk.ui.Component dropAnchor,
EditorContext<T> context) |
protected org.zkoss.zul.Button |
createFileUpload(EditorContext<T> context) |
protected org.zkoss.zk.ui.Component |
createUploadContainer(EditorContext<T> context,
org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.UploadEvent> onUpload) |
protected byte[] |
extractUploadedData(org.zkoss.util.media.Media media) |
CockpitProperties |
getCockpitProperties() |
protected Optional<org.zkoss.zul.Image> |
getContentImage(FileUploadResult uploadResult) |
protected org.zkoss.zul.Image |
getContentTypeImage(String contentType,
boolean gridPreview) |
protected abstract String |
getEditorSclass() |
protected int |
getMaxFileSize(EditorContext<T> context) |
ObjectPreviewService |
getObjectPreviewService() |
protected String |
getUpload(EditorContext<T> context) |
protected boolean |
isCorrectFileSize(int sizeFromEditorParam) |
protected boolean |
isSingleLineModeEnabled(EditorContext<T> context) |
protected boolean |
isUploadedMediaAcceptable(org.zkoss.util.media.Media media,
EditorContext<T> ctx) |
protected boolean |
matchContentType(String accept,
String contentType) |
protected void |
showUnsupportedMediaMessage(org.zkoss.zk.ui.Component parent,
EditorContext<T> context,
org.zkoss.util.media.Media media) |
protected Optional<FileUploadResult> |
toFileUploadResult(org.zkoss.util.media.Media media) |
extractEmbeddedEditor, extractEmbeddedType, findAncestorEditor, findEmbeddedEditors, getInitialEditString, getL10nDecoratorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrenderprotected static final String PARAM_ACCEPT
protected static final String PARAM_MAX_SIZE
protected static final String PARAM_SINGLE_LINE_MODE
protected static final String LABEL_DROPCONTENT
protected static final String LABEL_UPLOAD
protected static final String FILE_UPLOAD_MAX_SIZE
protected static final int DEFAULT_MAX_FILE_SIZE
protected static final int UNLIMITED_FILE_SIZE
protected static final String LABEL_UNSUPPORTED_FILETYPE
protected abstract String getEditorSclass()
protected void showUnsupportedMediaMessage(org.zkoss.zk.ui.Component parent,
EditorContext<T> context,
org.zkoss.util.media.Media media)
protected boolean isUploadedMediaAcceptable(org.zkoss.util.media.Media media,
EditorContext<T> ctx)
protected org.zkoss.zk.ui.Component createUploadContainer(EditorContext<T> context, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.UploadEvent> onUpload)
protected org.zkoss.zul.Button createFileUpload(EditorContext<T> context)
protected String getUpload(EditorContext<T> context)
protected org.zkoss.zk.ui.Component createDropUpload(org.zkoss.zk.ui.Component dropAnchor,
EditorContext<T> context)
protected Optional<FileUploadResult> toFileUploadResult(org.zkoss.util.media.Media media)
protected byte[] extractUploadedData(org.zkoss.util.media.Media media)
protected int getMaxFileSize(EditorContext<T> context)
protected boolean isCorrectFileSize(int sizeFromEditorParam)
protected boolean isSingleLineModeEnabled(EditorContext<T> context)
protected Optional<org.zkoss.zul.Image> getContentImage(FileUploadResult uploadResult)
protected org.zkoss.zul.Image getContentTypeImage(String contentType, boolean gridPreview)
protected void addImageZoomPopup(org.zkoss.zk.ui.Component parent,
org.zkoss.zul.Image target)
public ObjectPreviewService getObjectPreviewService()
public CockpitProperties getCockpitProperties()
Copyright © 2018. All rights reserved.