View Javadoc

1   /*
2   Copyright 2010 James Pether Sörling Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 
3   	$Id
4   */
5   
6   package com.hack23.cia.web.action.application;
7   
8   import thinwire.ui.Frame;
9   
10  import com.hack23.cia.web.action.common.AbstractAction;
11  import com.hack23.cia.web.action.common.ActionCategory;
12  
13  /***
14   * The Class ApplicationAction.
15   */
16  public class ApplicationAction extends AbstractAction {
17  
18      /*** The Constant serialVersionUID. */
19      private static final long serialVersionUID = 1L;
20  
21      /*** The args. */
22      private final String[] args;
23  
24      /*** The frame. */
25      private transient Frame frame;
26  
27      /***
28       * Instantiates a new application action.
29       *
30       * @param frame the frame
31       * @param args the args
32       */
33      public ApplicationAction(final Frame frame, final String[] args) {
34          super(ActionCategory.Application);
35          this.frame = frame;
36          this.args = args;
37      }
38  
39      /***
40       * Gets the args.
41       *
42       * @return the args
43       */
44      public final String[] getArgs() {
45          return args;
46      }
47  
48      /***
49       * Gets the frame.
50       *
51       * @return the frame
52       */
53      public final Frame getFrame() {
54          return frame;
55      }
56  
57  }