jdk/src/share/classes/java/awt/Menu.java
changeset 25162 c388078278d4
parent 24865 09b1d992ca72
equal deleted inserted replaced
25161:c85a08c0b9d9 25162:c388078278d4
     1 /*
     1 /*
     2  * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1995, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   211         return tearOff;
   211         return tearOff;
   212     }
   212     }
   213 
   213 
   214     /**
   214     /**
   215       * Get the number of items in this menu.
   215       * Get the number of items in this menu.
   216       * @return     the number of items in this menu.
   216       * @return the number of items in this menu
   217       * @since      1.1
   217       * @since      1.1
   218       */
   218       */
   219     public int getItemCount() {
   219     public int getItemCount() {
   220         return countItems();
   220         return countItems();
   221     }
   221     }
   222 
   222 
   223     /**
   223     /**
       
   224      * Returns the number of items in this menu.
       
   225      *
       
   226      * @return the number of items in this menu
   224      * @deprecated As of JDK version 1.1,
   227      * @deprecated As of JDK version 1.1,
   225      * replaced by <code>getItemCount()</code>.
   228      * replaced by <code>getItemCount()</code>.
   226      */
   229      */
   227     @Deprecated
   230     @Deprecated
   228     public int countItems() {
   231     public int countItems() {