Class QuickUploadController
java.lang.Object
org.zkoss.zk.ui.event.GenericEventListener
org.zkoss.zk.ui.util.GenericComposer<T>
org.zkoss.zk.ui.util.GenericAutowireComposer<T>
org.zkoss.zk.ui.util.GenericForwardComposer<org.zkoss.zk.ui.Component>
com.hybris.cockpitng.util.ViewAnnotationAwareComposer
com.hybris.cockpitng.util.DefaultWidgetController
de.hybris.platform.datahubbackoffice.presentation.widgets.quickupload.QuickUploadController
- All Implemented Interfaces:
com.hybris.cockpitng.core.WidgetController,com.hybris.cockpitng.dnd.WidgetDragAndDropAware,com.hybris.cockpitng.engine.WidgetInstanceManagerAware,Serializable,org.zkoss.zk.ui.event.EventListener,org.zkoss.zk.ui.event.SerializableEventListener,org.zkoss.zk.ui.util.ComponentActivationListener,org.zkoss.zk.ui.util.ComponentCloneListener,org.zkoss.zk.ui.util.Composer<org.zkoss.zk.ui.Component>,org.zkoss.zk.ui.util.ComposerExt<org.zkoss.zk.ui.Component>
public class QuickUploadController
extends com.hybris.cockpitng.util.DefaultWidgetController
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected org.zkoss.zul.Divprotected com.hybris.cockpitng.components.Editorprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected com.hybris.cockpitng.components.Editorprotected org.zkoss.zul.Textboxprotected org.zkoss.zul.Radioprotected org.zkoss.zul.Divprotected org.zkoss.zul.Divprotected static final Stringprotected static final Stringprotected org.zkoss.zul.Divprotected com.hybris.cockpitng.components.Editorprotected org.zkoss.zul.Radiogroupprotected static final Stringprotected com.hybris.cockpitng.components.Editorprotected org.zkoss.zul.Textboxprotected static final Stringprotected static final Stringprotected com.hybris.cockpitng.components.Editorprotected static final Stringprotected org.zkoss.zul.Divprotected org.zkoss.zul.Buttonprotected org.zkoss.zul.Textboxprotected org.zkoss.zul.LabelFields inherited from class org.zkoss.zk.ui.util.GenericAutowireComposer
_separator, application, applicationScope, arg, componentScope, desktop, desktopScope, execution, page, pageScope, param, requestScope, self, session, sessionScope, spaceOwner, spaceScopeFields inherited from class org.zkoss.zk.ui.util.GenericComposer
_applied -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidprotected voidprotected voidbuildComposeRow(org.zkoss.zk.ui.Component parent) protected voidbuildPublishRow(org.zkoss.zk.ui.Component parent) protected voidvoidprotected voidprotected voidprotected voidprotected voidprotected DataHubServerprotected org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>protected com.hybris.cockpitng.components.EditorcreateEditor(String type, String property, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> eventListener, boolean multi) protected org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>protected com.hybris.cockpitng.components.EditorcreateTypeEditor(org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> eventListener) protected voidprotected voidenableComposeRow(boolean enable) protected voidenableLoadRow(boolean enabled) protected voidenablePublishRow(boolean enable) com.hybris.backoffice.widgets.notificationarea.NotificationServiceprotected Stringvoidinitialize(org.zkoss.zk.ui.Component comp) protected booleanprotected ProcessingStrategyvoidvoidonTextAreaChange(org.zkoss.zk.ui.event.InputEvent event) protected voidpopulateLoadRowSelectors(org.zkoss.zk.ui.Component parent) protected voidprepareWidgetModel(DataHubServer dataHub) voidprotected voidvoidprotected voidprotected voidvoidsetNotificationService(com.hybris.backoffice.widgets.notificationarea.NotificationService notificationService) voidsetProcessingStrategies(List<ProcessingStrategy> strategies) voiduploadFile(org.zkoss.zk.ui.event.UploadEvent uploadEvent) Methods inherited from class com.hybris.cockpitng.util.DefaultWidgetController
doAfterCompose, doBeforeCompose, doBeforeComposeChildren, executeOperation, getDragAndDropStrategy, getLabel, getLabel, getModel, getValue, getWidgetDragAndDropStrategyRepository, getWidgetInstanceManager, getWidgetRoot, getWidgetSettings, getWidgetslot, getWidgetTitle, getWidgetUtils, initDragAndDropAwareness, initWidgetSetting, initWidgetSetting, initWidgetSetting, initWidgetSetting, initWidgetSetting, invokeListenerMethod, onSocketInput, preInitialize, sendOutput, sendOutputAfterOperation, sendOutputAfterOperation, sendOutputAfterOperation, setValue, setWidgetInstanceManager, setWidgetTitleMethods inherited from class com.hybris.cockpitng.util.ViewAnnotationAwareComposer
scanEventListenersMethods inherited from class org.zkoss.zk.ui.util.GenericAutowireComposer
alert, didActivate, getPage, willClone, willPassivateMethods inherited from class org.zkoss.zk.ui.util.GenericComposer
doCatch, doFinallyMethods inherited from class org.zkoss.zk.ui.event.GenericEventListener
bindComponent, getController, onEvent, unbindComponent
-
Field Details
-
FEED_MODEL_PARAMETER
- See Also:
-
TYPE_MODEL_PARAMETER
- See Also:
-
COMPOSE_POOL_MODEL_PARAMETER
- See Also:
-
PUBLISH_POOL_MODEL_PARAMETER
- See Also:
-
TARGET_SYSTEMS_MODEL_PARAMETER
- See Also:
-
UPLOADED_MEDIA_MODEL_PARAMETER
- See Also:
-
DATAHUB_INFO_MODEL_PARAMETER
- See Also:
-
TEXTAREA_CONTENT_MODEL_PARAMETER
- See Also:
-
DATAHUB_FEED_TYPECODE
- See Also:
-
DATAHUB_TARGET_SYSTEM_TYPECODE
- See Also:
-
DATAHUB_CANONICAL_ITEM_TYPECODE
- See Also:
-
COMPONENT_CLEAR_BTN
- See Also:
-
COMPONENT_LOAD_BTN
- See Also:
-
COMPONENT_COMPOSE_BTN
- See Also:
-
COMPONENT_PUBLISH_BTN
- See Also:
-
COMPONENT_UPLOAD_BTN
- See Also:
-
COMPONENT_TEXTAREA
- See Also:
-
COMPONENT_PROCESS
- See Also:
-
NOTIFIER_STACK
- See Also:
-
composeContent
protected org.zkoss.zul.Div composeContent -
publishContent
protected org.zkoss.zul.Div publishContent -
loadSelectors
protected org.zkoss.zul.Div loadSelectors -
url
protected org.zkoss.zul.Textbox url -
filename
protected org.zkoss.zul.Textbox filename -
textarea
protected org.zkoss.zul.Textbox textarea -
uploadFile
protected org.zkoss.zul.Button uploadFile -
uploadedFileContent
protected org.zkoss.zul.Div uploadedFileContent -
loadBtn
protected org.zkoss.zul.Radio loadBtn -
radioGroup
protected org.zkoss.zul.Radiogroup radioGroup -
main
protected org.zkoss.zul.Div main -
widgetTitle
protected org.zkoss.zul.Label widgetTitle -
feedSelector
protected com.hybris.cockpitng.components.Editor feedSelector -
typeSelector
protected com.hybris.cockpitng.components.Editor typeSelector -
composePoolSelector
protected com.hybris.cockpitng.components.Editor composePoolSelector -
publishPoolSelector
protected com.hybris.cockpitng.components.Editor publishPoolSelector -
targetSystemSelector
protected com.hybris.cockpitng.components.Editor targetSystemSelector
-
-
Constructor Details
-
QuickUploadController
public QuickUploadController()
-
-
Method Details
-
initialize
public void initialize(org.zkoss.zk.ui.Component comp) - Overrides:
initializein classcom.hybris.cockpitng.util.DefaultWidgetController
-
refreshWhenDatahubInstanceChanged
-
prepareWidgetModel
-
contextDataHubServer
-
getWidgetId
-
clearButtonPressed
public void clearButtonPressed() -
activateLoadRow
public void activateLoadRow() -
activateComposeRow
public void activateComposeRow() -
activatePublishRow
public void activatePublishRow() -
uploadFile
public void uploadFile(org.zkoss.zk.ui.event.UploadEvent uploadEvent) -
onTextAreaChange
public void onTextAreaChange(org.zkoss.zk.ui.event.InputEvent event) -
processSelected
public void processSelected() -
getSelectedProcessKey
-
isProcessSelected
protected boolean isProcessSelected() -
createWidgetTitle
protected void createWidgetTitle() -
createCtx
-
renderContent
protected void renderContent() -
clearLoadRowData
protected void clearLoadRowData() -
enableLoadRow
protected void enableLoadRow(boolean enabled) -
enableComposeRow
protected void enableComposeRow(boolean enable) -
enablePublishRow
protected void enablePublishRow(boolean enable) -
clearLoadRow
protected void clearLoadRow() -
clearComposeRow
protected void clearComposeRow() -
clearPublishRow
protected void clearPublishRow() -
createRecalculateUrlEventListener
protected org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> createRecalculateUrlEventListener() -
createClearWrongValueEditorListener
protected org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> createClearWrongValueEditorListener() -
populateLoadRowSelectors
protected void populateLoadRowSelectors(org.zkoss.zk.ui.Component parent) -
buildComposeRow
protected void buildComposeRow(org.zkoss.zk.ui.Component parent) -
buildPublishRow
protected void buildPublishRow(org.zkoss.zk.ui.Component parent) -
recalculateUrl
protected void recalculateUrl() -
clearBinaryMedia
protected void clearBinaryMedia() -
lookupMatchingStrategy
-
appendLocalNotifier
protected void appendLocalNotifier() -
removeLocalNotifier
protected void removeLocalNotifier() -
createTypeEditor
protected com.hybris.cockpitng.components.Editor createTypeEditor(org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> eventListener) -
markEditorError
-
createEditor
-
setProcessingStrategies
-
setNotificationService
public void setNotificationService(com.hybris.backoffice.widgets.notificationarea.NotificationService notificationService) -
getNotificationService
public com.hybris.backoffice.widgets.notificationarea.NotificationService getNotificationService()
-