org.archiviststoolkit.mydomain
Class DomainTableFormat

java.lang.Object
  extended by org.archiviststoolkit.mydomain.DomainTableFormat
All Implemented Interfaces:
ca.odell.glazedlists.gui.AdvancedTableFormat, ca.odell.glazedlists.gui.TableFormat

public class DomainTableFormat
extends java.lang.Object
implements ca.odell.glazedlists.gui.AdvancedTableFormat

Archivists' Toolkit(TM) Copyright © 2005-2007 Regents of the University of California, New York University, & Five Colleges, Inc. All rights reserved. This software is free. You can redistribute it and / or modify it under the terms of the Educational Community License (ECL) version 1.0 (http://www.opensource.org/licenses/ecl1.php) This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ECL license for more details about permissions and limitations. Archivists' Toolkit(TM) http://www.archiviststoolkit.org info@archiviststoolkit.org


Constructor Summary
DomainTableFormat(java.lang.Class clazz)
           
DomainTableFormat(java.lang.Class clazz, java.lang.String... fields)
           
 
Method Summary
 java.lang.Class getColumnClass(int i)
           
 java.util.Comparator getColumnComparator(int column)
          Returns the default Comparator to use for the specified column.
 int getColumnCount()
           
 java.lang.String getColumnFieldName(int i)
           
 java.lang.String getColumnName(int i)
           
 java.lang.Integer getColumnNumberByFieldName(java.lang.String fieldName)
           
 java.lang.Object getColumnValue(java.lang.Object o, int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainTableFormat

public DomainTableFormat(java.lang.Class clazz)

DomainTableFormat

public DomainTableFormat(java.lang.Class clazz,
                         java.lang.String... fields)
Method Detail

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface ca.odell.glazedlists.gui.TableFormat

getColumnName

public java.lang.String getColumnName(int i)
Specified by:
getColumnName in interface ca.odell.glazedlists.gui.TableFormat

getColumnValue

public java.lang.Object getColumnValue(java.lang.Object o,
                                       int i)
Specified by:
getColumnValue in interface ca.odell.glazedlists.gui.TableFormat

getColumnFieldName

public java.lang.String getColumnFieldName(int i)

getColumnClass

public java.lang.Class getColumnClass(int i)
Specified by:
getColumnClass in interface ca.odell.glazedlists.gui.AdvancedTableFormat

getColumnComparator

public java.util.Comparator getColumnComparator(int column)
Returns the default Comparator to use for the specified column. This Comparator may be used to determine how a table will be sorted.

Specified by:
getColumnComparator in interface ca.odell.glazedlists.gui.AdvancedTableFormat
Returns:
the Comparator to use or null for an unsortable column.
See Also:
GlazedLists

getColumnNumberByFieldName

public java.lang.Integer getColumnNumberByFieldName(java.lang.String fieldName)