1   /*
2    * TestAction4.java
3    * Created on 28 Август 2006 г., 0:08
4    */
5   
6   package org.weda.action;
7   
8   import org.weda.action.Parameter.Direction;
9   import org.weda.action.impl.AbstractAction;
10  import org.weda.action.impl.ActionStateImpl;
11  
12  /**
13   *
14   * @author Mikhail Titov
15   */
16  public class TestAction4 extends AbstractAction {
17      
18      private int parameterValue;
19      
20      
21      public ActionState getActionState(ActionContainer targetObject) 
22          throws Exception 
23      {
24          return new ActionStateImpl(true, true);
25      }
26  
27      public Object execute(ActionContainer targetObject) throws Exception {
28          return parameterValue;
29      }
30  
31      @Parameter(direction=Direction.WRITE)
32      public int getParameterValue() {
33          return parameterValue;
34      }
35  
36      public void setParameterValue(int parameterValue) {
37          this.parameterValue = parameterValue;
38      }
39      
40  }