org.apache.tapestry5.corelib.internal
Class WrappedComponentAction

java.lang.Object
  extended by org.apache.tapestry5.corelib.internal.WrappedComponentAction
All Implemented Interfaces:
Serializable

public class WrappedComponentAction
extends Object
implements Serializable

A wrapper around a component id and a ComponentAction.

See Also:
FormFragment, Serialized Form

Constructor Summary
WrappedComponentAction(Component component, ComponentAction action)
           
WrappedComponentAction(String componentId, ComponentAction action)
           
 
Method Summary
 void execute(ComponentSource source)
          Retrieves the component from the source and executes the action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrappedComponentAction

public WrappedComponentAction(Component component,
                              ComponentAction action)

WrappedComponentAction

public WrappedComponentAction(String componentId,
                              ComponentAction action)
Parameters:
componentId - the component's complete id, suitable for use with ComponentSource.getComponent(String).
action - the action associated with the component
Method Detail

execute

public void execute(ComponentSource source)
Retrieves the component from the source and executes the action.

Parameters:
source - used to re-acquire the component


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.