2362N/A * Copyright (c) 1997, 2003, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * Any component that can be placed into a menu should implement this interface. 0N/A * This interface is used by <code>MenuSelectionManager</code> 0N/A * to handle selection and navigation in menu hierarchies. 0N/A * @author Arnaud Weber 0N/A * Processes a mouse event. <code>event</code> is a <code>MouseEvent</code> 0N/A * with source being the receiving element's component. 0N/A * <code>path</code> is the path of the receiving element in the menu 0N/A * hierarchy including the receiving element itself. 0N/A * <code>manager</code> is the <code>MenuSelectionManager</code> 0N/A * for the menu hierarchy. 0N/A * This method should process the <code>MouseEvent</code> and change 0N/A * the menu selection if necessary 0N/A * by using <code>MenuSelectionManager</code>'s API 0N/A * Note: you do not have to forward the event to sub-components. 0N/A * This is done automatically by the <code>MenuSelectionManager</code>. 0N/A * Process a key event. 0N/A * Call by the <code>MenuSelectionManager</code> when the 0N/A * <code>MenuElement</code> is added or remove from 0N/A * the menu selection. 0N/A * This method should return an array containing the sub-elements for the receiving menu element 0N/A * @return an array of MenuElements 0N/A * This method should return the java.awt.Component used to paint the receiving element. 0N/A * The returned component will be used to convert events and detect if an event is inside 0N/A * a MenuElement's component. 0N/A * @return the Component value