org.apache.shale.clay.component.chain
Class CreateActionListenerCommand
java.lang.Object
org.apache.shale.clay.component.chain.AbstractCommand
org.apache.shale.clay.component.chain.CreateActionListenerCommand
- All Implemented Interfaces:
- Command
public class CreateActionListenerCommand
- extends AbstractCommand
This Command
will create a ActonListener
and assign it to the
parent
. The construction of the ActionListener
is based on the current displayElement
in the
ClayContext
Method Summary |
boolean |
execute(Context context)
Uses the ClayContext to build a ActionListener and
assign it to the context parent using the context
displayElement that is derived from type
ComponentBean . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateActionListenerCommand
public CreateActionListenerCommand()
execute
public boolean execute(Context context)
throws Exception
Uses the ClayContext
to build a ActionListener
and
assign it to the context parent
using the context
displayElement
that is derived from type
ComponentBean
.
- Specified by:
execute
in interface Command
- Specified by:
execute
in class AbstractCommand
- Parameters:
context
- common chains
- Returns:
true
if the chain is complete
- Throws:
Exception
- propagated up to the top of the chain
Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.