|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.binding.AbstractBinding
org.apache.tapestry.binding.ListenerBinding
public class ListenerBinding
A very specialized binding that can be used as an IActionListener
,
executing a script in a scripting language, via Bean
Scripting Framework .
Constructor Summary | |
---|---|
ListenerBinding(java.lang.String description,
ValueConverter valueConverter,
org.apache.hivemind.Location location,
IComponent component,
java.lang.String language,
java.lang.String script,
BSFManagerFactory managerFactory)
|
Method Summary | |
---|---|
void |
actionTriggered(IComponent component,
IRequestCycle cycle)
A ListenerBinding is also a IActionListener . |
java.lang.Object |
getComponent()
Returns the component to which this binding is connected; this is currently only used when building certain exceptions. |
java.lang.Object |
getObject()
Returns this. |
Methods inherited from class org.apache.tapestry.binding.AbstractBinding |
---|
createReadOnlyBindingException, getDescription, getLocation, getObject, getValueConverter, isInvariant, setObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListenerBinding(java.lang.String description, ValueConverter valueConverter, org.apache.hivemind.Location location, IComponent component, java.lang.String language, java.lang.String script, BSFManagerFactory managerFactory)
Method Detail |
---|
public java.lang.Object getObject()
getObject
in interface IBinding
public void actionTriggered(IComponent component, IRequestCycle cycle)
IActionListener
. It registers a
number of beans with the BSF manager and invokes the script.
Registers the following bean:
IComponent
, typically the same as the page
IPage
trigged by the request (obtained by
IRequestCycle.getPage()
IRequestCycle
, from which can be found the IEngine
, etc.
actionTriggered
in interface IActionListener
component
- The component which was "triggered".cycle
- The request cycle in which the component was triggered.public java.lang.Object getComponent()
AbstractBinding
getComponent
in class AbstractBinding
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |