📄 defaultlistcellrenderer.html
字号:
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><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#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></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="noFocusBorder"><!-- --></A><H3>noFocusBorder</H3><PRE>protected static <A HREF="../../javax/swing/border/Border.html">Border</A> <B>noFocusBorder</B></PRE><DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="DefaultListCellRenderer()"><!-- --></A><H3>DefaultListCellRenderer</H3><PRE>public <B>DefaultListCellRenderer</B>()</PRE><DL><DD>Constructs a default renderer object for an item in a list.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getListCellRendererComponent(javax.swing.JList, java.lang.Object, int, boolean, boolean)"><!-- --></A><H3>getListCellRendererComponent</H3><PRE>public <A HREF="../../java/awt/Component.html">Component</A> <B>getListCellRendererComponent</B>(<A HREF="../../javax/swing/JList.html">JList</A> list, <A HREF="../../java/lang/Object.html">Object</A> value, int index, boolean isSelected, boolean cellHasFocus)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/swing/ListCellRenderer.html">ListCellRenderer</A></CODE></B></DD><DD>Return a component that has been configured to display the specified value. That component's <code>paint</code> method is then called to "render" the cell. If it is necessary to compute the dimensions of a list because the list cells do not have a fixed size, this method is called to generate a component on which <code>getPreferredSize</code> can be invoked.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/swing/ListCellRenderer.html#getListCellRendererComponent(javax.swing.JList, java.lang.Object, int, boolean, boolean)">getListCellRendererComponent</A></CODE> in interface <CODE><A HREF="../../javax/swing/ListCellRenderer.html">ListCellRenderer</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.swing.ListCellRenderer</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>list</CODE> - The JList we're painting.<DD><CODE>value</CODE> - The value returned by list.getModel().getElementAt(index).<DD><CODE>index</CODE> - The cells index.<DD><CODE>isSelected</CODE> - True if the specified cell was selected.<DD><CODE>cellHasFocus</CODE> - True if the specified cell has the focus.<DT><B>Returns:</B><DD>A component whose paint() method will render the specified value.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html"><CODE>JList</CODE></A>, <A HREF="../../javax/swing/ListSelectionModel.html"><CODE>ListSelectionModel</CODE></A>, <A HREF="../../javax/swing/ListModel.html"><CODE>ListModel</CODE></A></DL></DD></DL><HR><A NAME="validate()"><!-- --></A><H3>validate</H3><PRE>public void <B>validate</B>()</PRE><DL><DD>Overridden for performance reasons. See the <a href="#override">Implementation Note</a> for more information.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Container.html#validate()">validate</A></CODE> in class <CODE><A HREF="../../java/awt/Container.html">Container</A></CODE></DL></DD><DD>Following copied from class: <CODE>java.awt.Container</CODE></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../java/awt/Container.html#validate()"><CODE>Container.validate()</CODE></A>, <A HREF="../../java/awt/Component.html#invalidate()"><CODE>Component.invalidate()</CODE></A></DL></DD></DL><HR><A NAME="revalidate()"><!-- --></A><H3>revalidate</H3><PRE>public void <B>revalidate</B>()</PRE><DL><DD>Overridden for performance reasons. See the <a href="#override">Implementation Note</a> for more information.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../javax/swing/JComponent.html#revalidate()">revalidate</A></CODE> in class <CODE><A HREF="../../javax/swing/JComponent.html">JComponent</A></CODE></DL></DD><DD>Following copied from class: <CODE>javax.swing.JComponent</CODE></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../java/awt/Component.html#invalidate()"><CODE>Component.invalidate()</CODE></A>, <A HREF="../../java/awt/Container.html#validate()"><CODE>Container.validate()</CODE></A>, <A HREF="../../javax/swing/JComponent.html#isValidateRoot()"><CODE>JComponent.isValidateRoot()</CODE></A>, <A HREF="../../javax/swing/RepaintManager.html#addInvalidComponent(javax.swing.JComponent)"><CODE>RepaintManager.addInvalidComponent(javax.swing.JComponent)</CODE></A></DL></DD></DL><HR><A NAME="repaint(long, int, int, int, int)"><!-- --></A><H3>repaint</H3><PRE>public void <B>repaint</B>(long tm, int x, int y, int width, int height)</PRE><DL><DD>Overridden for performance reasons. See the <a href="#override">Implementation Note</a> for more information.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../javax/swing/JComponent.html#repaint(long, int, int, int, int)">repaint</A></CODE> in class <CODE><A HREF="../../javax/swing/JComponent.html">JComponent</A></CODE></DL></DD><DD>Following copied from class: <CODE>javax.swing.JComponent</CODE></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../java/awt/Component.html#isShowing()"><CODE>Component.isShowing()</CODE></A>, <A HREF="../../javax/swing/RepaintManager.html#addDirtyRegion(javax.swing.JComponent, int, int, int, int)"><CODE>RepaintManager.addDirtyRegion(javax.swing.JComponent, int, int, int, int)</CODE></A></DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -