Salome HOME
<jsp:param ... > parameters are removed from the title bar
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / EditKnowledgeElementAction.java
index da4e7072fa9358857cc0f5c1d9df46acffd0d6ec..177f5b41defe59accd85f28e8ca37a19a532e819 100644 (file)
@@ -48,6 +48,19 @@ public class EditKnowledgeElementAction extends DisplayStudyStepAction {
         * Value of the menu property. It can be: none, create, open, study, knowledge, sysadmin, help.
         */
        private String _menuProperty;
+       
+       /**
+        * Value of the title bar property. 
+        * It can be: study, knowledge.
+        */
+       private String _titleProperty;
+       
+       /**
+        * Property that indicates whether the current open study is editable or not.
+        * On the screen it looks like pen on the status icon, pop-up menu also can be called.
+        * It is necessary for correct building the title bar.
+        */
+       private String _editDisabledProperty = "false";
 
        // ==============================================================================================================================
        // Action methods
@@ -62,7 +75,8 @@ public class EditKnowledgeElementAction extends DisplayStudyStepAction {
                mystudy = getOpenStudy();
 
                setMenuProperty("study");
-               initializationScreenContext(_menuProperty);
+               setTitleProperty("study");
+        initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty);
 
                return SUCCESS;
        }
@@ -75,7 +89,8 @@ public class EditKnowledgeElementAction extends DisplayStudyStepAction {
        public String doSetKnowledge() {
 
                setMenuProperty("study");
-               initializationScreenContext(_menuProperty);
+               setTitleProperty("study");
+        initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty);
 
                try {
                        User user = getConnectedUser();
@@ -132,7 +147,8 @@ public class EditKnowledgeElementAction extends DisplayStudyStepAction {
                getMenu("study").selects(mystudy.getSelection()); // Updates the menu icon, in case of last removed document
 
                setMenuProperty("study");
-               initializationScreenContext(_menuProperty);
+               setTitleProperty("study");
+        initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty);
 
                return SUCCESS;
        }
@@ -271,4 +287,38 @@ public class EditKnowledgeElementAction extends DisplayStudyStepAction {
        public void setMenuProperty(String menuProperty) {
                this._menuProperty = menuProperty;
        }
+       
+       /**
+        * Get the _titleProperty.
+        * @return the _titleProperty
+        */
+       public String getTitleProperty() {
+               return _titleProperty;
+       }
+
+       /**
+        * Set the _titleProperty.
+        * @param _titleProperty the titleProperty to set
+        */
+       public void setTitleProperty(String titleProperty) {
+               _titleProperty = titleProperty;
+       }
+
+       /**
+        * Get the editDisabledProperty.
+        * @return the editDisabledProperty
+        */
+       public final String getEditDisabledProperty() {
+               return _editDisabledProperty;
+       }
+
+       /**
+        * Set the editDisabledProperty.
+        * @param editDisabledProperty the editDisabledProperty to set
+        */
+       public final void setEditDisabledProperty(String editDisabledProperty) {
+               _editDisabledProperty = editDisabledProperty;
+       }
+
+       
 }
\ No newline at end of file