223 lines
11 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="header">
<div class="subTitle">
javax.swing.plaf
</div>
<h2 class="title" title="Class ListUI">Class ListUI</h2>
</div><div class="contentContainer">
<ul class="inheritance">
<li><a href="../../../java/lang/Object.html" title="class in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../javax/swing/plaf/ComponentUI.html" title="class in javax.swing.plaf">javax.swing.plaf.ComponentUI</a></li>
<li>
<ul class="inheritance">
<li>javax.swing.plaf.ListUI</li>
</ul> </li>
</ul> </li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>
已知直接子类:
</dt>
<dd>
<span><a href="../../../javax/swing/plaf/basic/BasicListUI.html" title="javax.swing.plaf.basic中的类">BasicListUI</a> <a href="../../../javax/swing/plaf/multi/MultiListUI.html" title="javax.swing.plaf.multi中的类">MultiListUI</a></span>
</dd>
</dl>
<hr/> <br/> <pre>public abstract class <span class="typeNameLabel">ListUI</span>
extends <a href="../../../javax/swing/plaf/ComponentUI.html" title="class in javax.swing.plaf">ComponentUI</a></pre>
<div class="block">
<code>JList</code>可插拔外观和代理。
</div> </li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- --> </a> <h3>构造方法摘要</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Constructor Summary table, listing constructors, and an explanation">
<caption>
<span>构造方法</span>
<span class="tabEnd"> </span>
</caption>
<tbody>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../javax/swing/plaf/ListUI.html#ListUI--">ListUI</a></span>()</code> </td>
</tr>
</tbody>
</table> </li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- --> </a> <h3>方法摘要</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
<caption>
<span class="activeTableTab" id="t0"><span>所有方法</span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t2"><span><a href="javascript:show(2);">接口方法</a></span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t3"><span><a href="javascript:show(4);">抽象方法</a></span><span class="tabEnd"> </span></span>
</caption>
<tbody>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor" id="i0">
<td class="colFirst"><code>abstract <a href="../../../java/awt/Rectangle.html" title="class in java.awt">Rectangle</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/swing/plaf/ListUI.html#getCellBounds-javax.swing.JList-int-int-">getCellBounds</a></span>(<a href="../../../javax/swing/JList.html" title="class in javax.swing">JList</a> list, int index1, int index2)</code>
<div class="block">
返回给定列表的坐标系中由两个索引指定的单元格范围的边界矩形。
</div> </td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code>abstract <a href="../../../java/awt/Point.html" title="class in java.awt">Point</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/swing/plaf/ListUI.html#indexToLocation-javax.swing.JList-int-">indexToLocation</a></span>(<a href="../../../javax/swing/JList.html" title="class in javax.swing">JList</a> list, int index)</code>
<div class="block">
返回列表坐标系中指定项目的给定
<code>JList</code>中的原点。
</div> </td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code>abstract int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/swing/plaf/ListUI.html#locationToIndex-javax.swing.JList-java.awt.Point-">locationToIndex</a></span>(<a href="../../../javax/swing/JList.html" title="class in javax.swing">JList</a> list, <a href="../../../java/awt/Point.html" title="class in java.awt">Point</a> location)</code>
<div class="block">
返回指定的细胞指数
<code>JList</code>列表中的坐标系中最接近指定位置。
</div> </td>
</tr>
</tbody>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.javax.swing.plaf.ComponentUI">
<!-- --> </a> <h3>Methods inherited from class javax.swing.plaf.<a href="../../../javax/swing/plaf/ComponentUI.html" title="class in javax.swing.plaf">ComponentUI</a></h3> <code><a href="../../../javax/swing/plaf/ComponentUI.html#contains-javax.swing.JComponent-int-int-">contains</a>, <a href="../../../javax/swing/plaf/ComponentUI.html#createUI-javax.swing.JComponent-">createUI</a>, <a href="../../../javax/swing/plaf/ComponentUI.html#getAccessibleChild-javax.swing.JComponent-int-">getAccessibleChild</a>, <a href="../../../javax/swing/plaf/ComponentUI.html#getAccessibleChildrenCount-javax.swing.JComponent-">getAccessibleChildrenCount</a>, <a href="../../../javax/swing/plaf/ComponentUI.html#getBaseline-javax.swing.JComponent-int-int-">getBaseline</a>, <a href="../../../javax/swing/plaf/ComponentUI.html#getBaselineResizeBehavior-javax.swing.JComponent-">getBaselineResizeBehavior</a>, <a href="../../../javax/swing/plaf/ComponentUI.html#getMaximumSize-javax.swing.JComponent-">getMaximumSize</a>, <a href="../../../javax/swing/plaf/ComponentUI.html#getMinimumSize-javax.swing.JComponent-">getMinimumSize</a>, <a href="../../../javax/swing/plaf/ComponentUI.html#getPreferredSize-javax.swing.JComponent-">getPreferredSize</a>, <a href="../../../javax/swing/plaf/ComponentUI.html#installUI-javax.swing.JComponent-">installUI</a>, <a href="../../../javax/swing/plaf/ComponentUI.html#paint-java.awt.Graphics-javax.swing.JComponent-">paint</a>, <a href="../../../javax/swing/plaf/ComponentUI.html#uninstallUI-javax.swing.JComponent-">uninstallUI</a>, <a href="../../../javax/swing/plaf/ComponentUI.html#update-java.awt.Graphics-javax.swing.JComponent-">update</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- --> </a> <h3>Methods inherited from class java.lang.<a href="../../../java/lang/Object.html" title="class in java.lang">Object</a></h3> <code><a href="../../../java/lang/Object.html#clone--">clone</a>, <a href="../../../java/lang/Object.html#equals-java.lang.Object-">equals</a>, <a href="../../../java/lang/Object.html#finalize--">finalize</a>, <a href="../../../java/lang/Object.html#getClass--">getClass</a>, <a href="../../../java/lang/Object.html#hashCode--">hashCode</a>, <a href="../../../java/lang/Object.html#notify--">notify</a>, <a href="../../../java/lang/Object.html#notifyAll--">notifyAll</a>, <a href="../../../java/lang/Object.html#toString--">toString</a>, <a href="../../../java/lang/Object.html#wait--">wait</a>, <a href="../../../java/lang/Object.html#wait-long-">wait</a>, <a href="../../../java/lang/Object.html#wait-long-int-">wait</a></code></li>
</ul> </li>
</ul> </li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- --> </a> <h3>构造方法详细信息</h3> <a name="ListUI--">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>ListUI</h4> <pre>public ListUI()</pre> </li>
</ul> </li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- --> </a> <h3>方法详细信息</h3> <a name="locationToIndex-javax.swing.JList-java.awt.Point-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>locationToIndex</h4> <pre>public abstract int locationToIndex(<a href="../../../javax/swing/JList.html" title="class in javax.swing">JList</a> list,
<a href="../../../java/awt/Point.html" title="class in java.awt">Point</a> location)</pre>
<div class="block">
<span>返回指定的细胞指数<code>JList</code>列表中的坐标系中最接近指定位置。</span>
<span>要确定单元格实际是否包含指定的位置请按照getCellBounds的规定将该点与单元格的边界进行<code>getCellBounds</code></span>
<span>如果列表的模型为空,此方法返回<code>-1</code></span>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>list</code> - 列表
</dd>
<dd>
<code>location</code> - 点的坐标
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
最接近给定位置的单元
<code>-1</code> ,或
<code>-1</code>
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../java/lang/NullPointerException.html" title="class in java.lang">NullPointerException</a></code> - 如果
<code>location</code>为空
</dd>
</dl> </li>
</ul> <a name="indexToLocation-javax.swing.JList-int-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>indexToLocation</h4> <pre>public abstract <a href="../../../java/awt/Point.html" title="class in java.awt">Point</a> indexToLocation(<a href="../../../javax/swing/JList.html" title="class in javax.swing">JList</a> list,
int index)</pre>
<div class="block">
<span>返回列表坐标系中指定项目的给定<code>JList</code>中的原点。</span>
<span>如果索引无效,则返回<code>null</code></span>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>list</code> - 列表
</dd>
<dd>
<code>index</code> - 细胞指数
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
电池的起源,或
<code>null</code>
</dd>
</dl> </li>
</ul> <a name="getCellBounds-javax.swing.JList-int-int-">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>getCellBounds</h4> <pre>public abstract <a href="../../../java/awt/Rectangle.html" title="class in java.awt">Rectangle</a> getCellBounds(<a href="../../../javax/swing/JList.html" title="class in javax.swing">JList</a> list,
int index1,
int index2)</pre>
<div class="block">
<span>返回给定列表的坐标系中由两个索引指定的单元格范围的边界矩形。</span>
<span>指数可以按任何顺序提供。</span>
<p> <span>如果较小的索引在列表的单元格范围之外,则此方法返回<code>null</code></span> <span>如果较小的索引有效,但较大的索引在列表的范围之外,则仅返回第一个索引的边界。</span> <span>否则返回有效范围的范围。</span> </p>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>list</code> - 列表
</dd>
<dd>
<code>index1</code> - 范围内的第一个索引
</dd>
<dd>
<code>index2</code> - 范围内的第二个指数
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
the bounding rectangle for the range of cells, or
<code>null</code>
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>