01: package test.check.command;
02:
03: import java.awt.Component;
04:
05: /**
06: * A configure command that enables the specified component.
07: *
08: * @author Kirill Grouchnikov
09: */
10: public class EnableCommand implements ConfigurationCommand<Component> {
11: /*
12: * (non-Javadoc)
13: *
14: * @see test.check.ConfigurationCommand#invoke(java.lang.Object)
15: */
16: public void configure(Component comp) {
17: comp.setEnabled(true);
18: }
19: }
|