1 /*****************************************************************************
5 * Creation date 28.10.2012
6 * @author Author: Maria KRUCHININA
8 *****************************************************************************/
10 package org.splat.simer;
13 * @author Maria KRUCHININA
16 public class ToolBarSettings {
18 //=== MENUS==========================================
21 * Property, is this tool the "None" one.
23 private Boolean isToolNone;
26 * Property, is this tool the "Standard" one.
28 private Boolean isToolStandard;
31 * Property, is this tool the "Study" one.
33 private Boolean isToolStudy;
36 * Property, is this tool the "Back" one.
38 private Boolean isToolBack;
40 //=== OTHER OPERATIONS ============================
43 * Can the given User edit the given Study/Knowledge.
45 private Boolean canUserEdit;
48 * It's for (popup.isEnabled("script") operation on the toolbar.jsp.
50 private Boolean isEnabledScript;
53 * Initialize the tool bar properties.
54 * @param toolProperty - parameter of tool bar.
56 public void intializeMenuBar (final String toolProperty) {
59 setIsToolStandard(false);
60 setIsToolStudy(false);
63 if ("none".equals(toolProperty)) {
65 } else if ("standard".equals(toolProperty)) {
66 setIsToolStandard(true);
67 } else if ("study".equals(toolProperty)) {
69 } else if ("back".equals(toolProperty)) {
74 //====== GETTERS AND SETERS ==============
78 * @return the isToolNone
80 public Boolean getIsToolNone() {
86 * @param isToolNone the isToolNone to set
88 public void setIsToolNone(final Boolean isToolNone) {
89 this.isToolNone = isToolNone;
93 * Get the isToolStandard.
94 * @return the isToolStandard
96 public Boolean getIsToolStandard() {
97 return isToolStandard;
101 * Set the isToolStandard.
102 * @param isToolStandard the isToolStandard to set
104 public void setIsToolStandard(final Boolean isToolStandard) {
105 this.isToolStandard = isToolStandard;
109 * Get the isToolStudy.
110 * @return the isToolStudy
112 public Boolean getIsToolStudy() {
117 * Set the isToolStudy.
118 * @param isToolStudy the isToolStudy to set
120 public void setIsToolStudy(final Boolean isToolStudy) {
121 this.isToolStudy = isToolStudy;
125 * Get the isToolBack.
126 * @return the isToolBack
128 public Boolean getIsToolBack() {
133 * Set the isToolBack.
134 * @param isToolBack the isToolBack to set
136 public void setIsToolBack(final Boolean isToolBack) {
137 this.isToolBack = isToolBack;
141 * Get the canUserEdit.
142 * @return the canUserEdit
144 public Boolean getCanUserEdit() {
149 * Set the canUserEdit.
150 * @param canUserEdit the canUserEdit to set
152 public void setCanUserEdit(final Boolean canUserEdit) {
153 this.canUserEdit = canUserEdit;
157 * Get the isEnabledScript.
158 * @return the isEnabledScript
160 public Boolean getIsEnabledScript() {
161 return isEnabledScript;
165 * Set the isEnabledScript.
166 * @param isEnabledScript the isEnabledScript to set
168 public void setIsEnabledScript(final Boolean isEnabledScript) {
169 this.isEnabledScript = isEnabledScript;