org.exoplatform.webui.ext
Class UIExtensionEventListener<T extends org.exoplatform.webui.core.UIComponent>

java.lang.Object
  extended by org.exoplatform.webui.event.EventListener<T>
      extended by org.exoplatform.webui.ext.UIExtensionEventListener<T>

public abstract class UIExtensionEventListener<T extends org.exoplatform.webui.core.UIComponent>
extends org.exoplatform.webui.event.EventListener<T>

The event listener dedicated to UIExtension Created by The eXo Platform SAS Author : eXoPlatform nicolas.filotto@exoplatform.com May 05, 2009


Field Summary
 
Fields inherited from class org.exoplatform.webui.event.EventListener
RESULT_OK
 
Constructor Summary
UIExtensionEventListener()
           
 
Method Summary
protected abstract  Map<String,Object> createContext(org.exoplatform.webui.event.Event<T> event)
          Create the context from the given event
 void execute(org.exoplatform.webui.event.Event<T> event)
           
protected abstract  String getExtensionType()
          Gives the type of the extension
protected abstract  void processEvent(org.exoplatform.webui.event.Event<T> event)
          All the filters passed so in this method, we can process the event without checking anything
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIExtensionEventListener

public UIExtensionEventListener()
Method Detail

execute

public void execute(org.exoplatform.webui.event.Event<T> event)
             throws Exception
Specified by:
execute in class org.exoplatform.webui.event.EventListener<T extends org.exoplatform.webui.core.UIComponent>
Throws:
Exception

processEvent

protected abstract void processEvent(org.exoplatform.webui.event.Event<T> event)
                              throws Exception
All the filters passed so in this method, we can process the event without checking anything

Parameters:
event - the event to process
Throws:
Exception - if an exception occurs

createContext

protected abstract Map<String,Object> createContext(org.exoplatform.webui.event.Event<T> event)
                                             throws Exception
Create the context from the given event

Parameters:
event - the event to convert into a context
Returns:
the context
Throws:
Exception - if an exception occurs

getExtensionType

protected abstract String getExtensionType()
Gives the type of the extension

Returns:
the type of the extension


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.