org.zkoss.zkplus.acegi
Class ShowWindowEventListener

java.lang.Object
  extended by org.zkoss.zkplus.acegi.ShowWindowEventListener
All Implemented Interfaces:
EventListener

public class ShowWindowEventListener
extends java.lang.Object
implements EventListener

The default listener to show a modal window for login and other things.

The event data is the url page and it expects:

This implementation would automatically remove the added eventlistener from the target component.

Author:
Henri

Constructor Summary
ShowWindowEventListener()
           
 
Method Summary
 void onEvent(Event event)
          Notifies this listener that an event occurs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShowWindowEventListener

public ShowWindowEventListener()
Method Detail

onEvent

public void onEvent(Event event)
Description copied from interface: EventListener
Notifies this listener that an event occurs. To get the event, you have to register it first by use of Component.addEventListener(java.lang.String, org.zkoss.zk.ui.event.EventListener) or Page.addEventListener(java.lang.String, org.zkoss.zk.ui.event.EventListener).

If you want to forward the event to other component, use Events.sendEvent(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.event.Event).

Specified by:
onEvent in interface EventListener


Copyright © 2005-2009 Potix Corporation. All Rights Reserved. SourceForge.net Logo