ilog.views.util.servlet.event
Class JavaScriptActionListener

java.lang.Object
  extended by ilog.views.util.servlet.event.JavaScriptActionListener
All Implemented Interfaces:
ActionListener, Serializable

public class JavaScriptActionListener
extends Object
implements ActionListener

The JavaScript action listener is a special listener that will be executed on the client only.

The actionPerformed method will never be called.

To define the JavaScript code that will executed on the client, use the setJsAction method.

This listener is designed to be registered on an IlvMenuItem.

Since:
JViews 7.5
See Also:
Serialized Form

Constructor Summary
JavaScriptActionListener()
          Creates a JavaScriptActionListener.
JavaScriptActionListener(String jsAction)
          Creates a JavaScriptActionListener with the Javascript action code.
 
Method Summary
 void actionPerformed(EventObject event)
          This methods does nothing as the action is executed on the client side.
 String getJsAction()
          Returns the JavaScript code that will be executed if this listener is triggered.
 void setJsAction(String jsAction)
          Sets the JavaScript code that will be executed if this listener is triggered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaScriptActionListener

public JavaScriptActionListener()
Creates a JavaScriptActionListener.


JavaScriptActionListener

public JavaScriptActionListener(String jsAction)
Creates a JavaScriptActionListener with the Javascript action code.

Parameters:
jsAction - The JavaScript action code.
Method Detail

actionPerformed

public void actionPerformed(EventObject event)
This methods does nothing as the action is executed on the client side.

Specified by:
actionPerformed in interface ActionListener
Parameters:
event - The action event.

getJsAction

public String getJsAction()
Returns the JavaScript code that will be executed if this listener is triggered.

Returns:
The JavaScript action code.

setJsAction

public void setJsAction(String jsAction)
Sets the JavaScript code that will be executed if this listener is triggered.

Parameters:
jsAction - The JavaScript action code.


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