public interface CockpitWidgetEngine
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT_RESOURCE_PATH_PARAM |
static String |
COMPONENT_ROOT_PARAM |
static String |
LABELS_PARAM |
static String |
WIDGET_RESOURCE_PATH_PARAM |
static String |
WIDGET_ROOT_PARAM
Attribute name for the absolute web path (widget root) of the widget definition file and other widget resources,
cf.
|
static String |
WR_PARAM
Used as an alias for WIDGET_ROOT_PARAM
|
| Modifier and Type | Method and Description |
|---|---|
void |
createWidgetView(Widgetchildren widgetChildren)
Same as
createWidgetView(Widgetchildren, Map) with empty map as second arg. |
void |
createWidgetView(Widgetchildren widgetChildrenComponent,
Map<String,Object> ctx)
Creates the view components for the specified widgetchildren slot.
|
void |
createWidgetView(Widgetslot widgetslot)
Creates the view components for the specified widgetslot.
|
default boolean |
isIndependentView(WidgetDefinition widget,
String uri)
Checks whether provided URL points to widget's view, which is defined as not dependent from ZK framework (i.e.
|
void |
sendOutput(Widgetslot widgetslot,
String outputID)
Calls sendOutput(widgetslot, outputID, null)}.
|
void |
sendOutput(Widgetslot widgetslot,
String outputID,
Object data)
Calls sendOutput(widgetslot, outputID, data, false)}.
|
void |
sendOutput(Widgetslot widgetslot,
String outputID,
Object data,
boolean ignoreSockets)
Sends an output event from the widget attached to the widgetslot parameter with the given outputID.
|
static final String WR_PARAM
static final String WIDGET_ROOT_PARAM
AbstractCockpitComponentDefinition.getLocationPath().static final String COMPONENT_ROOT_PARAM
static final String WIDGET_RESOURCE_PATH_PARAM
static final String COMPONENT_RESOURCE_PATH_PARAM
static final String LABELS_PARAM
default boolean isIndependentView(WidgetDefinition widget, String uri)
widget - widget definition to be checkeduri - requested URLtrue if a URL points to view that is defined as independentvoid createWidgetView(Widgetslot widgetslot)
void createWidgetView(Widgetchildren widgetChildrenComponent, Map<String,Object> ctx)
void createWidgetView(Widgetchildren widgetChildren)
createWidgetView(Widgetchildren, Map) with empty map as second arg.void sendOutput(Widgetslot widgetslot, String outputID)
void sendOutput(Widgetslot widgetslot, String outputID, Object data)
void sendOutput(Widgetslot widgetslot, String outputID, Object data, boolean ignoreSockets)
DefaultWidgetController.sendOutput(String, Object).widgetslot - The source widget slotoutputID - The output socket iddata - The event dataignoreSockets - If false, the event is only sent if the output socket with outputID exists. Otherwise no check is done
and the event is sent. This is only needed for internal use, especially for composed widget internal
event handling.Copyright © 2018. All rights reserved.