ilog.views.faces.dhtml.event
Class FacesViewActionListener

java.lang.Object
  extended by ilog.views.util.servlet.event.ServletActionListener
      extended by ilog.views.faces.dhtml.event.FacesViewActionListener
All Implemented Interfaces:
ActionListener, Serializable, EventListener, FacesListener
Direct Known Subclasses:
FacesMenuActionListener, FacesMethodBindingActionListener

public abstract class FacesViewActionListener
extends ServletActionListener
implements ActionListener

This class defines the base JSF listener for event on view components.

Since:
JViews 7.5
See Also:
Serialized Form

Constructor Summary
FacesViewActionListener()
          Creates a new IlvFacesActionListener instance.
FacesViewActionListener(int invocationContext)
          Creates a new IlvFacesActionListener instance.
 
Method Summary
protected  FacesContext getFacesContext()
          Returns the current faces context.
 int getInvocationContext()
          Returns the invocation context of this action.
 void processAction(ActionEvent event)
          Delegates the event to ActionListener.actionPerformed(java.util.EventObject) method.
 void setInvocationContext(int invocationContext)
          Sets the invocation context of this action.
protected  EventObject translateServletAction(EventObject event)
          Translates a image servlet event into a JSF event.
 
Methods inherited from class ilog.views.util.servlet.event.ServletActionListener
getActionName, getAdditionalParameters, isUpdateAll, setActionName, setAdditionalParameters, setUpdateAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ilog.views.util.servlet.event.ActionListener
actionPerformed
 

Constructor Detail

FacesViewActionListener

public FacesViewActionListener()
Creates a new IlvFacesActionListener instance.


FacesViewActionListener

public FacesViewActionListener(int invocationContext)
Creates a new IlvFacesActionListener instance.

Parameters:
invocationContext - The invocation context of this action
See Also:
IlvDHTMLConstants.JSF_CONTEXT, IlvDHTMLConstants.IMAGE_SERVLET_CONTEXT
Method Detail

getInvocationContext

public int getInvocationContext()
Returns the invocation context of this action.

Returns:
The invocation context.
See Also:
IlvDHTMLConstants.JSF_CONTEXT, IlvDHTMLConstants.IMAGE_SERVLET_CONTEXT

setInvocationContext

public void setInvocationContext(int invocationContext)
Sets the invocation context of this action.

Parameters:
invocationContext - The invocation context.
See Also:
IlvDHTMLConstants.JSF_CONTEXT, IlvDHTMLConstants.IMAGE_SERVLET_CONTEXT

processAction

public void processAction(ActionEvent event)
                   throws AbortProcessingException
Delegates the event to ActionListener.actionPerformed(java.util.EventObject) method.

Throws:
AbortProcessingException

getFacesContext

protected FacesContext getFacesContext()
Returns the current faces context.

Returns:
The faces context.

translateServletAction

protected EventObject translateServletAction(EventObject event)

Translates a image servlet event into a JSF event.

In order to be used in a JSF context and in the image servlet context, the event must be translated into an IlvFacesViewActionEvent.

Parameters:
event - The event to translate, if applicable.
Returns:
The translated event if applicable, the event otherwise.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.