< prev index next >

src/java.desktop/share/classes/java/awt/MenuComponent.java

Print this page




 876         }
 877 
 878         /**
 879          * Returns the size of this object in the form of a
 880          * <code>Dimension</code> object. The height field of
 881          * the <code>Dimension</code> object contains this object's
 882          * height, and the width field of the <code>Dimension</code>
 883          * object contains this object's width.
 884          *
 885          * @return a <code>Dimension</code> object that indicates the
 886          *         size of this component; <code>null</code>
 887          *         if this object is not on the screen
 888          */
 889         public Dimension getSize() {
 890             return null; // Not supported for MenuComponents
 891         }
 892 
 893         /**
 894          * Resizes this object.
 895          *
 896          * @param d - the <code>Dimension</code> specifying the
 897          *    new size of the object
 898          */
 899         public void setSize(Dimension d) {
 900             // Not supported for MenuComponents
 901         }
 902 
 903         /**
 904          * Returns the <code>Accessible</code> child, if one exists,
 905          * contained at the local coordinate <code>Point</code>.
 906          * If there is no <code>Accessible</code> child, <code>null</code>
 907          * is returned.
 908          *
 909          * @param p the point defining the top-left corner of the
 910          *    <code>Accessible</code>, given in the coordinate space
 911          *    of the object's parent
 912          * @return the <code>Accessible</code>, if it exists,
 913          *    at the specified location; else <code>null</code>
 914          */
 915         public Accessible getAccessibleAt(Point p) {
 916             return null; // MenuComponents don't have children




 876         }
 877 
 878         /**
 879          * Returns the size of this object in the form of a
 880          * <code>Dimension</code> object. The height field of
 881          * the <code>Dimension</code> object contains this object's
 882          * height, and the width field of the <code>Dimension</code>
 883          * object contains this object's width.
 884          *
 885          * @return a <code>Dimension</code> object that indicates the
 886          *         size of this component; <code>null</code>
 887          *         if this object is not on the screen
 888          */
 889         public Dimension getSize() {
 890             return null; // Not supported for MenuComponents
 891         }
 892 
 893         /**
 894          * Resizes this object.
 895          *
 896          * @param d  the <code>Dimension</code> specifying the
 897          *    new size of the object
 898          */
 899         public void setSize(Dimension d) {
 900             // Not supported for MenuComponents
 901         }
 902 
 903         /**
 904          * Returns the <code>Accessible</code> child, if one exists,
 905          * contained at the local coordinate <code>Point</code>.
 906          * If there is no <code>Accessible</code> child, <code>null</code>
 907          * is returned.
 908          *
 909          * @param p the point defining the top-left corner of the
 910          *    <code>Accessible</code>, given in the coordinate space
 911          *    of the object's parent
 912          * @return the <code>Accessible</code>, if it exists,
 913          *    at the specified location; else <code>null</code>
 914          */
 915         public Accessible getAccessibleAt(Point p) {
 916             return null; // MenuComponents don't have children


< prev index next >