src/solaris/classes/sun/awt/X11/XMenuPeer.java

Print this page
rev 9830 : 8039642: Fix raw and unchecked warnings in sun.awt.*
Reviewed-by: darcy, prr


 126             }
 127         }
 128     }
 129 
 130     public void delItem(int index) {
 131         XMenuWindow menuWindow = getMenuWindow();
 132         if (menuWindow != null) {
 133             menuWindow.delItem(index);
 134         } else {
 135             if (log.isLoggable(PlatformLogger.Level.FINE)) {
 136                 log.fine("Attempt to use XMenuWindowPeer without window");
 137             }
 138         }
 139     }
 140 
 141     /************************************************
 142      *
 143      * Access to target's fields
 144      *
 145      ************************************************/
 146     Vector getTargetItems() {
 147         return AWTAccessor.getMenuAccessor().getItems((Menu)getTarget());
 148     }
 149 
 150     /************************************************
 151      *
 152      * Overriden behaviour
 153      *
 154      ************************************************/
 155     boolean isSeparator() {
 156         return false;
 157     }
 158 
 159     //Fix for 6180416: Shortcut keys are displayed against Menus on XToolkit
 160     //Menu should always return null as shortcutText
 161     String getShortcutText() {
 162         return null;
 163     }
 164 
 165     /************************************************
 166      *


 126             }
 127         }
 128     }
 129 
 130     public void delItem(int index) {
 131         XMenuWindow menuWindow = getMenuWindow();
 132         if (menuWindow != null) {
 133             menuWindow.delItem(index);
 134         } else {
 135             if (log.isLoggable(PlatformLogger.Level.FINE)) {
 136                 log.fine("Attempt to use XMenuWindowPeer without window");
 137             }
 138         }
 139     }
 140 
 141     /************************************************
 142      *
 143      * Access to target's fields
 144      *
 145      ************************************************/
 146     Vector<MenuItem> getTargetItems() {
 147         return AWTAccessor.getMenuAccessor().getItems((Menu)getTarget());
 148     }
 149 
 150     /************************************************
 151      *
 152      * Overriden behaviour
 153      *
 154      ************************************************/
 155     boolean isSeparator() {
 156         return false;
 157     }
 158 
 159     //Fix for 6180416: Shortcut keys are displayed against Menus on XToolkit
 160     //Menu should always return null as shortcutText
 161     String getShortcutText() {
 162         return null;
 163     }
 164 
 165     /************************************************
 166      *