org.archiviststoolkit.mydomain
Class DomainTableModelColumn

java.lang.Object
  extended by org.archiviststoolkit.mydomain.DomainTableModelColumn

public class DomainTableModelColumn
extends java.lang.Object

A Table Column Model for JTable implementations.


Constructor Summary
DomainTableModelColumn(java.lang.String name, java.lang.String fieldName, java.lang.Class modelClass, java.lang.Class clazz)
          Default Constructor.
DomainTableModelColumn(java.lang.String name, java.lang.String fieldName, java.lang.Class modelClass, java.lang.Class clazz, java.lang.Boolean editable)
          Default Constructor.
 
Method Summary
 java.lang.Class getColumnClass()
          Get the class of the column values.
 java.lang.String getColumnName()
          Get the name of the column.
 java.lang.Boolean getEditable()
           
 java.lang.String getFieldName()
           
 java.lang.reflect.Method getReadColumnMethod()
          Get the readMethod used to gather the value for display.
 java.lang.reflect.Method getWriteColumnMethod()
          Get the writeMethod used to gather the value for display.
 void setEditable(java.lang.Boolean editable)
           
 void setFieldName(java.lang.String fieldName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainTableModelColumn

public DomainTableModelColumn(java.lang.String name,
                              java.lang.String fieldName,
                              java.lang.Class modelClass,
                              java.lang.Class clazz)
Default Constructor.

Parameters:
name - the name of the column
fieldName - the field name associated with recall the value
modelClass - the class of the field name associated with recall the value
clazz - the class of the values within the column

DomainTableModelColumn

public DomainTableModelColumn(java.lang.String name,
                              java.lang.String fieldName,
                              java.lang.Class modelClass,
                              java.lang.Class clazz,
                              java.lang.Boolean editable)
Default Constructor.

Parameters:
name - the name of the column
fieldName - the field name associated with recall the value
modelClass - the class of the field name associated with recall the value
clazz - the class of the values within the column
Method Detail

getColumnName

public final java.lang.String getColumnName()
Get the name of the column.

Returns:
the name of the column

getReadColumnMethod

public final java.lang.reflect.Method getReadColumnMethod()
Get the readMethod used to gather the value for display.

Returns:
the readMethod

getWriteColumnMethod

public final java.lang.reflect.Method getWriteColumnMethod()
Get the writeMethod used to gather the value for display.

Returns:
the writeMethod

getColumnClass

public final java.lang.Class getColumnClass()
Get the class of the column values.

Returns:
the class of the column values

getFieldName

public java.lang.String getFieldName()

setFieldName

public void setFieldName(java.lang.String fieldName)

getEditable

public java.lang.Boolean getEditable()

setEditable

public void setEditable(java.lang.Boolean editable)