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 this.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 this.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 this.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 this.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 this.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 this.isEnabledScript = isEnabledScript;