public interface ComponentWidgetAdapter
| Modifier and Type | Field and Description |
|---|---|
static String |
WIDGET_STUB_PREFIX |
| Modifier and Type | Method and Description |
|---|---|
void |
addSocketInputEventListener(String socketId,
org.zkoss.zk.ui.event.EventListener<SocketEvent> eventListener)
Registers an eventListener for input socket with the given ID.
|
void |
handleSocketInputEvent(SocketEvent socketInputEvent)
Handles a socket input event sent to this
ComponentWidgetAdapterAware instance from outside. |
void |
registerStubInstance(String componentId,
ComponentWidgetAdapterAware parent)
Registers a particular stub widget instance for given 'non-widget' aware component
|
void |
sendOutput(String socketId,
Object data,
ComponentWidgetAdapterAware parent)
Sends data to the output socked with the given ID.
|
void |
unregisterStubInstance()
Unregisters a particular stub widget instance associated with current instance of
ComponentWidgetAdapter |
static final String WIDGET_STUB_PREFIX
void sendOutput(String socketId, Object data, ComponentWidgetAdapterAware parent)
socketId - output socket ID to sent the data todata - the data to be sentvoid addSocketInputEventListener(String socketId, org.zkoss.zk.ui.event.EventListener<SocketEvent> eventListener)
socketId - output socket ID to sent the data toeventListener - event listener that is invoked when socket input event comesvoid registerStubInstance(String componentId, ComponentWidgetAdapterAware parent)
componentId - given component id e.g. editor id, action idparent - the parent for registered stub widget instancevoid unregisterStubInstance()
ComponentWidgetAdaptervoid handleSocketInputEvent(SocketEvent socketInputEvent)
ComponentWidgetAdapterAware instance from outside.socketInputEvent - a socket input eventCopyright © 2018. All rights reserved.