97 lines
3.5 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.

<div class="header">
<div class="subTitle">
javax.swing
</div>
<h2 class="title" title="Interface Renderer">Interface Renderer</h2>
</div><div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr/> <br/> <pre>public interface <span class="typeNameLabel">Renderer</span></pre>
<div class="block">
定义负责“渲染”(显示)值的对象的要求。
</div> </li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== 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><a href="../../java/awt/Component.html" title="class in java.awt">Component</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../javax/swing/Renderer.html#getComponent--">getComponent</a></span>()</code>
<div class="block">
返回用于渲染值的组件。
</div> </td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../javax/swing/Renderer.html#setValue-java.lang.Object-boolean-">setValue</a></span>(<a href="../../java/lang/Object.html" title="class in java.lang">Object</a> aValue, boolean isSelected)</code>
<div class="block">
指定要显示的值以及该值是否应被描述为“当前选择”。
</div> </td>
</tr>
</tbody>
</table> </li>
</ul> </li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- --> </a> <h3>方法详细信息</h3> <a name="setValue-java.lang.Object-boolean-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>setValue</h4> <pre>void setValue(<a href="../../java/lang/Object.html" title="class in java.lang">Object</a> aValue,
boolean isSelected)</pre>
<div class="block">
指定要显示的值以及该值是否应被描述为“当前选择”。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>aValue</code> - 一个Object对象
</dd>
<dd>
<code>isSelected</code> - 一个布尔值
</dd>
</dl> </li>
</ul> <a name="getComponent--">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>getComponent</h4> <pre><a href="../../java/awt/Component.html" title="class in java.awt">Component</a> getComponent()</pre>
<div class="block">
返回用于渲染值的组件。
</div>
<dl>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
负责显示值的组件
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>