public class DragAndDropFileUploadEditor extends AbstractDragAndDropFileUploadEditor<FileUploadResult>
| Modifier and Type | Field and Description |
|---|---|
protected static String |
EDITOR_PREFIX |
DEFAULT_MAX_FILE_SIZE, FILE_UPLOAD_MAX_SIZE, LABEL_DROPCONTENT, LABEL_UNSUPPORTED_FILETYPE, LABEL_UPLOAD, PARAM_ACCEPT, PARAM_MAX_SIZE, PARAM_SINGLE_LINE_MODE, UNLIMITED_FILE_SIZEHEADER_LABEL_TOOLTIP, ON_ADD_EVENT, ON_DELETE_EVENTINITIAL_EDIT_STRING| Constructor and Description |
|---|
DragAndDropFileUploadEditor() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getEditorSclass() |
protected void |
onFileUpload(org.zkoss.zk.ui.Component parent,
EditorContext<FileUploadResult> context,
EditorListener<FileUploadResult> listener,
org.zkoss.zk.ui.event.UploadEvent event) |
void |
render(org.zkoss.zk.ui.Component parent,
EditorContext<FileUploadResult> context,
EditorListener<FileUploadResult> listener)
Creates a new editor component and attaches it to the specified
Component component. |
protected void |
renderPreview(org.zkoss.zk.ui.Component parent,
FileUploadResult uploadResult,
EditorContext<FileUploadResult> context,
EditorListener<FileUploadResult> listener) |
protected void |
renderUploadView(org.zkoss.zk.ui.Component parent,
EditorContext<FileUploadResult> context,
EditorListener<FileUploadResult> listener) |
addImageZoomPopup, createDropUpload, createFileUpload, createUploadContainer, extractUploadedData, getCockpitProperties, getContentImage, getContentTypeImage, getMaxFileSize, getObjectPreviewService, getUpload, isCorrectFileSize, isSingleLineModeEnabled, isUploadedMediaAcceptable, matchContentType, showUnsupportedMediaMessage, toFileUploadResultextractEmbeddedEditor, extractEmbeddedType, findAncestorEditor, findEmbeddedEditors, getInitialEditString, getL10nDecoratorprotected static final String EDITOR_PREFIX
protected String getEditorSclass()
getEditorSclass in class AbstractDragAndDropFileUploadEditor<FileUploadResult>public void render(org.zkoss.zk.ui.Component parent,
EditorContext<FileUploadResult> context,
EditorListener<FileUploadResult> listener)
CockpitEditorRendererComponent component.parent - parent component the editor should be attached tocontext - the context for the editor creationlistener - the listener to notify the rest of the world about value changes and other eventsprotected void renderUploadView(org.zkoss.zk.ui.Component parent,
EditorContext<FileUploadResult> context,
EditorListener<FileUploadResult> listener)
protected void onFileUpload(org.zkoss.zk.ui.Component parent,
EditorContext<FileUploadResult> context,
EditorListener<FileUploadResult> listener,
org.zkoss.zk.ui.event.UploadEvent event)
protected void renderPreview(org.zkoss.zk.ui.Component parent,
FileUploadResult uploadResult,
EditorContext<FileUploadResult> context,
EditorListener<FileUploadResult> listener)
Copyright © 2018. All rights reserved.