pt.despodata.java.ddata.table
Class DDataTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended bypt.despodata.java.ddata.table.DDataTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class DDataTableModel
extends javax.swing.table.AbstractTableModel

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
DDataTableModel()
           
 
Method Summary
 void addColumn(java.lang.Object id)
          Adiciona coluna a tabela
 void addColumn(java.lang.Object id, java.lang.Object[] data)
           
 void addColumn(java.lang.Object id, java.util.Vector data)
           
 void addDDataTableListener(DDataTableListener l)
          Listener que dispara depois de se sair de uma celula
 void addRow(java.util.Vector row)
           
protected  void fireCell(DDataTableEvent evento, byte tipo)
          Dispara o evento ao sair de uma celula
 CellProperties getCellProperties(int row, int col)
          devolve as propriedades de uma celula
 int getColumnCount()
           
 java.lang.String getColumnName(int column)
           
 pt.despodata.java.ddata.table.DDataTableModel.SortRows getDefaultSortMethod()
           
 int getRowCount()
           
 DDataTableSortMethod getSortMethod()
           
 java.lang.Object getValueAt(int row, int column)
           
 void insertRow(int row, java.util.Vector _rowsData)
           
 boolean isCellEditable(int row, int column)
           
 void removeColumn(int column)
           
 void removeDDataTableListener(DDataTableListener l)
           
 void removeRow(int row)
           
 void reOrderData(java.lang.Object[] dataArray)
           
 void setCellProperties(int row, int col, CellProperties _properties)
          Define as propriedades da celula
 void setSortMethod(DDataTableSortMethod comp)
           
 void setValueAt(java.lang.Object value, int row, int column)
          Modifica valor na tabela
 java.lang.Object[] sortData(int column)
           
 boolean validateCell(java.lang.Object value, int row, int column)
          Metodo onde verifica as validações e dispara um evento caso a validação
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDataTableModel

public DDataTableModel()
Method Detail

getColumnName

public java.lang.String getColumnName(int column)

getRowCount

public int getRowCount()

getColumnCount

public int getColumnCount()

getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)

isCellEditable

public boolean isCellEditable(int row,
                              int column)

setValueAt

public void setValueAt(java.lang.Object value,
                       int row,
                       int column)
Modifica valor na tabela


setCellProperties

public void setCellProperties(int row,
                              int col,
                              CellProperties _properties)
Define as propriedades da celula


getCellProperties

public CellProperties getCellProperties(int row,
                                        int col)
devolve as propriedades de uma celula


addColumn

public void addColumn(java.lang.Object id)
Adiciona coluna a tabela


addColumn

public void addColumn(java.lang.Object id,
                      java.lang.Object[] data)

addColumn

public void addColumn(java.lang.Object id,
                      java.util.Vector data)

removeColumn

public void removeColumn(int column)

addRow

public void addRow(java.util.Vector row)

removeRow

public void removeRow(int row)

insertRow

public void insertRow(int row,
                      java.util.Vector _rowsData)

sortData

public java.lang.Object[] sortData(int column)

reOrderData

public void reOrderData(java.lang.Object[] dataArray)

validateCell

public boolean validateCell(java.lang.Object value,
                            int row,
                            int column)
Metodo onde verifica as validações e dispara um evento caso a validação


addDDataTableListener

public void addDDataTableListener(DDataTableListener l)
Listener que dispara depois de se sair de uma celula


removeDDataTableListener

public void removeDDataTableListener(DDataTableListener l)

fireCell

protected void fireCell(DDataTableEvent evento,
                        byte tipo)
Dispara o evento ao sair de uma celula


getDefaultSortMethod

public pt.despodata.java.ddata.table.DDataTableModel.SortRows getDefaultSortMethod()

setSortMethod

public void setSortMethod(DDataTableSortMethod comp)

getSortMethod

public DDataTableSortMethod getSortMethod()