Java Code Examples for javax.swing.plaf.PopupMenuUI

The following examples show how to use javax.swing.plaf.PopupMenuUI. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: jdk1.8-source-analysis   Source File: MultiPopupMenuUI.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Invokes the <code>getPopup</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.4
 */
public Popup getPopup(JPopupMenu a, int b, int c) {
    Popup returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
    }
    return returnValue;
}
 
Example 2
Source Project: jdk8u-jdk   Source File: MultiPopupMenuUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.3
 */
public boolean isPopupTrigger(MouseEvent a) {
    boolean returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
    }
    return returnValue;
}
 
Example 3
/**
 * Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.3
 */
public boolean isPopupTrigger(MouseEvent a) {
    boolean returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
    }
    return returnValue;
}
 
Example 4
/**
 * Invokes the <code>getPopup</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.4
 */
public Popup getPopup(JPopupMenu a, int b, int c) {
    Popup returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
    }
    return returnValue;
}
 
Example 5
/**
 * Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.3
 */
public boolean isPopupTrigger(MouseEvent a) {
    boolean returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
    }
    return returnValue;
}
 
Example 6
/**
 * Invokes the <code>getPopup</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.4
 */
public Popup getPopup(JPopupMenu a, int b, int c) {
    Popup returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
    }
    return returnValue;
}
 
Example 7
Source Project: jdk8u60   Source File: MultiPopupMenuUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.3
 */
public boolean isPopupTrigger(MouseEvent a) {
    boolean returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
    }
    return returnValue;
}
 
Example 8
Source Project: jdk8u60   Source File: MultiPopupMenuUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>getPopup</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.4
 */
public Popup getPopup(JPopupMenu a, int b, int c) {
    Popup returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
    }
    return returnValue;
}
 
Example 9
Source Project: JDKSourceCode1.8   Source File: MultiPopupMenuUI.java    License: MIT License 5 votes vote down vote up
/**
 * Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.3
 */
public boolean isPopupTrigger(MouseEvent a) {
    boolean returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
    }
    return returnValue;
}
 
Example 10
Source Project: JDKSourceCode1.8   Source File: MultiPopupMenuUI.java    License: MIT License 5 votes vote down vote up
/**
 * Invokes the <code>getPopup</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.4
 */
public Popup getPopup(JPopupMenu a, int b, int c) {
    Popup returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
    }
    return returnValue;
}
 
Example 11
/**
 * Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.3
 */
public boolean isPopupTrigger(MouseEvent a) {
    boolean returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
    }
    return returnValue;
}
 
Example 12
/**
 * Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.3
 */
public boolean isPopupTrigger(MouseEvent a) {
    boolean returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
    }
    return returnValue;
}
 
Example 13
/**
 * Invokes the <code>getPopup</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.4
 */
public Popup getPopup(JPopupMenu a, int b, int c) {
    Popup returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
    }
    return returnValue;
}
 
Example 14
Source Project: Bytecoder   Source File: MultiPopupMenuUI.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.3
 */
public boolean isPopupTrigger(MouseEvent a) {
    boolean returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
    }
    return returnValue;
}
 
Example 15
Source Project: Bytecoder   Source File: MultiPopupMenuUI.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Invokes the <code>getPopup</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.4
 */
public Popup getPopup(JPopupMenu a, int b, int c) {
    Popup returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
    }
    return returnValue;
}
 
Example 16
/**
 * Invokes the <code>getPopup</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.4
 */
public Popup getPopup(JPopupMenu a, int b, int c) {
    Popup returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
    }
    return returnValue;
}
 
Example 17
/**
 * Invokes the <code>getPopup</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.4
 */
public Popup getPopup(JPopupMenu a, int b, int c) {
    Popup returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
    }
    return returnValue;
}
 
Example 18
/**
 * Maps {@code JPopupMenu.getUI()} through queue
 */
public PopupMenuUI getUI() {
    return (runMapping(new MapAction<PopupMenuUI>("getUI") {
        @Override
        public PopupMenuUI map() {
            return ((JPopupMenu) getSource()).getUI();
        }
    }));
}
 
Example 19
/**
 * Maps {@code JPopupMenu.setUI(PopupMenuUI)} through queue
 */
public void setUI(final PopupMenuUI popupMenuUI) {
    runMapping(new MapVoidAction("setUI") {
        @Override
        public void map() {
            ((JPopupMenu) getSource()).setUI(popupMenuUI);
        }
    });
}
 
Example 20
/**
 * Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.3
 */
public boolean isPopupTrigger(MouseEvent a) {
    boolean returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
    }
    return returnValue;
}
 
Example 21
Source Project: jdk8u-jdk   Source File: MultiPopupMenuUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>getPopup</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.4
 */
public Popup getPopup(JPopupMenu a, int b, int c) {
    Popup returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
    }
    return returnValue;
}
 
Example 22
Source Project: Java8CN   Source File: MultiPopupMenuUI.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.3
 */
public boolean isPopupTrigger(MouseEvent a) {
    boolean returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
    }
    return returnValue;
}
 
Example 23
Source Project: Java8CN   Source File: MultiPopupMenuUI.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Invokes the <code>getPopup</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.4
 */
public Popup getPopup(JPopupMenu a, int b, int c) {
    Popup returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
    }
    return returnValue;
}
 
Example 24
Source Project: hottub   Source File: MultiPopupMenuUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.3
 */
public boolean isPopupTrigger(MouseEvent a) {
    boolean returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
    }
    return returnValue;
}
 
Example 25
Source Project: hottub   Source File: MultiPopupMenuUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>getPopup</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.4
 */
public Popup getPopup(JPopupMenu a, int b, int c) {
    Popup returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
    }
    return returnValue;
}
 
Example 26
/**
 * Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.3
 */
public boolean isPopupTrigger(MouseEvent a) {
    boolean returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
    }
    return returnValue;
}
 
Example 27
Source Project: jdk8u-jdk   Source File: MultiPopupMenuUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>getPopup</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.4
 */
public Popup getPopup(JPopupMenu a, int b, int c) {
    Popup returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
    }
    return returnValue;
}
 
Example 28
Source Project: openjdk-8   Source File: MultiPopupMenuUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.3
 */
public boolean isPopupTrigger(MouseEvent a) {
    boolean returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
    }
    return returnValue;
}
 
Example 29
Source Project: openjdk-8   Source File: MultiPopupMenuUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>getPopup</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.4
 */
public Popup getPopup(JPopupMenu a, int b, int c) {
    Popup returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
    }
    return returnValue;
}
 
Example 30
Source Project: jdk8u_jdk   Source File: MultiPopupMenuUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
 *
 * @return the value obtained from the first UI, which is
 * the UI obtained from the default <code>LookAndFeel</code>
 * @since 1.3
 */
public boolean isPopupTrigger(MouseEvent a) {
    boolean returnValue =
        ((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
    for (int i = 1; i < uis.size(); i++) {
        ((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
    }
    return returnValue;
}