public interface WidgetUtils
| Modifier and Type | Field and Description |
|---|---|
static String |
NOTIFIER_STACK |
| Modifier and Type | Method and Description |
|---|---|
void |
addGlobalEventListener(String eventName,
Widgetslot widget,
org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> eventListener,
String scope)
Adds an event listener to the global event queue.
|
org.zkoss.zk.ui.Component |
addNotifierToStack(org.zkoss.zk.ui.Component content) |
org.zkoss.zk.ui.Component |
addNotifierToStack(org.zkoss.zk.ui.Component content,
org.zkoss.zk.ui.Component notifierStack) |
default void |
clearWidgetLibrary() |
void |
dispatchGlobalEvents()
Gets all unprocessed events from the global event queue and notifies subscribers.
|
org.zkoss.zk.ui.Component |
getCockpitRoot()
Gets the root of the current desktop.
|
Widgetslot |
getRegisteredWidgetslot(String widgetInstanceId)
Gets the
Widgetslot component for the given widgetInstanceId, if it has been registered for the
current Desktop. |
Widgetslot |
getRegisteredWidgetslot(WidgetInstance widgetInstance)
Gets the
Widgetslot component for the given WidgetInstance, if it has been registered for the
current Desktop. |
org.zkoss.zk.ui.Component |
getRoot()
Same as
getCockpitRoot(). |
boolean |
isPartOfComposedWidget(Widget widget)
Checks, if the given widget is has a group widget as ancestor.
|
void |
refreshWidgetLibrary() |
void |
registerWidgetslot(Widgetslot widgetslot)
Registers a
Widgetslot at the current Desktop. |
static final String NOTIFIER_STACK
void refreshWidgetLibrary()
default void clearWidgetLibrary()
org.zkoss.zk.ui.Component addNotifierToStack(org.zkoss.zk.ui.Component content)
content - content component of the notify entry.org.zkoss.zk.ui.Component addNotifierToStack(org.zkoss.zk.ui.Component content,
org.zkoss.zk.ui.Component notifierStack)
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.org.zkoss.zk.ui.Component getCockpitRoot()
boolean isPartOfComposedWidget(Widget widget)
void addGlobalEventListener(String eventName, Widgetslot widget, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> eventListener, String scope)
void dispatchGlobalEvents()
throws Exception
Exceptionorg.zkoss.zk.ui.Component getRoot()
getCockpitRoot().Widgetslot getRegisteredWidgetslot(WidgetInstance widgetInstance)
Widgetslot component for the given WidgetInstance, if it has been registered for the
current Desktop.Widgetslot getRegisteredWidgetslot(String widgetInstanceId)
Widgetslot component for the given widgetInstanceId, if it has been registered for the
current Desktop.void registerWidgetslot(Widgetslot widgetslot)
Widgetslot at the current Desktop.Copyright © 2018. All rights reserved.