defaulttablecellrenderer.html

来自「API資料大全」· HTML 代码 · 共 689 行 · 第 1/5 页

HTML
689
字号
</TABLE>&nbsp;<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="DefaultTableCellRenderer()"><!-- --></A><H3>DefaultTableCellRenderer</H3><PRE>public <B>DefaultTableCellRenderer</B>()</PRE><DL><DD>Creates a default table cell renderer.</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="setForeground(java.awt.Color)"><!-- --></A><H3>setForeground</H3><PRE>public void <B>setForeground</B>(<A HREF="../../../java/awt/Color.html">Color</A>&nbsp;c)</PRE><DL><DD>Overrides <code>JComponent.setForeground</code> to assign the unselected-foreground color to the specified color.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/JComponent.html#setForeground(java.awt.Color)">setForeground</A></CODE> in class <CODE><A HREF="../../../javax/swing/JComponent.html">JComponent</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - set the foreground color to this value</DL></DD></DL><HR><A NAME="setBackground(java.awt.Color)"><!-- --></A><H3>setBackground</H3><PRE>public void <B>setBackground</B>(<A HREF="../../../java/awt/Color.html">Color</A>&nbsp;c)</PRE><DL><DD>Overrides <code>JComponent.setForeground</code> to assign the unselected-background color to the specified color.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/JComponent.html#setBackground(java.awt.Color)">setBackground</A></CODE> in class <CODE><A HREF="../../../javax/swing/JComponent.html">JComponent</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - set the background color to this value</DL></DD></DL><HR><A NAME="updateUI()"><!-- --></A><H3>updateUI</H3><PRE>public void <B>updateUI</B>()</PRE><DL><DD>Notification from the <code>UIManager</code> that the look and feel [L&F] has changed. Replaces the current UI object with the latest version from the  <code>UIManager</code>.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/JLabel.html#updateUI()">updateUI</A></CODE> in class <CODE><A HREF="../../../javax/swing/JLabel.html">JLabel</A></CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/JComponent.html#updateUI()"><CODE>JComponent.updateUI()</CODE></A></DL></DD></DL><HR><A NAME="getTableCellRendererComponent(javax.swing.JTable, java.lang.Object, boolean, boolean, int, int)"><!-- --></A><H3>getTableCellRendererComponent</H3><PRE>public <A HREF="../../../java/awt/Component.html">Component</A> <B>getTableCellRendererComponent</B>(<A HREF="../../../javax/swing/JTable.html">JTable</A>&nbsp;table,                                               <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;value,                                               boolean&nbsp;isSelected,                                               boolean&nbsp;hasFocus,                                               int&nbsp;row,                                               int&nbsp;column)</PRE><DL><DD>Returns the default table cell renderer.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/table/TableCellRenderer.html#getTableCellRendererComponent(javax.swing.JTable, java.lang.Object, boolean, boolean, int, int)">getTableCellRendererComponent</A></CODE> in interface <CODE><A HREF="../../../javax/swing/table/TableCellRenderer.html">TableCellRenderer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>table</CODE> - the <code>JTable</code><DD><CODE>value</CODE> - the value to assign to the cell at			<code>[row, column]</code><DD><CODE>isSelected</CODE> - true if cell is selected<DD><CODE>isFocus</CODE> - true if cell has focus<DD><CODE>row</CODE> - the row of the cell to render<DD><CODE>column</CODE> - the column of the cell to render<DT><B>Returns:</B><DD>the default table cell renderer</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>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?