edu.jhu.tmaj.client.tables.data
Class ColumnSet

java.lang.Object
  extended by edu.jhu.tmaj.client.tables.data.ColumnSet

final class ColumnSet
extends java.lang.Object

Used for one set of a ColumnModel. Stores a column's header value and the column's width. getHashID() and isCompatible() is meant to be a alternative to hashCode() and isEquals(), respectively. An isEquals() object would imply that the columns and their widths are identical. Compatibility just ensures that the two objects have the same set of columnnames.


Constructor Summary
ColumnSet(javax.swing.table.TableColumnModel tableColumnModel)
          Initializes this object with the columnnames and widths in tableColumnModel
 
Method Summary
 void applyTo(javax.swing.table.TableColumnModel tableColumnModel)
          Changes the widths in tableColumnModel to match this object
 int getHashID()
          Returns a Hash value for the data contained within this object
 boolean isCompatible(java.lang.Object obj)
          Returns true if the Data contain the same set of columns.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnSet

public ColumnSet(javax.swing.table.TableColumnModel tableColumnModel)
Initializes this object with the columnnames and widths in tableColumnModel

Method Detail

applyTo

public void applyTo(javax.swing.table.TableColumnModel tableColumnModel)
Changes the widths in tableColumnModel to match this object


getHashID

public int getHashID()
Returns a Hash value for the data contained within this object


isCompatible

public boolean isCompatible(java.lang.Object obj)
Returns true if the Data contain the same set of columns. The order and width are irrelevant.