com.ice.jcvsii
Class EntryColumnModel

java.lang.Object
  |
  +--javax.swing.table.DefaultTableColumnModel
        |
        +--com.ice.jcvsii.EntryColumnModel
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.ListSelectionListener, java.beans.PropertyChangeListener, java.io.Serializable, javax.swing.table.TableColumnModel

public class EntryColumnModel
extends javax.swing.table.DefaultTableColumnModel

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.DefaultTableColumnModel
changeEvent, columnMargin, columnSelectionAllowed, listenerList, selectionModel, tableColumns, totalColumnWidth
 
Constructor Summary
EntryColumnModel()
           
 
Method Summary
 int getColumnIndexAtX(int x)
          We had to implement our own column indexer because the one in ColumnModel was not working for the right hand edge of the last column.
 int getModifiedWidth()
           
 int getNameWidth()
           
 int getTagWidth()
           
 int getTotalColumnWidth()
          We had to implement our own column sizer because the one in ColumnModel was not working for the right hand edge of the last column.
 int getVersionWidth()
           
 void setModifiedWidth(int w)
           
 void setNameWidth(int w)
           
 void setTagWidth(int w)
           
 void setVersionWidth(int w)
           
 
Methods inherited from class javax.swing.table.DefaultTableColumnModel
addColumn, addColumnModelListener, createSelectionModel, fireColumnAdded, fireColumnMarginChanged, fireColumnMoved, fireColumnRemoved, fireColumnSelectionChanged, getColumn, getColumnCount, getColumnIndex, getColumnMargin, getColumnModelListeners, getColumns, getColumnSelectionAllowed, getListeners, getSelectedColumnCount, getSelectedColumns, getSelectionModel, moveColumn, propertyChange, recalcWidthCache, removeColumn, removeColumnModelListener, setColumnMargin, setColumnSelectionAllowed, setSelectionModel, valueChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryColumnModel

public EntryColumnModel()
Method Detail

getNameWidth

public int getNameWidth()

setNameWidth

public void setNameWidth(int w)

getVersionWidth

public int getVersionWidth()

setVersionWidth

public void setVersionWidth(int w)

getTagWidth

public int getTagWidth()

setTagWidth

public void setTagWidth(int w)

getModifiedWidth

public int getModifiedWidth()

setModifiedWidth

public void setModifiedWidth(int w)

getColumnIndexAtX

public int getColumnIndexAtX(int x)
We had to implement our own column indexer because the one in ColumnModel was not working for the right hand edge of the last column. I do not know why, but I am sure that it was related to the margin, since the "error" seemed to increase with the number of columns.

Specified by:
getColumnIndexAtX in interface javax.swing.table.TableColumnModel
Overrides:
getColumnIndexAtX in class javax.swing.table.DefaultTableColumnModel

getTotalColumnWidth

public int getTotalColumnWidth()
We had to implement our own column sizer because the one in ColumnModel was not working for the right hand edge of the last column. I do not know why, but I am sure that it was related to the margin, since the "error" seemed to increase with the number of columns.

Specified by:
getTotalColumnWidth in interface javax.swing.table.TableColumnModel
Overrides:
getTotalColumnWidth in class javax.swing.table.DefaultTableColumnModel


Copyright © 1997-2003, Timothy G. Endres, All Rights Reserved.