]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman/src/org/splat/simer/ToolBarSettings.java
Salome HOME
Tool bar is improved.
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / ToolBarSettings.java
1 /*****************************************************************************
2  * Company         EURIWARE
3  * Application     SIMAN
4  * File            $Id$ 
5  * Creation date   28.10.2012
6  * @author         Author: Maria KRUCHININA
7  * @version        Revision: 
8  *****************************************************************************/
9
10 package org.splat.simer; 
11
12 /**
13  * @author Maria KRUCHININA
14  *
15  */
16 public class ToolBarSettings {
17         
18         //=== MENUS==========================================
19
20         /**
21          * Property, is this tool the "None" one.
22          */
23         private  Boolean isToolNone;
24         
25         /**
26          * Property, is this tool the "Standard" one.
27          */
28         private  Boolean isToolStandard;
29         
30         /**
31          * Property, is this tool the "Study" one.
32          */
33         private  Boolean isToolStudy;
34         
35         /**
36          * Property, is this tool the "Back" one.
37          */
38         private  Boolean isToolBack;
39         
40         //=== OTHER OPERATIONS ============================
41         
42         /**
43          * Can the given User edit the given Study/Knowledge. 
44          */
45         private  Boolean canUserEdit;
46         
47         /**
48          * It's for (popup.isEnabled("script") operation on the toolbar.jsp. 
49          */
50         private  Boolean isEnabledScript;
51
52         /**
53      * Initialize the tool bar properties.
54      * @param toolProperty - parameter of tool bar.
55      */
56     public void intializeMenuBar (final String toolProperty) {
57         
58         setIsToolNone(false);
59         setIsToolStandard(false);
60         setIsToolStudy(false);
61         setIsToolBack(false);
62         
63         if ("none".equals(toolProperty)) {
64                 setIsToolNone(true);
65         } else if ("standard".equals(toolProperty)) {
66                 setIsToolStandard(true);
67         } else if ("study".equals(toolProperty)) {
68                 setIsToolStudy(true);
69         } else if ("back".equals(toolProperty)) {
70                 setIsToolBack(true);
71         } 
72     }
73         
74         //====== GETTERS AND SETERS ==============
75         
76         /**
77          * Get the isToolNone.
78          * @return the isToolNone
79          */
80         public Boolean getIsToolNone() {
81                 return isToolNone;
82         }
83
84         /**
85          * Set the isToolNone.
86          * @param isToolNone the isToolNone to set
87          */
88         public void setIsToolNone(final Boolean isToolNone) {
89                 this.isToolNone = isToolNone;
90         }
91
92         /**
93          * Get the isToolStandard.
94          * @return the isToolStandard
95          */
96         public Boolean getIsToolStandard() {
97                 return isToolStandard;
98         }
99
100         /**
101          * Set the isToolStandard.
102          * @param isToolStandard the isToolStandard to set
103          */
104         public void setIsToolStandard(final Boolean isToolStandard) {
105                 this.isToolStandard = isToolStandard;
106         }
107
108         /**
109          * Get the isToolStudy.
110          * @return the isToolStudy
111          */
112         public Boolean getIsToolStudy() {
113                 return isToolStudy;
114         }
115
116         /**
117          * Set the isToolStudy.
118          * @param isToolStudy the isToolStudy to set
119          */
120         public void setIsToolStudy(final Boolean isToolStudy) {
121                 this.isToolStudy = isToolStudy;
122         }
123
124         /**
125          * Get the isToolBack.
126          * @return the isToolBack
127          */
128         public Boolean getIsToolBack() {
129                 return isToolBack;
130         }
131
132         /**
133          * Set the isToolBack.
134          * @param isToolBack the isToolBack to set
135          */
136         public void setIsToolBack(final Boolean isToolBack) {
137                 this.isToolBack = isToolBack;
138         }
139
140         /**
141          * Get the canUserEdit.
142          * @return the canUserEdit
143          */
144         public Boolean getCanUserEdit() {
145                 return canUserEdit;
146         }
147
148         /**
149          * Set the canUserEdit.
150          * @param canUserEdit the canUserEdit to set
151          */
152         public void setCanUserEdit(final Boolean canUserEdit) {
153                 this.canUserEdit = canUserEdit;
154         }
155
156         /**
157          * Get the isEnabledScript.
158          * @return the isEnabledScript
159          */
160         public Boolean getIsEnabledScript() {
161                 return isEnabledScript;
162         }
163
164         /**
165          * Set the isEnabledScript.
166          * @param isEnabledScript the isEnabledScript to set
167          */
168         public void setIsEnabledScript(final Boolean isEnabledScript) {
169                 this.isEnabledScript = isEnabledScript;
170         }
171 }