Class DefaultFileUploadEditor
- java.lang.Object
-
- com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer<FileUploadResult>
-
- com.hybris.cockpitng.editor.defaultfileupload.DefaultFileUploadEditor
-
- All Implemented Interfaces:
CockpitEditorRenderer<FileUploadResult>
public class DefaultFileUploadEditor extends AbstractCockpitEditorRenderer<FileUploadResult>
Editor to manage media content
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringIMAGEstatic java.lang.StringUPLOAD_TRUE-
Fields inherited from class com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer
HEADER_LABEL_TOOLTIP, ON_ADD_EVENT, ON_DELETE_EVENT, YW_EDITOR_AREA_LABEL_CONTAINER
-
Fields inherited from interface com.hybris.cockpitng.editors.CockpitEditorRenderer
INITIAL_EDIT_STRING
-
-
Constructor Summary
Constructors Constructor Description DefaultFileUploadEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidgeneratePreview(FileUploadResult value, org.zkoss.zul.Div previewComponent)protected voidgeneratePreview(org.zkoss.util.media.Media media, org.zkoss.zul.Div previewComponent)voidrender(org.zkoss.zk.ui.Component parent, EditorContext<FileUploadResult> context, EditorListener<FileUploadResult> listener)Creates a new editor component and attaches it to the specifiedComponentcomponent.-
Methods inherited from class com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer
extractEmbeddedEditor, extractEmbeddedType, findAncestorEditor, findEmbeddedEditors, getInitialEditString, getL10nDecorator
-
-
-
-
Field Detail
-
UPLOAD_TRUE
public static final java.lang.String UPLOAD_TRUE
- See Also:
- Constant Field Values
-
IMAGE
public static final java.lang.String IMAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
render
public void render(org.zkoss.zk.ui.Component parent, EditorContext<FileUploadResult> context, EditorListener<FileUploadResult> listener)Description copied from interface:CockpitEditorRendererCreates a new editor component and attaches it to the specifiedComponentcomponent.- Parameters:
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 events
-
generatePreview
protected void generatePreview(FileUploadResult value, org.zkoss.zul.Div previewComponent)
-
generatePreview
protected void generatePreview(org.zkoss.util.media.Media media, org.zkoss.zul.Div previewComponent)
-
-