1 /*****************************************************************************
5 * Creation date 28.10.2012
6 * @author Author: Maria KRUCHININA
8 *****************************************************************************/
10 package org.splat.simer;
13 * Settings for tool bar.
14 * @author Maria KRUCHININA
17 public class ToolBarSettings {
19 //=== MENUS==========================================
22 * Property, is this tool the "None" one.
24 private Boolean _isToolNone;
27 * Property, is this tool the "Standard" one.
29 private Boolean _isToolStandard;
32 * Property, is this tool the "Study" one.
34 private Boolean _isToolStudy;
37 * Property, is this tool the "Back" one.
39 private Boolean _isToolBack;
41 //=== OTHER OPERATIONS ============================
44 * Can the given User edit the given Study/Knowledge.
46 private Boolean _canUserEdit;
49 * It's for (popup.isEnabled("script") operation on the toolbar.jsp.
51 private Boolean _isEnabledScript;
54 * Initialize the tool bar properties.
55 * @param toolProperty - parameter of tool bar.
57 public void intializeMenuBar (final String toolProperty) {
60 setIsToolStandard(false);
61 setIsToolStudy(false);
64 if ("none".equals(toolProperty)) {
66 } else if ("standard".equals(toolProperty)) {
67 setIsToolStandard(true);
68 } else if ("study".equals(toolProperty)) {
70 } else if ("back".equals(toolProperty)) {
75 //====== GETTERS AND SETERS ==============
79 * @return the isToolNone
81 public Boolean getIsToolNone() {
87 * @param isToolNone the isToolNone to set
89 public void setIsToolNone(final Boolean isToolNone) {
90 _isToolNone = isToolNone;
94 * Get the isToolStandard.
95 * @return the isToolStandard
97 public Boolean getIsToolStandard() {
98 return _isToolStandard;
102 * Set the isToolStandard.
103 * @param isToolStandard the isToolStandard to set
105 public void setIsToolStandard(final Boolean isToolStandard) {
106 _isToolStandard = isToolStandard;
110 * Get the isToolStudy.
111 * @return the isToolStudy
113 public Boolean getIsToolStudy() {
118 * Set the isToolStudy.
119 * @param isToolStudy the isToolStudy to set
121 public void setIsToolStudy(final Boolean isToolStudy) {
122 _isToolStudy = isToolStudy;
126 * Get the isToolBack.
127 * @return the isToolBack
129 public Boolean getIsToolBack() {
134 * Set the isToolBack.
135 * @param isToolBack the isToolBack to set
137 public void setIsToolBack(final Boolean isToolBack) {
138 _isToolBack = isToolBack;
142 * Get the canUserEdit.
143 * @return the canUserEdit
145 public Boolean getCanUserEdit() {
150 * Set the canUserEdit.
151 * @param canUserEdit the canUserEdit to set
153 public void setCanUserEdit(final Boolean canUserEdit) {
154 _canUserEdit = canUserEdit;
158 * Get the isEnabledScript.
159 * @return the isEnabledScript
161 public Boolean getIsEnabledScript() {
162 return _isEnabledScript;
166 * Set the isEnabledScript.
167 * @param isEnabledScript the isEnabledScript to set
169 public void setIsEnabledScript(final Boolean isEnabledScript) {
170 _isEnabledScript = isEnabledScript;