Class symantec.itools.db.beans.binding.TableBindingModel
All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class symantec.itools.db.beans.binding.TableBindingModel
Object
   |
   +----AbstractDocument
           |
           +----PlainDocument
                   |
                   +----BindingModel
                           |
                           +----symantec.itools.db.beans.binding.TableBindingModel
  -  public class TableBindingModel
  
-  extends BindingModel
  
  
  -  
	symantec.itools.db.beans.binding.TableBindingModel. ColumnSorter
   -    
 -  
	symantec.itools.db.beans.binding.TableBindingModel. SortAlgorithm
   -  
 
  
  -  
	PROP_COLUMN_ATTRIBUTES
   -    
 -  
	columnAttributes
   -    
 -  
	tableColumnModel
   -  
 
  
  -  
	symantec.itools.db.beans.binding.TableBindingModel()
   -  
 
  
  -  
	addColumnSorter(TableBindingModel. ColumnSorter)
   -    
 -  
	addMouseListenerToTableHeader()
   -    
 -  
	compare(int, int)
   -    
 -  
	getColumnAttributes()
   -    Returns an array of ColumnAttributes which represents the table columns' properties.
  
 -  
	getColumnAttributes(int)
   -   Returns a table column's attributes.
  
 -  
	getRealRowNumber(int)
   -    
 -  
	getSortedRowNumber(int)
   -    
 -  
	getTable()
   -    
 -  
	getTableBinding()
   -    
 -  
	getValueAt(int, int)
   -    
 -  
	isCellEditable(int, int)
   -    Overrides TableModel's isCellEditable method.
  
 -  
	setColumnAttributes(ColumnAttributes[])
   -    Sets table columns attributes.
  
 -  
	setColumnAttributes(int, ColumnAttributes)
   -    Sets a table column's attributes.
  
 -  
	setSortAlgorithm(TableBindingModel. SortAlgorithm)
   -    
 -  
	setTable(JTable)
   -    
 -  
	setTableBinding(String)
   -    
 -  
	setValueAt(Object, int, int)
   -    
 -  
	sort()
   -  Sort _indexes by comparing the rows they're "pointing" to on
the basis of the columns in _sortingColumns and in the direction
indicated by _ascending.
 
  
PROP_COLUMN_ATTRIBUTES
public static final java.lang.String PROP_COLUMN_ATTRIBUTES
columnAttributes
protected symantec.itools.db.beans.binding.ColumnAttributes[] columnAttributes
tableColumnModel
protected com.sun.java.swing.table.TableColumnModel tableColumnModel
  
TableBindingModel
public TableBindingModel()
  
addColumnSorter
public void addColumnSorter(TableBindingModel.ColumnSorter cs)
addMouseListenerToTableHeader
protected void addMouseListenerToTableHeader()
compare
public int compare(int row1,
                   int row2)
getColumnAttributes
public symantec.itools.db.beans.binding.ColumnAttributes[] getColumnAttributes()
  -  Returns an array of ColumnAttributes which represents the table columns' properties.
  
 
 
getColumnAttributes
public symantec.itools.db.beans.binding.ColumnAttributes getColumnAttributes(int index)
  -  Returns a table column's attributes. This is just a convenience method.
  
 
 
getRealRowNumber
protected int getRealRowNumber(int realRowNumber)
 
    -  Overrides:
    
 -  getRealRowNumber in class BindingModel
  
 
 
getSortedRowNumber
protected int getSortedRowNumber(int sortedRowNumber)
 
    -  Overrides:
    
 -  getSortedRowNumber in class BindingModel
  
 
 
getTable
public com.sun.java.swing.JTable getTable()
getTableBinding
public java.lang.String getTableBinding()
getValueAt
public java.lang.Object getValueAt(int aRow,
                                   int aColumn)
 
    -  Overrides:
    
 -  getValueAt in class BindingModel
  
 
 
isCellEditable
public boolean isCellEditable(int row,
                              int col)
  -  Overrides TableModel's isCellEditable method. Returns whether or not a column is editable. The
  method returns true if no column attributes are set.
  
 
 
    -  Returns:
    
 -  true if the given cell is editable.
    
 -  Overrides:
    
 -  isCellEditable in class BindingModel
  
 
 
 
setColumnAttributes
public void setColumnAttributes(ColumnAttributes[] columnAttributes)
  -  Sets table columns attributes. The length of the array should be
  equal to the number of columns.
  
  Warning: This method sets the AutoCreateColumnsFromModel property of JTable to false
  and creates a table column model which is an unstance of symantec.itools.db.beans.binding.DBColumnModel
  
 
 
setColumnAttributes
public void setColumnAttributes(int index,
                                ColumnAttributes vp)
  -  Sets a table column's attributes. This is just a convenience method.
  
 
 
setSortAlgorithm
public void setSortAlgorithm(TableBindingModel.SortAlgorithm sa)
setTable
public void setTable(JTable table)
setTableBinding
public void setTableBinding(String binding)
setValueAt
public void setValueAt(Object aValue,
                       int aRow,
                       int aColumn)
 
    -  Overrides:
    
 -  setValueAt in class BindingModel
  
 
 
sort
protected void sort()
  -  Sort _indexes by comparing the rows they're "pointing" to on
the basis of the columns in _sortingColumns and in the direction
indicated by _ascending.
  
 
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index