]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman/src/org/splat/simer/VersionDocumentAction.java
Salome HOME
<jsp:param ... > parameters are removed from the title bar
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / VersionDocumentAction.java
index cd89a60733035822806e61d1a215001600ec8fd4..529d48aa84a351f007dd0819f2bff18ac769d3ff 100644 (file)
@@ -51,6 +51,19 @@ public class VersionDocumentAction extends UploadBaseNextAction {
         * 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";
 
        /**
         * Serial version ID.
@@ -65,7 +78,9 @@ public class VersionDocumentAction extends UploadBaseNextAction {
                // -----------------------------
                
                setMenuProperty("study");
-           initializationScreenContext(_menuProperty);
+               setTitleProperty("study");
+               setEditDisabledProperty("true");
+        initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty);
            
                Session connex = Database.getCurSession();
                Transaction transax = connex.beginTransaction();
@@ -144,7 +159,9 @@ public class VersionDocumentAction extends UploadBaseNextAction {
        public String doVersion() {
                // -------------------------
                setMenuProperty("study");
-           initializationScreenContext(_menuProperty);
+               setTitleProperty("study");
+               setEditDisabledProperty("true");
+        initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty);
            
                if (action == ToDo.cancel)
                        return "cancel";
@@ -398,4 +415,36 @@ public class VersionDocumentAction extends UploadBaseNextAction {
        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 String getEditDisabledProperty() {
+               return _editDisabledProperty;
+       }
+
+       /**
+        * Set the _editDisabledProperty.
+        * @param _editDisabledProperty the _editDisabledProperty to set
+        */
+       public void setEditDisabledProperty(String _editDisabledProperty) {
+               this._editDisabledProperty = _editDisabledProperty;
+       }
 }
\ No newline at end of file