Java Code Examples for javax.swing.plaf.ListUI

The following examples show how to use javax.swing.plaf.ListUI. 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: MultiListUI.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Invokes the <code>locationToIndex</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>
 */
public int locationToIndex(JList a, Point b) {
    int returnValue =
        ((ListUI) (uis.elementAt(0))).locationToIndex(a,b);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).locationToIndex(a,b);
    }
    return returnValue;
}
 
Example 2
Source Project: jdk1.8-source-analysis   Source File: MultiListUI.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Invokes the <code>indexToLocation</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>
 */
public Point indexToLocation(JList a, int b) {
    Point returnValue =
        ((ListUI) (uis.elementAt(0))).indexToLocation(a,b);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).indexToLocation(a,b);
    }
    return returnValue;
}
 
Example 3
Source Project: jdk1.8-source-analysis   Source File: MultiListUI.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Invokes the <code>getCellBounds</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>
 */
public Rectangle getCellBounds(JList a, int b, int c) {
    Rectangle returnValue =
        ((ListUI) (uis.elementAt(0))).getCellBounds(a,b,c);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).getCellBounds(a,b,c);
    }
    return returnValue;
}
 
Example 4
Source Project: dragonwell8_jdk   Source File: MultiListUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>locationToIndex</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>
 */
public int locationToIndex(JList a, Point b) {
    int returnValue =
        ((ListUI) (uis.elementAt(0))).locationToIndex(a,b);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).locationToIndex(a,b);
    }
    return returnValue;
}
 
Example 5
Source Project: dragonwell8_jdk   Source File: MultiListUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>indexToLocation</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>
 */
public Point indexToLocation(JList a, int b) {
    Point returnValue =
        ((ListUI) (uis.elementAt(0))).indexToLocation(a,b);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).indexToLocation(a,b);
    }
    return returnValue;
}
 
Example 6
Source Project: dragonwell8_jdk   Source File: MultiListUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>getCellBounds</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>
 */
public Rectangle getCellBounds(JList a, int b, int c) {
    Rectangle returnValue =
        ((ListUI) (uis.elementAt(0))).getCellBounds(a,b,c);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).getCellBounds(a,b,c);
    }
    return returnValue;
}
 
Example 7
Source Project: TencentKona-8   Source File: MultiListUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>locationToIndex</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>
 */
public int locationToIndex(JList a, Point b) {
    int returnValue =
        ((ListUI) (uis.elementAt(0))).locationToIndex(a,b);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).locationToIndex(a,b);
    }
    return returnValue;
}
 
Example 8
Source Project: TencentKona-8   Source File: MultiListUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>indexToLocation</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>
 */
public Point indexToLocation(JList a, int b) {
    Point returnValue =
        ((ListUI) (uis.elementAt(0))).indexToLocation(a,b);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).indexToLocation(a,b);
    }
    return returnValue;
}
 
Example 9
Source Project: TencentKona-8   Source File: MultiListUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>getCellBounds</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>
 */
public Rectangle getCellBounds(JList a, int b, int c) {
    Rectangle returnValue =
        ((ListUI) (uis.elementAt(0))).getCellBounds(a,b,c);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).getCellBounds(a,b,c);
    }
    return returnValue;
}
 
Example 10
Source Project: jdk8u60   Source File: MultiListUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>locationToIndex</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>
 */
public int locationToIndex(JList a, Point b) {
    int returnValue =
        ((ListUI) (uis.elementAt(0))).locationToIndex(a,b);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).locationToIndex(a,b);
    }
    return returnValue;
}
 
Example 11
Source Project: jdk8u60   Source File: MultiListUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>indexToLocation</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>
 */
public Point indexToLocation(JList a, int b) {
    Point returnValue =
        ((ListUI) (uis.elementAt(0))).indexToLocation(a,b);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).indexToLocation(a,b);
    }
    return returnValue;
}
 
Example 12
Source Project: jdk8u60   Source File: MultiListUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>getCellBounds</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>
 */
public Rectangle getCellBounds(JList a, int b, int c) {
    Rectangle returnValue =
        ((ListUI) (uis.elementAt(0))).getCellBounds(a,b,c);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).getCellBounds(a,b,c);
    }
    return returnValue;
}
 
Example 13
Source Project: JDKSourceCode1.8   Source File: MultiListUI.java    License: MIT License 5 votes vote down vote up
/**
 * Invokes the <code>locationToIndex</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>
 */
public int locationToIndex(JList a, Point b) {
    int returnValue =
        ((ListUI) (uis.elementAt(0))).locationToIndex(a,b);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).locationToIndex(a,b);
    }
    return returnValue;
}
 
Example 14
Source Project: JDKSourceCode1.8   Source File: MultiListUI.java    License: MIT License 5 votes vote down vote up
/**
 * Invokes the <code>indexToLocation</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>
 */
public Point indexToLocation(JList a, int b) {
    Point returnValue =
        ((ListUI) (uis.elementAt(0))).indexToLocation(a,b);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).indexToLocation(a,b);
    }
    return returnValue;
}
 
Example 15
Source Project: JDKSourceCode1.8   Source File: MultiListUI.java    License: MIT License 5 votes vote down vote up
/**
 * Invokes the <code>getCellBounds</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>
 */
