org.apache.shale.clay.component.chain
Class CreateActionListenerCommand

java.lang.Object
  extended by org.apache.shale.clay.component.chain.AbstractCommand
      extended by 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


Field Summary
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
CreateActionListenerCommand()
           
 
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 org.apache.shale.clay.component.chain.AbstractCommand
getCatalog, getCustomizationCatalog, getMessages, getTagUtils, isValueReference, realizeSymbols, replaceMnemonic, replaceMnemonic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateActionListenerCommand

public CreateActionListenerCommand()
Method Detail

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.