public class MediaEditorSectionConfiguration extends DefaultEditorSectionConfiguration implements CustomEditorSectionConfiguration
| Modifier and Type | Class and Description |
|---|---|
static class |
MediaEditorSectionConfiguration.MediaContent
Special class that holds all necessary media information
|
class |
MediaEditorSectionConfiguration.MediaEditorSectionRenderer
Media editor section custom renderer - renders whole section
|
| Constructor and Description |
|---|
MediaEditorSectionConfiguration() |
MediaEditorSectionConfiguration(java.lang.String qualifier) |
| Modifier and Type | Method and Description |
|---|---|
void |
allInitialized(EditorConfiguration config,
ObjectType objectType,
TypedObject currentObject) |
MediaEditorSectionConfiguration |
clone() |
protected Image |
convertByteStreamToImage(byte[] byteStream,
java.lang.String name)
Converts given byte sequence to regular ZK Image
|
protected Image |
convertToImage(AImage imageContent)
Converts given AImage object to regular ZK Image
|
protected Button |
createDownloadButton(TypedObject typedObject) |
protected Button |
createPreviewButton(TypedObject typedObject) |
protected Button |
createUploadButton(TypedObject typedObject,
Div previewContainer,
SectionPanelModel sectionModel) |
protected byte[] |
extractMediaBytesFromMedia(org.zkoss.util.media.Media uploadedMedia)
Method extracts byte sequence from given Media object
|
java.util.List<EditorSectionConfiguration> |
getAdditionalSections() |
MediaEditorSectionConfiguration.MediaEditorSectionRenderer |
getCustomRenderer() |
protected MediaInfoService |
getMediaInfoService() |
protected MediaUpdateService |
getMediaUpdateService() |
protected ModelService |
getModelService() |
SystemService |
getSystemService() |
void |
initialize(EditorConfiguration config,
ObjectType objectType,
TypedObject object) |
void |
loadValues(EditorConfiguration config,
ObjectType type,
TypedObject object,
ObjectValueContainer objectValues) |
void |
saveValues(EditorConfiguration config,
ObjectType type,
TypedObject object,
ObjectValueContainer objectValues) |
protected Component |
wrapButton(Button aButton)
Puts given button to prepared container
|
copyValues, getAllLabel, getLabel, getLabel, getLabelWithFallback, getLabelWithFallback, getPosition, getQualifier, getSectionRows, getXmlDataProvider, isInitiallyOpened, isPrintable, isTabbed, isVisible, setAllLabel, setInitiallyOpened, setPosition, setPrintable, setQualifier, setSectionRows, setShowIfEmpty, setShowInCreateMode, setTabbed, setVisible, setXmlDataProvider, setXmlDataProvider, showIfEmpty, showInCreateModeequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllLabel, getLabel, getLabel, getPosition, getQualifier, getSectionRows, getXmlDataProvider, isInitiallyOpened, isPrintable, isTabbed, isVisible, setAllLabel, setInitiallyOpened, setPosition, setPrintable, setQualifier, setSectionRows, setShowIfEmpty, setVisible, setXmlDataProvider, showIfEmpty, showInCreateModepublic MediaEditorSectionConfiguration()
public MediaEditorSectionConfiguration(java.lang.String qualifier)
public void allInitialized(EditorConfiguration config, ObjectType objectType, TypedObject currentObject)
allInitialized in interface CustomEditorSectionConfigurationpublic MediaEditorSectionConfiguration clone() throws java.lang.CloneNotSupportedException
clone in interface EditorSectionConfigurationclone in class DefaultEditorSectionConfigurationjava.lang.CloneNotSupportedExceptionprotected Image convertByteStreamToImage(byte[] byteStream,
java.lang.String name)
throws java.io.IOException
byteStream - data streamname - current nameImagejava.io.IOExceptionprotected Image convertToImage(AImage imageContent)
imageContent - image contentImageAImageprotected Button createDownloadButton(TypedObject typedObject)
protected Button createPreviewButton(TypedObject typedObject)
protected byte[] extractMediaBytesFromMedia(org.zkoss.util.media.Media uploadedMedia)
uploadedMedia - given media objectprotected Button createUploadButton(TypedObject typedObject, Div previewContainer, SectionPanelModel sectionModel)
public java.util.List<EditorSectionConfiguration> getAdditionalSections()
getAdditionalSections in interface CustomEditorSectionConfigurationpublic MediaEditorSectionConfiguration.MediaEditorSectionRenderer getCustomRenderer()
getCustomRenderer in interface CustomEditorSectionConfigurationprotected MediaUpdateService getMediaUpdateService()
public SystemService getSystemService()
protected ModelService getModelService()
protected MediaInfoService getMediaInfoService()
public void initialize(EditorConfiguration config, ObjectType objectType, TypedObject object)
initialize in interface CustomEditorSectionConfigurationpublic void loadValues(EditorConfiguration config, ObjectType type, TypedObject object, ObjectValueContainer objectValues)
loadValues in interface CustomEditorSectionConfigurationpublic void saveValues(EditorConfiguration config, ObjectType type, TypedObject object, ObjectValueContainer objectValues)
saveValues in interface CustomEditorSectionConfigurationprotected Component wrapButton(Button aButton)
aButton - given buttonCopyright © 2018 SAP SE. All Rights Reserved.