* @param event
* event
*/
private void depth(final ComponentEvent<?> event)
{
IEventSink sink = event.getSink();
boolean targetsApplication = sink instanceof Application;
boolean targetsSession = targetsApplication || sink instanceof Session;
boolean targetsCycle = targetsSession || sink instanceof RequestCycle;
boolean targetsComponnet = sink instanceof Component;
if (!targetsComponnet && !targetsCycle)
{
sink.onEvent(event);
return;
}
Component cursor = (targetsCycle) ? source.getPage() : (Component)sink;