com.gridsystems.config.tools.console
Class ApplyAction

java.lang.Object
  extended by com.gridsystems.config.tools.console.ApplyAction
All Implemented Interfaces:
ConsoleViewAction

public class ApplyAction
extends java.lang.Object
implements ConsoleViewAction

Special ConsoleViewAction that performs an Apply on this configurator model and exits from the view.

Version:
1.0
Author:
Rodrigo Ruiz Aguayo

Constructor Summary
ApplyAction(Configurator configurator)
          Creates a new instance bound to the specified configurator.
 
Method Summary
 boolean execute(ConsoleConfiguratorView view)
          Performs a task related to the specified view.
 java.lang.String getKeyMapping()
          Gets the key mapping of this action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplyAction

public ApplyAction(Configurator configurator)
Creates a new instance bound to the specified configurator.

Parameters:
configurator - The configurator instance to affect
Method Detail

getKeyMapping

public java.lang.String getKeyMapping()
Gets the key mapping of this action.

Specified by:
getKeyMapping in interface ConsoleViewAction
Returns:
The key mapping of this action

execute

public boolean execute(ConsoleConfiguratorView view)
Performs a task related to the specified view.

Specified by:
execute in interface ConsoleViewAction
Parameters:
view - The view invoking the execution
Returns:
false if the view must exit from its execution loop; true otherwise


Copyright © 2007-2008 Grid Systems, S.A.. All Rights Reserved.