net.sf.nachocalendar.table
Class JTableCustomizer

java.lang.Object
  extended by net.sf.nachocalendar.table.JTableCustomizer

public final class JTableCustomizer
extends java.lang.Object

Author:
Ignacio Merani

Method Summary
static void setDefaultEditor(javax.swing.JTable table)
          Sets the default editor/renderer for Date objets to provided JTable.
static void setDefaultEditor(javax.swing.JTable table, java.text.DateFormat format)
          Sets the default editor/renderer for Date objets to provided JTable.
static void setEditorForRow(javax.swing.JTable table, int row)
          Sets the editor/renderer for Date objects to provided JTable, for the specified column.
static void setEditorForRow(javax.swing.JTable table, int row, java.text.DateFormat format)
          Sets the editor/renderer for Date objects to provided JTable, for the specified column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setDefaultEditor

public static void setDefaultEditor(javax.swing.JTable table)
Sets the default editor/renderer for Date objets to provided JTable.

Parameters:
table - JTable to set up

setDefaultEditor

public static void setDefaultEditor(javax.swing.JTable table,
                                    java.text.DateFormat format)
Sets the default editor/renderer for Date objets to provided JTable.

Parameters:
table - JTable to set up
format - Format to use

setEditorForRow

public static void setEditorForRow(javax.swing.JTable table,
                                   int row)
Sets the editor/renderer for Date objects to provided JTable, for the specified column.

Parameters:
table - JTable to set up
row - Column to apply

setEditorForRow

public static void setEditorForRow(javax.swing.JTable table,
                                   int row,
                                   java.text.DateFormat format)
Sets the editor/renderer for Date objects to provided JTable, for the specified column.

Parameters:
table - JTable to set up
row - Column to apply
format - Format to use