Class ImpExExportResultDownload
java.lang.Object
com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer<Object>
de.hybris.platform.platformbackoffice.widgets.impex.ImpExExportResultDownload
- All Implemented Interfaces:
com.hybris.cockpitng.editors.CockpitEditorRenderer<Object>
public class ImpExExportResultDownload
extends com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer<Object>
-
Field Summary
Fields inherited from class com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer
HEADER_LABEL_TOOLTIP, ON_ADD_EVENT, ON_DELETE_EVENT, YW_EDITOR_AREA_LABEL_CONTAINERFields inherited from interface com.hybris.cockpitng.editors.CockpitEditorRenderer
INITIAL_EDIT_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecuteBrowserMediaDownload(InputStream mediaStream, String mime, String fileName) This is a wrapper method to execute the download in the browser usingFiledownload.save(InputStream, String, String).protected voidThe method allows to transfer the given media to the use via browser's download capability.voidrender(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.editors.EditorContext<Object> context, com.hybris.cockpitng.editors.EditorListener<Object> listener) Methods inherited from class com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer
extractEmbeddedEditor, extractEmbeddedType, findAncestorEditor, findEmbeddedEditors, getInitialEditString, getL10nDecorator
-
Constructor Details
-
ImpExExportResultDownload
public ImpExExportResultDownload()
-
-
Method Details
-
render
-
executeMediaDownload
The method allows to transfer the given media to the use via browser's download capability.- Parameters:
media- media object to be passed on to the user's browser (download)
-
executeBrowserMediaDownload
This is a wrapper method to execute the download in the browser usingFiledownload.save(InputStream, String, String).- Parameters:
mediaStream- stream to be passed to the browser as the content of the downloaded filemime- mime type of the downloaded filefileName- name of the downloaded file- See Also:
-
Filedownload.save(InputStream, String, String)
-
getMediaService
-