public class GenericMediaItemUploadPanelRenderer
extends <any>
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
CLEAR_CONTENT_BTN_SCLASS |
protected java.lang.String |
currentlyDisplayedMediaInfo |
protected java.lang.String |
currentlyDisplayedMode |
protected static java.lang.String |
DATA_MODEL_ATTRIBUTE |
protected static java.lang.String |
DATA_MODEL_PROPERTY |
protected static java.lang.String |
DATE_FORMAT |
protected static long |
DEFAULT_MAX_FILE_SIZE_KB |
protected static java.lang.String |
DOWNLOAD_BTN_SCLASS |
protected static java.lang.String |
FILE_UPLOAD_MAX_SIZE |
protected static java.lang.String |
FILEUPLOAD_SCLASS |
protected static java.lang.String |
IMAGE |
protected static java.lang.String |
IMG_STYLE |
protected java.lang.String |
initiallyDisplayedMediaModelInfo |
protected static java.lang.String |
LABEL_KEY_PK |
protected static java.lang.String |
LABEL_KEY_TIME_CREATED |
protected static java.lang.String |
LABEL_KEY_TIME_MODIFIED |
protected static java.lang.String |
MAX_SIZE |
protected static java.lang.String |
MEDIA_INFO_CNT |
protected static java.lang.String |
MEDIA_INFO_HEADER |
protected static java.lang.String |
MEDIA_INFO_NOT_AVAILABLE |
protected static java.lang.String |
MEDIA_INFO_VALUE |
protected static java.lang.String |
MEDIA_PREVIEW |
protected static java.lang.String |
MEDIA_PREVIEW_CNT |
protected static java.lang.String |
MEDIA_TYPE_CODE |
protected java.lang.String |
MODEL_DISPLAY_FROM_MODEL |
protected java.lang.String |
MODEL_MEDIA_CANCELED |
protected java.lang.String |
MODEL_MEDIA_SAVED |
protected java.lang.String |
MODEL_RENDER_PARAMETER_MAP |
protected java.lang.String |
MODEL_ZK_MEDIA_CLEARED |
protected java.lang.String |
MODEL_ZK_MEDIA_MODEL_KEY |
protected static java.lang.String |
ON_UPLOAD_LATER |
static java.lang.String |
PROPERTY_SRC |
protected static java.lang.String |
SMALL_IMAGE_PREVIEW_CNT |
protected static java.lang.String |
VIEW_MODE_ACTIVE |
protected static java.lang.String |
VIEW_MODE_INACTIVE |
protected static java.lang.String |
Y_WARNING_BTN_SCLASS |
| Constructor and Description |
|---|
GenericMediaItemUploadPanelRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
adjustView(Component rendererPanel,
DataType type) |
protected void |
cleanupModel() |
protected Label |
createMediaInfoHeaderLabel(java.lang.String initialValue) |
protected Label |
createMediaInfoValueLabel(java.lang.String infoLabel,
java.lang.String initialValue) |
protected Label |
getAttributeLabel(DataAttribute attribute) |
CockpitProperties |
getCockpitProperties() |
protected java.lang.String |
getEntityId(java.lang.Object data,
AbstractPanel panel) |
protected MediaModel |
getMediaModel() |
protected MediaService |
getMediaService() |
protected MediaStorageConfigService |
getMediaStorageConfigService() |
protected ModelService |
getModelService() |
protected ObjectFacade |
getObjectFacade() |
protected ObjectPreviewService |
getObjectPreviewService() |
protected PermissionFacadeStrategy |
getPermissionFacadeStrategy() |
protected WidgetInstanceManager |
getWidgetInstanceManager() |
protected Media |
getZkMedia() |
protected void |
initializeActiveView(Component rendererPanel,
DataType type) |
protected void |
initializeInactiveView(Component rendererPanel,
DataType type) |
protected void |
initMediaInfoLabels() |
protected Vlayout |
initMediaInfoPanel() |
protected void |
initPreRenderModelConstants(java.lang.String suffix) |
protected boolean |
isDisplayable(MediaModel media) |
protected boolean |
isInSecureFolder(MediaModel mediaModel) |
protected void |
refreshActiveView(DataType type) |
protected void |
refreshModelAndViewAfterSaveListeners(DataType type) |
protected void |
refreshWidgetModelAfterSaveListeners() |
protected void |
removeAfterSaveAndCancelListeners() |
void |
render(Component parent,
AbstractPanel panel,
java.lang.Object data,
DataType type,
WidgetInstanceManager widgetInstanceManager) |
void |
setCockpitProperties(CockpitProperties cockpitProperties) |
protected void |
setLimitOnMaxFileSize(Fileupload fileupload) |
void |
setMediaService(MediaService mediaService) |
void |
setMediaStorageConfigService(MediaStorageConfigService mediaStorageConfigService) |
void |
setModelService(ModelService modelService) |
void |
setObjectFacade(ObjectFacade objectFacade) |
void |
setObjectPreviewService(ObjectPreviewService objectPreviewService) |
void |
setPermissionFacadeStrategy(PermissionFacadeStrategy permissionFacadeStrategy) |
public static final java.lang.String PROPERTY_SRC
protected static final java.lang.String LABEL_KEY_PK
protected static final java.lang.String LABEL_KEY_TIME_CREATED
protected static final java.lang.String LABEL_KEY_TIME_MODIFIED
protected static final java.lang.String IMAGE
protected static final long DEFAULT_MAX_FILE_SIZE_KB
protected static final java.lang.String MEDIA_TYPE_CODE
protected static final java.lang.String MAX_SIZE
protected static final java.lang.String FILE_UPLOAD_MAX_SIZE
protected static final java.lang.String IMG_STYLE
protected static final java.lang.String MEDIA_INFO_HEADER
protected static final java.lang.String MEDIA_INFO_VALUE
protected static final java.lang.String MEDIA_PREVIEW
protected static final java.lang.String MEDIA_PREVIEW_CNT
protected static final java.lang.String MEDIA_INFO_CNT
protected static final java.lang.String FILEUPLOAD_SCLASS
protected static final java.lang.String CLEAR_CONTENT_BTN_SCLASS
protected static final java.lang.String Y_WARNING_BTN_SCLASS
protected static final java.lang.String DOWNLOAD_BTN_SCLASS
protected static final java.lang.String ON_UPLOAD_LATER
protected static final java.lang.String SMALL_IMAGE_PREVIEW_CNT
protected static final java.lang.String DATE_FORMAT
protected static final java.lang.String DATA_MODEL_PROPERTY
protected static final java.lang.String DATA_MODEL_ATTRIBUTE
protected static final java.lang.String VIEW_MODE_ACTIVE
protected static final java.lang.String VIEW_MODE_INACTIVE
protected static final java.lang.String MEDIA_INFO_NOT_AVAILABLE
protected java.lang.String MODEL_MEDIA_SAVED
protected java.lang.String MODEL_MEDIA_CANCELED
protected java.lang.String MODEL_RENDER_PARAMETER_MAP
protected java.lang.String MODEL_ZK_MEDIA_MODEL_KEY
protected java.lang.String MODEL_ZK_MEDIA_CLEARED
protected java.lang.String MODEL_DISPLAY_FROM_MODEL
protected java.lang.String currentlyDisplayedMode
protected java.lang.String currentlyDisplayedMediaInfo
protected java.lang.String initiallyDisplayedMediaModelInfo
public void render(Component parent,
AbstractPanel panel,
java.lang.Object data,
DataType type,
WidgetInstanceManager widgetInstanceManager)
protected void adjustView(Component rendererPanel,
DataType type)
protected void initializeInactiveView(Component rendererPanel,
DataType type)
protected void initializeActiveView(Component rendererPanel,
DataType type)
protected Label getAttributeLabel(DataAttribute attribute)
protected void refreshActiveView(DataType type)
protected void cleanupModel()
protected void initPreRenderModelConstants(java.lang.String suffix)
protected void removeAfterSaveAndCancelListeners()
protected java.lang.String getEntityId(java.lang.Object data,
AbstractPanel panel)
protected MediaModel getMediaModel()
protected void refreshModelAndViewAfterSaveListeners(DataType type)
protected void refreshWidgetModelAfterSaveListeners()
protected boolean isInSecureFolder(MediaModel mediaModel)
protected Vlayout initMediaInfoPanel()
protected void initMediaInfoLabels()
protected Label createMediaInfoHeaderLabel(java.lang.String initialValue)
protected Label createMediaInfoValueLabel(java.lang.String infoLabel,
java.lang.String initialValue)
protected void setLimitOnMaxFileSize(Fileupload fileupload)
protected boolean isDisplayable(MediaModel media)
protected Media getZkMedia()
protected ModelService getModelService()
public void setModelService(ModelService modelService)
protected MediaService getMediaService()
public void setMediaService(MediaService mediaService)
protected MediaStorageConfigService getMediaStorageConfigService()
public void setMediaStorageConfigService(MediaStorageConfigService mediaStorageConfigService)
public CockpitProperties getCockpitProperties()
public void setCockpitProperties(CockpitProperties cockpitProperties)
protected PermissionFacadeStrategy getPermissionFacadeStrategy()
public void setPermissionFacadeStrategy(PermissionFacadeStrategy permissionFacadeStrategy)
protected ObjectPreviewService getObjectPreviewService()
public void setObjectPreviewService(ObjectPreviewService objectPreviewService)
protected ObjectFacade getObjectFacade()
public void setObjectFacade(ObjectFacade objectFacade)
protected WidgetInstanceManager getWidgetInstanceManager()
Copyright © 2018 SAP SE. All Rights Reserved.