Package com.hybris.cockpitng.util
Interface WidgetUtils
-
- All Known Implementing Classes:
DefaultWidgetUtils
public interface WidgetUtilsUtility methods for cockpitng framework engine. For internal use only.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNOTIFIER_STACK
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddGlobalEventListener(java.lang.String eventName, Widgetslot widget, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> eventListener, java.lang.String scope)Adds an event listener to the global event queue.org.zkoss.zk.ui.ComponentaddNotifierToStack(org.zkoss.zk.ui.Component content)org.zkoss.zk.ui.ComponentaddNotifierToStack(org.zkoss.zk.ui.Component content, org.zkoss.zk.ui.Component notifierStack)default voidclearWidgetLibrary()voiddispatchGlobalEvents()Gets all unprocessed events from the global event queue and notifies subscribers.org.zkoss.zk.ui.ComponentgetCockpitRoot()Gets the root of the current desktop.WidgetslotgetRegisteredWidgetslot(WidgetInstance widgetInstance)Gets theWidgetslotcomponent for the givenWidgetInstance, if it has been registered for the currentDesktop.WidgetslotgetRegisteredWidgetslot(java.lang.String widgetInstanceId)Gets theWidgetslotcomponent for the given widgetInstanceId, if it has been registered for the currentDesktop.org.zkoss.zk.ui.ComponentgetRoot()Same asgetCockpitRoot().booleanisPartOfComposedWidget(Widget widget)Checks, if the given widget is has a group widget as ancestor.voidrefreshWidgetLibrary()voidregisterWidgetslot(Widgetslot widgetslot)Registers aWidgetslotat the currentDesktop.
-
-
-
Field Detail
-
NOTIFIER_STACK
static final java.lang.String NOTIFIER_STACK
- See Also:
- Constant Field Values
-
-
Method Detail
-
refreshWidgetLibrary
void refreshWidgetLibrary()
-
clearWidgetLibrary
default void clearWidgetLibrary()
-
addNotifierToStack
org.zkoss.zk.ui.Component addNotifierToStack(org.zkoss.zk.ui.Component content)
- Parameters:
content- content component of the notify entry.- Returns:
- returns a component that represents a notifier entry which will be created in the root notifier component. This component should be detached if not used anymore.
-
addNotifierToStack
org.zkoss.zk.ui.Component addNotifierToStack(org.zkoss.zk.ui.Component content, org.zkoss.zk.ui.Component notifierStack)- Parameters:
content- content component of the notify entrynotifierStack- All notifiers will be displayed in this component. If null, no notifier entries will be created at all.- Returns:
- returns a component that represents a notifier entry. This component should be detached if not used anymore.
-
getCockpitRoot
org.zkoss.zk.ui.Component getCockpitRoot()
Gets the root of the current desktop.
-
isPartOfComposedWidget
boolean isPartOfComposedWidget(Widget widget)
Checks, if the given widget is has a group widget as ancestor.
-
addGlobalEventListener
void addGlobalEventListener(java.lang.String eventName, Widgetslot widget, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> eventListener, java.lang.String scope)Adds an event listener to the global event queue.
-
dispatchGlobalEvents
void dispatchGlobalEvents() throws java.lang.ExceptionGets all unprocessed events from the global event queue and notifies subscribers.- Throws:
java.lang.Exception
-
getRoot
org.zkoss.zk.ui.Component getRoot()
Same asgetCockpitRoot().
-
getRegisteredWidgetslot
Widgetslot getRegisteredWidgetslot(WidgetInstance widgetInstance)
Gets theWidgetslotcomponent for the givenWidgetInstance, if it has been registered for the currentDesktop.
-
getRegisteredWidgetslot
Widgetslot getRegisteredWidgetslot(java.lang.String widgetInstanceId)
Gets theWidgetslotcomponent for the given widgetInstanceId, if it has been registered for the currentDesktop.
-
registerWidgetslot
void registerWidgetslot(Widgetslot widgetslot)
Registers aWidgetslotat the currentDesktop.
-
-