Salome HOME
Modifications to respect PMD rules.
[tools/siman.git] / Workspace / Siman / src / org / splat / wapp / PopupItem.java
index e4312dd8fe1993ea19190abccfaa1822a966814a..369651933d7af076a6f7df8221cbf013264b4227 100644 (file)
@@ -13,8 +13,8 @@ public class PopupItem extends ContextualMenu.ContextualItem {
     }
     public PopupItem (String label) {
 //  -------------------------------
-      mylabel = label;
-      myicon  = "image.hold.gif";              // Default icon
+      _mylabel = label;
+      _myicon  = "image.hold.gif";              // Default icon
     }
 //  Optional attributes
     public PopupItem action (String url) {     // Enables the item
@@ -24,17 +24,17 @@ public class PopupItem extends ContextualMenu.ContextualItem {
     }
     public PopupItem confirmation (String message) {
 //  ----------------------------------------------
-      confirm = message;
+      _confirm = message;
       return this;
     }
     public PopupItem icon (String icon) {
 //  -----------------------------------
-      myicon = icon;
+      _myicon = icon;
       return this;
     }
     public PopupItem rename (String label) {
 //  --------------------------------------
-      mylabel = label;
+      _mylabel = label;
       return this;
     }
        
@@ -44,14 +44,14 @@ public class PopupItem extends ContextualMenu.ContextualItem {
 
        public String getConfirmationMessage () {
 //  ---------------------------------------
-      return confirm;                          // Null if does not need any confirmation
+      return _confirm;                          // Null if does not need any confirmation
     }
        public String getLabel () {
 //  ------------------------
-         return mylabel;                          // Null if this is a separator
+         return _mylabel;                          // Null if this is a separator
        }
     public boolean needConfirmation () {
 //  ----------------------------------
-      return (confirm != null);
+      return (_confirm != null);
     }
 }
\ No newline at end of file