Salome HOME
NewStudyAction is improved. Specific business method for creation of a new study...
[tools/siman.git] / Workspace / Siman / src / org / splat / wapp / Menu.java
index 7c36f35e487bf769459fc34a7116ec35603af35b..d8b25ba225468a6be19e01c671f630e0bc49cbd1 100644 (file)
@@ -1,4 +1,9 @@
 package org.splat.wapp;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Vector;
+
 /**
  * Base abstract class defining the minimal services for implementing menus.<br/>
  * A menu is an ordered list of named menu-items. Each menu-item is made of:
@@ -21,12 +26,6 @@ package org.splat.wapp;
  * @see ContextualMenu
  * @author Daniel Brunier-Coulin
  */
-
-import java.util.HashMap;
-import java.util.List;
-import java.util.Vector;
-
-
 public abstract class Menu {
 
     private   String                  myname;
@@ -57,6 +56,14 @@ public abstract class Menu {
       disabled = new HashMap<String,String>();
     }
 
+    /**
+     * Initialize the menu.
+     */
+    protected void init() {
+       menu.clear();
+       indices.clear();
+       disabled.clear();
+    }
 //  ==============================================================================================================================
 //  Member functions
 //  ==============================================================================================================================