Salome HOME
displayStudy.jsp is removed, markup is fixed. KnowledgeElement deleting is fixed.
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / AbstractDisplayAction.java
1 package org.splat.simer;
2
3
4 public abstract class AbstractDisplayAction extends Action {
5
6         /**
7          * Serial version ID.
8          */
9     private static final long serialVersionUID = 3003902258668626946L;
10
11     /**
12      * Index of the open object.
13      */
14     protected  transient String _myindex   = null;
15     /**
16      * User activity selection.
17      */
18     protected  String           _selection = null;
19     /**
20      * Next action.
21      */
22     protected  transient String _action    = null;
23
24         protected enum Execute { popup, develop, reduce, reduceall }
25
26 //  ==============================================================================================================================
27 //  Getters and setters
28 //  ==============================================================================================================================
29
30     public String getSelection () {
31       return _selection;   // Equals to myobject.getSelection()
32     }
33
34     public void setAction (final String action) {
35       this._action = action;
36     }
37     public void setIndex (final String index) {
38       this._myindex = index;
39     }
40         /**
41          * Get the index.
42          * @return the index
43          */
44         public String getIndex() {
45                 return _myindex;
46         }
47     public void setSelection (final String step) {
48       this._selection = step;
49     }    
50
51 //  ==============================================================================================================================
52 //  Abstract services
53 //  ==============================================================================================================================
54
55     public abstract String getWriteAccess ();
56 }