jdk/src/java.desktop/share/classes/javax/swing/plaf/PopupMenuUI.java
changeset 26037 508779ce6619
parent 26013 83b99f14245f
parent 25859 3317bb8137f4
equal deleted inserted replaced
25992:e9b05e933ddd 26037:508779ce6619
     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     }