swingx
Version 2005-08-19

org.jdesktop.swingx.table
Class TableCellRenderers

java.lang.Object
  extended by org.jdesktop.swingx.table.TableCellRenderers

public class TableCellRenderers
extends Object


Method Summary
static TableCellRenderer getNewDefaultRenderer(Class columnClass)
          Returns a new instance of the default renderer for the specified class.
static void setDefaultRenderer(Class columnClass, String rendererClassName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setDefaultRenderer

public static void setDefaultRenderer(Class columnClass,
                                      String rendererClassName)
Parameters:
columnClass - Class of value being rendered
rendererClassName - String containing the class name of the renderer which should be returned for the specified column class
See Also:
getNewDefaultRenderer(java.lang.Class)

getNewDefaultRenderer

public static TableCellRenderer getNewDefaultRenderer(Class columnClass)
Returns a new instance of the default renderer for the specified class. This differs from JTable:getDefaultRenderer() in that it returns a new instance each time so that the renderer may be set and customized for a particular column.

Parameters:
columnClass - Class of value being rendered
Returns:
TableCellRenderer instance which renders values of the specified type

swingx
Version 2005-08-19