public class MultiDragAndDropFileUploadEditor extends AbstractDragAndDropFileUploadEditor<Collection<FileUploadResult>>
Listbox.setRows(int). Default value: 5.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_SELECTED_ITEMS_MAX_SIZE |
protected static String |
EDITOR_CONTAINER_SCLASS |
protected static String |
EDITOR_PREFIX |
protected static String |
LABEL_UNSUPPORTED_UPLOAD |
protected static String |
PARAM_SELECTED_ITEMS_MAX_SIZE |
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 |
|---|
MultiDragAndDropFileUploadEditor() |
| Modifier and Type | Method and Description |
|---|---|
protected org.zkoss.zul.Listbox |
createUploadedFilesList(EditorContext<Collection<FileUploadResult>> context,
EditorListener<Collection<FileUploadResult>> listener) |
protected Optional<org.zkoss.zul.Image> |
getContentImageWithZoom(org.zkoss.zk.ui.Component container,
FileUploadResult fileUploadResult) |
protected String |
getEditorSclass() |
protected int |
getSelectedReferencesMaxSize(EditorContext<Collection<FileUploadResult>> context) |
protected String |
getUpload(EditorContext<Collection<FileUploadResult>> context) |
protected void |
onUpload(org.zkoss.zul.Listbox uploadedList,
org.zkoss.zk.ui.event.UploadEvent event,
EditorContext<Collection<FileUploadResult>> context,
EditorListener<Collection<FileUploadResult>> listener) |
void |
render(org.zkoss.zk.ui.Component parent,
EditorContext<Collection<FileUploadResult>> context,
EditorListener<Collection<FileUploadResult>> listener)
Creates a new editor component and attaches it to the specified
Component component. |
protected void |
renderUploadedFile(org.zkoss.zul.Listitem item,
FileUploadResult data,
int index,
EditorContext<Collection<FileUploadResult>> context,
BiConsumer<Integer,FileUploadResult> onRemoveReference) |
protected void |
showUnsupportedMediaMessage(org.zkoss.zk.ui.Component messageAnchor,
EditorContext<Collection<FileUploadResult>> context) |
addImageZoomPopup, createDropUpload, createFileUpload, createUploadContainer, extractUploadedData, getCockpitProperties, getContentImage, getContentTypeImage, getMaxFileSize, getObjectPreviewService, isCorrectFileSize, isSingleLineModeEnabled, isUploadedMediaAcceptable, matchContentType, showUnsupportedMediaMessage, toFileUploadResultextractEmbeddedEditor, extractEmbeddedType, findAncestorEditor, findEmbeddedEditors, getInitialEditString, getL10nDecoratorpublic static final int DEFAULT_SELECTED_ITEMS_MAX_SIZE
protected static final String EDITOR_PREFIX
protected static final String EDITOR_CONTAINER_SCLASS
protected static final String PARAM_SELECTED_ITEMS_MAX_SIZE
protected static final String LABEL_UNSUPPORTED_UPLOAD
protected String getEditorSclass()
getEditorSclass in class AbstractDragAndDropFileUploadEditor<Collection<FileUploadResult>>public void render(org.zkoss.zk.ui.Component parent,
EditorContext<Collection<FileUploadResult>> context,
EditorListener<Collection<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 onUpload(org.zkoss.zul.Listbox uploadedList,
org.zkoss.zk.ui.event.UploadEvent event,
EditorContext<Collection<FileUploadResult>> context,
EditorListener<Collection<FileUploadResult>> listener)
protected org.zkoss.zul.Listbox createUploadedFilesList(EditorContext<Collection<FileUploadResult>> context, EditorListener<Collection<FileUploadResult>> listener)
protected int getSelectedReferencesMaxSize(EditorContext<Collection<FileUploadResult>> context)
protected void renderUploadedFile(org.zkoss.zul.Listitem item,
FileUploadResult data,
int index,
EditorContext<Collection<FileUploadResult>> context,
BiConsumer<Integer,FileUploadResult> onRemoveReference)
protected Optional<org.zkoss.zul.Image> getContentImageWithZoom(org.zkoss.zk.ui.Component container, FileUploadResult fileUploadResult)
protected void showUnsupportedMediaMessage(org.zkoss.zk.ui.Component messageAnchor,
EditorContext<Collection<FileUploadResult>> context)
protected String getUpload(EditorContext<Collection<FileUploadResult>> context)
getUpload in class AbstractDragAndDropFileUploadEditor<Collection<FileUploadResult>>Copyright © 2018. All rights reserved.