ilog.views.faces.dhtml.event
Class FacesMethodBindingActionListener

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

public class FacesMethodBindingActionListener
extends FacesViewActionListener

An action listener that wraps a method binding.

The actionPerformed method will invoke this method binding.

This listener is designed to be registered on a IlvMenuItem.

Since:
JViews 7.5
See Also:
Serialized Form

Constructor Summary
FacesMethodBindingActionListener(int invocationContext, String methodRef)
          Creates a new IlvFacesMethodBindingActionListener instance.
FacesMethodBindingActionListener(String methodRef)
          Creates a new IlvFacesMethodBindingActionListener instance.
 
Method Summary
 void actionPerformed(EventObject event)
          Invokes the method bound to this listener.
 
Methods inherited from class ilog.views.faces.dhtml.event.FacesViewActionListener
getFacesContext, getInvocationContext, processAction, setInvocationContext, translateServletAction
 
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
 

Constructor Detail

FacesMethodBindingActionListener

public FacesMethodBindingActionListener(String methodRef)
Creates a new IlvFacesMethodBindingActionListener instance.

Parameters:
methodRef - The expression binding.

FacesMethodBindingActionListener

public FacesMethodBindingActionListener(int invocationContext,
                                        String methodRef)
Creates a new IlvFacesMethodBindingActionListener instance.

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

actionPerformed

public void actionPerformed(EventObject event)
                     throws Exception
Invokes the method bound to this listener.

Parameters:
event - The event object.
Throws:
Exception


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