站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v6.0, Java 2 SDK 英文文档

Uses of Interface javax.swing.table.TableCellRenderer (Java Platform SE 6) - JDK 5 Documentation v6.0, Java 2 SDK 英文文档


Java™ Platform
Standard Ed. 6

Uses of Interface
javax.swing.table.TableCellRenderer

Packages that use TableCellRenderer
javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. 
javax.swing.table Provides classes and interfaces for dealing with javax.swing.JTable
 

Uses of TableCellRenderer in javax.swing
 

Methods in javax.swing that return TableCellRenderer
 TableCellRenderer JTable.getCellRenderer(int row, int column)
          Returns an appropriate renderer for the cell specified by this row and column.
 TableCellRenderer JTable.getDefaultRenderer(Class<?> columnClass)
          Returns the cell renderer to be used when no renderer has been set in a TableColumn.
 

Methods in javax.swing with parameters of type TableCellRenderer
 Component JTable.prepareRenderer(TableCellRenderer renderer, int row, int column)
          Prepares the renderer by querying the data model for the value and selection state of the cell at row, column.
 void JTable.setDefaultRenderer(Class<?> columnClass, TableCellRenderer renderer)
          Sets a default cell renderer to be used if no renderer has been set in a TableColumn.
 

Uses of TableCellRenderer in javax.swing.table
 

Classes in javax.swing.table that implement TableCellRenderer
 class DefaultTableCellRenderer
          The standard class for rendering (displaying) individual cells in a JTable.
static class DefaultTableCellRenderer.UIResource
          A subclass of DefaultTableCellRenderer that implements UIResource.
 

Fields in javax.swing.table declared as TableCellRenderer
protected  TableCellRenderer TableColumn.cellRenderer
          The renderer used to draw the data cells of the column.
protected  TableCellRenderer TableColumn.headerRenderer
          The renderer used to draw the header of the column.
 

Methods in javax.swing.table that return TableCellRenderer
protected  TableCellRenderer TableColumn.createDefaultHeaderRenderer()
          As of Java 2 platform v1.3, this method is not called by the TableColumn constructor.
protected  TableCellRenderer JTableHeader.createDefaultRenderer()
          Returns a default renderer to be used when no header renderer is defined by a TableColumn.
 TableCellRenderer TableColumn.getCellRenderer()
          Returns the TableCellRenderer used by the JTable to draw values for this column.
 TableCellRenderer JTableHeader.getDefaultRenderer()
          Returns the default renderer used when no headerRenderer is defined by a TableColumn.
 TableCellRenderer TableColumn.getHeaderRenderer()
          Returns the TableCellRenderer used to draw the header of the TableColumn.
 

Methods in javax.swing.table with parameters of type TableCellRenderer
 void TableColumn.setCellRenderer(TableCellRenderer cellRenderer)
          Sets the TableCellRenderer used by JTable to draw individual values for this column.
 void JTableHeader.setDefaultRenderer(TableCellRenderer defaultRenderer)
          Sets the default renderer to be used when no headerRenderer is defined by a TableColumn.
 void TableColumn.setHeaderRenderer(TableCellRenderer headerRenderer)
          Sets the TableCellRenderer used to draw the TableColumn's header to headerRenderer.
 

Constructors in javax.swing.table with parameters of type TableCellRenderer
TableColumn(int modelIndex, int width, TableCellRenderer cellRenderer, TableCellEditor cellEditor)
          Creates and initializes an instance of TableColumn with the specified model index, width, cell renderer, and cell editor; all TableColumn constructors delegate to this one.
 


Java™ Platform
Standard Ed. 6

Submit a bug or feature
For further API reference and developer documentation, see Java SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.