test.check.command
Class ChainCommand<T>

java.lang.Object
  extended by test.check.command.ChainCommand<T>
Type Parameters:
T - Component class.
All Implemented Interfaces:
ConfigurationCommand<T>

public class ChainCommand<T>
extends java.lang.Object
implements ConfigurationCommand<T>

Chain command - applies a chain of configure commands on a component.

Author:
Kirill Grouchnikov

Constructor Summary
ChainCommand(ConfigurationCommand<T>... commands)
          Creates the chain command.
 
Method Summary
 void configure(T component)
          Configures the specified control.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainCommand

public ChainCommand(ConfigurationCommand<T>... commands)
Creates the chain command.

Parameters:
commands - Command chain.
Method Detail

configure

public void configure(T component)
Description copied from interface: ConfigurationCommand
Configures the specified control.

Specified by:
configure in interface ConfigurationCommand<T>
Parameters:
component - Control to configure.