下面列出了怎么用javax.swing.plaf.ListUI的API类实例代码及写法,或者点击链接到github查看源代码。
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* Maps {@code JList.getUI()} through queue
*/
public ListUI getUI() {
return (runMapping(new MapAction<ListUI>("getUI") {
@Override
public ListUI map() {
return ((JList) getSource()).getUI();
}
}));
}
/**
* 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);
}
});
}
/**
* 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;
}