org.jclientpages.page
Class BshClientPage

java.lang.Object
  extended by org.jclientpages.page.AbstractClientPage
      extended by org.jclientpages.page.BshClientPage
All Implemented Interfaces:
ClientPage

public class BshClientPage
extends AbstractClientPage

Client Page implementation based on BeanShell2

Author:
Luigi Dell'Aquila (luigi.dellaquila--at--gmail.com)

Constructor Summary
BshClientPage()
           
 
Method Summary
 java.lang.Object executeInternal(java.lang.String methodName, java.lang.Object[] args)
          this method is used by the JCP implementation to reflectively invoke a method of the page
 bsh.Interpreter getInterpreter()
           
 java.util.List<MethodDescriptor> getMethods()
          returns a list of descriptors representing all the methods declared in the page (for internal use)
 void onLoad()
          is invoked by the JCP engine when the page is loaded, immediately after the init() method.
 void setInterpreter(bsh.Interpreter interpreter)
           
 
Methods inherited from class org.jclientpages.page.AbstractClientPage
alert, alert, call, confirm, createElement, createTextNode, eval, getElementById, getElementsByExpression, getElementsByName, getElementsByTagName, getWindow, init, setWindow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BshClientPage

public BshClientPage()
Method Detail

executeInternal

public java.lang.Object executeInternal(java.lang.String methodName,
                                        java.lang.Object[] args)
Description copied from interface: ClientPage
this method is used by the JCP implementation to reflectively invoke a method of the page

Parameters:
methodName - the method name
args - the method arguments
Returns:
the result of the method invocation

getMethods

public java.util.List<MethodDescriptor> getMethods()
Description copied from interface: ClientPage
returns a list of descriptors representing all the methods declared in the page (for internal use)

Returns:
a list of descriptors representing all the methods declared in the page

getInterpreter

public bsh.Interpreter getInterpreter()

setInterpreter

public void setInterpreter(bsh.Interpreter interpreter)

onLoad

public void onLoad()
Description copied from interface: ClientPage
is invoked by the JCP engine when the page is loaded, immediately after the init() method.
A JClientPage can override this method in order to execute custom code after page load

Specified by:
onLoad in interface ClientPage
Overrides:
onLoad in class AbstractClientPage