Class ThemeSettingController
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
com.hybris.backoffice.widgets.branding.themesetting.ThemeSettingController
- 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 ThemeSettingController
extends com.hybris.cockpitng.util.DefaultWidgetController
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.zkoss.zul.ListModelList<ThemeModel>protected org.zkoss.zul.ListModelList<ThemeModel>protected static final Stringprotected org.zkoss.zul.Buttonprotected ThemeModelprotected BackofficeThemeLevelprotected ThemeModelprotected static final Stringprotected static final Stringprotected static final Stringprotected org.zkoss.zul.Buttonprotected static final Stringprotected org.zkoss.zul.Radioprotected org.zkoss.zul.Divprotected org.zkoss.zul.Listboxprotected org.zkoss.zul.Radiogroupprotected org.zkoss.zul.Radioprotected org.zkoss.zul.Divprotected org.zkoss.zul.ListboxFields 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 TypeMethodDescriptionprotected voidcom.hybris.cockpitng.util.notifications.NotificationServicevoidinitialize(org.zkoss.zk.ui.Component comp) voidonCancel()voidvoidonSave()voidonThemeClick(ThemeModel theme) voidonThemeLevelCheck(String levelName) protected voidreset()voidsetBackofficeThemeService(BackofficeThemeService backofficeThemeService) voidsetNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService) voidsetUserService(UserService userService) 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
-
SOCKET_INPUT_CUSTOM_THEME_CHANGED
- See Also:
-
SAVE_BUTTON
- See Also:
-
CANCEL_BUTTON
- See Also:
-
NOTIFICATION_AREA
- See Also:
-
NOTIFICATION_TYPE_THEME_CHANGED
- See Also:
-
availableSystemThemes
-
availableUserThemes
-
currentSystemTheme
-
currentUserTheme
-
currentThemeLevel
-
systemThemeList
protected org.zkoss.zul.Listbox systemThemeList -
userThemeList
protected org.zkoss.zul.Listbox userThemeList -
systemThemeContent
protected org.zkoss.zul.Div systemThemeContent -
userThemeContent
protected org.zkoss.zul.Div userThemeContent -
themeLevelRadioGroup
protected org.zkoss.zul.Radiogroup themeLevelRadioGroup -
systemRadio
protected org.zkoss.zul.Radio systemRadio -
userRadio
protected org.zkoss.zul.Radio userRadio -
saveButton
protected org.zkoss.zul.Button saveButton -
cancelButton
protected org.zkoss.zul.Button cancelButton
-
-
Constructor Details
-
ThemeSettingController
public ThemeSettingController()
-
-
Method Details
-
initialize
public void initialize(org.zkoss.zk.ui.Component comp) - Overrides:
initializein classcom.hybris.cockpitng.util.DefaultWidgetController
-
reset
protected void reset() -
onThemeClick
-
onThemeLevelCheck
-
onCustomThemeChanged
public void onCustomThemeChanged() -
onSave
public void onSave() -
onCancel
public void onCancel() -
doRefreshTheUI
protected void doRefreshTheUI() -
getBackofficeThemeService
-
getNotificationService
public com.hybris.cockpitng.util.notifications.NotificationService getNotificationService() -
setNotificationService
public void setNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService) -
getUserService
-
setUserService
-
setBackofficeThemeService
-