public class WidgetComponentRendererEvent<P,C,D> extends Object
| Constructor and Description |
|---|
WidgetComponentRendererEvent(org.zkoss.zk.ui.Component source,
NotifyingWidgetComponentRenderer<P,C,D> renderer) |
WidgetComponentRendererEvent(org.zkoss.zk.ui.Component source,
WidgetComponentRenderer<P,C,D> renderer)
Deprecated.
since 6.5
|
| Modifier and Type | Method and Description |
|---|---|
WidgetComponentRendererEvent<?,?,?> |
getCause()
Gets rendering parameters of specific nested renderer.
|
<PP,CC,DD> WidgetComponentRendererEvent<PP,CC,DD> |
getCause(Class<? extends CC> configClass)
Gets rendering parameters of specific nested renderer that was rendering configuration of specified type.
|
<PP,CC,DD> WidgetComponentRendererEvent<PP,CC,DD> |
getCause(Predicate<WidgetComponentRendererEvent> condition)
Gets rendering parameters of specific nested renderer that meets specified conditions.
|
C |
getConfig() |
D |
getData() |
P |
getParent() |
NotifyingWidgetComponentRenderer<P,C,D> |
getRenderer() |
org.zkoss.zk.ui.Component |
getSource() |
protected void |
initCause(WidgetComponentRendererEvent<?,?,?> cause) |
boolean |
isFinal()
Checks whether this is final event of rendering.
|
void |
setEventData(P parent,
C config,
D data)
Sets information kept by event
|
@Deprecated public WidgetComponentRendererEvent(org.zkoss.zk.ui.Component source, WidgetComponentRenderer<P,C,D> renderer)
source - component that has been renderedrenderer - renderer that rendered the componentWidgetComponentRendererEvent(Component, NotifyingWidgetComponentRenderer)public WidgetComponentRendererEvent(org.zkoss.zk.ui.Component source,
NotifyingWidgetComponentRenderer<P,C,D> renderer)
source - component that has been renderedrenderer - renderer that rendered the componentpublic void setEventData(P parent, C config, D data)
parent - container which children are being renderedconfig - renderer configurationdata - data being renderedpublic org.zkoss.zk.ui.Component getSource()
protected void initCause(WidgetComponentRendererEvent<?,?,?> cause)
public WidgetComponentRendererEvent<?,?,?> getCause()
Helpful when nested rendering is used (i.e. EditorAreaRenderer uses TabRenderer). In such situation it is possible that all listeners of parent renderer (i.e. EditorArea's) wishes to be notified of rendering events of nested renderer (i.e. TabRenderer). If any events are posted by wrapped renderer, then they are passed over to parent renderer.
Parent listeners that are notified of nested rendering events gets information about particular component that has been rendered and parent's configuration/data.
public <PP,CC,DD> WidgetComponentRendererEvent<PP,CC,DD> getCause(Class<? extends CC> configClass)
Helpful when nested rendering is used (i.e. EditorAreaRenderer uses TabRenderer). In such situation it is possible that all listeners of parent renderer (i.e. EditorArea's) wishes to be notified of rendering events of nested renderer (i.e. TabRenderer). If any events are posted by wrapped renderer, then they are passed over to parent renderer.
Parent listeners that are notified of nested rendering events gets information about particular component that has been rendered and parent's configuration/data.
configClass - class of a configuration which rendering event is to be foundpublic <PP,CC,DD> WidgetComponentRendererEvent<PP,CC,DD> getCause(Predicate<WidgetComponentRendererEvent> condition)
Helpful when nested rendering is used (i.e. EditorAreaRenderer uses TabRenderer). In such situation it is possible that all listeners of parent renderer (i.e. EditorArea's) wishes to be notified of rendering events of nested renderer (i.e. TabRenderer). If any events are posted by wrapped renderer, then they are passed over to parent renderer.
Parent listeners that are notified of nested rendering events gets information about particular component that has been rendered and parent's configuration/data.
condition - condition that event needs to meetpublic P getParent()
public C getConfig()
public D getData()
public NotifyingWidgetComponentRenderer<P,C,D> getRenderer()
public boolean isFinal()
getParent() will be triggered. Also getParent() may be considered as fully rendered.true if rendering has been finishedCopyright © 2018. All rights reserved.