equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2000, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 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 |
37 * @author David Karlton |
37 * @author David Karlton |
38 */ |
38 */ |
39 |
39 |
40 public abstract class PopupMenuUI extends ComponentUI { |
40 public abstract class PopupMenuUI extends ComponentUI { |
41 /** |
41 /** |
|
42 * Returns whether or not the given {@code MouseEvent} is the popup menu |
|
43 * trigger event for the platform |
|
44 * |
|
45 * @param e a {@code MouseEvent} |
|
46 * @return true if the {@code MouseEvent e} is the popup menu trigger |
42 * @since 1.3 |
47 * @since 1.3 |
43 */ |
48 */ |
44 public boolean isPopupTrigger(MouseEvent e) { |
49 public boolean isPopupTrigger(MouseEvent e) { |
45 return e.isPopupTrigger(); |
50 return e.isPopupTrigger(); |
46 } |
51 } |