public Rectangle getCellBounds(JList a, int b, int c) {
    Rectangle returnValue =
        ((ListUI) (uis.elementAt(0))).getCellBounds(a,b,c);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).getCellBounds(a,b,c);
    }
    return returnValue;
}
 
Example 16
Source Project: openjdk-jdk8u   Source File: MultiListUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>locationToIndex</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>
 */
public int locationToIndex(JList a, Point b) {
    int returnValue =
        ((ListUI) (uis.elementAt(0))).locationToIndex(a,b);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).locationToIndex(a,b);
    }
    return returnValue;
}
 
Example 17
Source Project: openjdk-jdk8u   Source File: MultiListUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>indexToLocation</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>
 */
public Point indexToLocation(JList a, int b) {
    Point returnValue =
        ((ListUI) (uis.elementAt(0))).indexToLocation(a,b);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).indexToLocation(a,b);
    }
    return returnValue;
}
 
Example 18
Source Project: openjdk-jdk8u   Source File: MultiListUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>getCellBounds</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>
 */
public Rectangle getCellBounds(JList a, int b, int c) {
    Rectangle returnValue =
        ((ListUI) (uis.elementAt(0))).getCellBounds(a,b,c);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).getCellBounds(a,b,c);
    }
    return returnValue;
}
 
Example 19
/**
 * Invokes the <code>locationToIndex</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>
 */
public int locationToIndex(JList a, Point b) {
    int returnValue =
        ((ListUI) (uis.elementAt(0))).locationToIndex(a,b);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).locationToIndex(a,b);
    }
    return returnValue;
}
 
Example 20
/**
 * Invokes the <code>indexToLocation</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>
 */
public Point indexToLocation(JList a, int b) {
    Point returnValue =
        ((ListUI) (uis.elementAt(0))).indexToLocation(a,b);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).indexToLocation(a,b);
    }
    return returnValue;
}
 
Example 21
/**
 * Invokes the <code>getCellBounds</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>
 */
public Rectangle getCellBounds(JList a, int b, int c) {
    Rectangle returnValue =
        ((ListUI) (uis.elementAt(0))).getCellBounds(a,b,c);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).getCellBounds(a,b,c);
    }
    return returnValue;
}
 
Example 22
Source Project: Bytecoder   Source File: MultiListUI.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Invokes the <code>locationToIndex</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>
 */
public int locationToIndex(JList<?> a, Point b) {
    int returnValue =
        ((ListUI) (uis.elementAt(0))).locationToIndex(a,b);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).locationToIndex(a,b);
    }
    return returnValue;
}
 
Example 23
Source Project: Bytecoder   Source File: MultiListUI.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Invokes the <code>indexToLocation</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>
 */
public Point indexToLocation(JList<?> a, int b) {
    Point returnValue =
        ((ListUI) (uis.elementAt(0))).indexToLocation(a,b);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).indexToLocation(a,b);
    }
    return returnValue;
}
 
Example 24
Source Project: Bytecoder   Source File: MultiListUI.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Invokes the <code>getCellBounds</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>
 */
public Rectangle getCellBounds(JList<?> a, int b, int c) {
    Rectangle returnValue =
        ((ListUI) (uis.elementAt(0))).getCellBounds(a,b,c);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).getCellBounds(a,b,c);
    }
    return returnValue;
}
 
Example 25
Source Project: openjdk-jdk9   Source File: MultiListUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>locationToIndex</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>
 */
public int locationToIndex(JList<?> a, Point b) {
    int returnValue =
        ((ListUI) (uis.elementAt(0))).locationToIndex(a,b);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).locationToIndex(a,b);
    }
    return returnValue;
}
 
Example 26
Source Project: openjdk-jdk9   Source File: MultiListUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>indexToLocation</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>
 */
public Point indexToLocation(JList<?> a, int b) {
    Point returnValue =
        ((ListUI) (uis.elementAt(0))).indexToLocation(a,b);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).indexToLocation(a,b);
    }
    return returnValue;
}
 
Example 27
Source Project: openjdk-jdk9   Source File: MultiListUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>getCellBounds</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>
 */
public Rectangle getCellBounds(JList<?> a, int b, int c) {
    Rectangle returnValue =
        ((ListUI) (uis.elementAt(0))).getCellBounds(a,b,c);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).getCellBounds(a,b,c);
    }
    return returnValue;
}
 
Example 28
Source Project: openjdk-jdk9   Source File: JListOperator.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Maps {@code JList.getUI()} through queue
 */
public ListUI getUI() {
    return (runMapping(new MapAction<ListUI>("getUI") {
        @Override
        public ListUI map() {
            return ((JList) getSource()).getUI();
        }
    }));
}
 
Example 29
Source Project: openjdk-jdk9   Source File: JListOperator.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Maps {@code JList.setUI(ListUI)} through queue
 */
public void setUI(final ListUI listUI) {
    runMapping(new MapVoidAction("setUI") {
        @Override
        public void map() {
            ((JList) getSource()).setUI(listUI);
        }
    });
}
 
Example 30
Source Project: jdk8u-jdk   Source File: MultiListUI.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invokes the <code>locationToIndex</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>
 */
public int locationToIndex(JList a, Point b) {
    int returnValue =
        ((ListUI) (uis.elementAt(0))).locationToIndex(a,b);
    for (int i = 1; i < uis.size(); i++) {
        ((ListUI) (uis.elementAt(i))).locationToIndex(a,b);
    }
    return returnValue;
}