|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel org.bibalex.daf.handlers.dbhandler.DataTable org.bibalex.daf.commongui.datamodels.UIDataTable org.bibalex.daf.commongui.datamodels.AppendedUIDataTable
public class AppendedUIDataTable
A class used to append Some Columns to an existing data Table for display purposes.
Field Summary | |
---|---|
protected java.util.ArrayList<java.lang.Object[]> |
appendedColumns
Maintains the appended Columns, each Column is and ArrayList of Objects. |
protected java.util.ArrayList<java.lang.String> |
appendedColumnsNames
Maintains the appended Columns Names. |
Fields inherited from class org.bibalex.daf.commongui.datamodels.UIDataTable |
---|
colID, isColumnEditable, isColumnVisible, uiColumnsNames, visibleColumnsCount |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
AppendedUIDataTable(DataTable dataTable)
Default constructor, calls super constructor. |
|
AppendedUIDataTable(DataTable dataTable,
int colID)
Constructor, calls super constructor. |
Method Summary | |
---|---|
void |
addColumn(java.lang.String appendedColumnName)
Appends a column to the Table Model. |
int |
getColumnCount()
Returns the Original Column Count + the appended one. |
java.lang.String |
getColumnName(int col)
Retreives the column name, if from the original ones, calls the super class, else retreives from its own values. |
java.lang.Object |
getValueAt(int row,
int col)
Retrieves the Value Object at the Given Row and Column. |
boolean |
isCellEditable(int row,
int col)
Indicates whether the specified cell is editable or not, used by the JTable drawing methods. |
void |
setValueAt(java.lang.Object value,
int row,
int col)
Set the value of an object in the data table given the row and col. |
Methods inherited from class org.bibalex.daf.commongui.datamodels.UIDataTable |
---|
getActualColumnIndex, getColumnClass, getIDAt, getIndexOf, getIndexOfID, getRowCount, setColumnClass, setColumnEditable, setColumnVisible, setUIColumnName |
Methods inherited from class org.bibalex.daf.handlers.dbhandler.DataTable |
---|
addRow, addRow, addRowAt, addRowAt, deleteRow, elementAt, elementAt, ExportToExcel, getDynamicColumnIndices, getNameOfColumn, getNoOfColumns, getNoOfRows, getRow, setArchivingMatrix, setDynamicColumnIndices, setDynamicTable, setNameOfColumn, setNoOfColumn |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.ArrayList<java.lang.String> appendedColumnsNames
protected java.util.ArrayList<java.lang.Object[]> appendedColumns
Constructor Detail |
---|
public AppendedUIDataTable(DataTable dataTable)
dataTable
- DataTable to generate the Super DataModel.public AppendedUIDataTable(DataTable dataTable, int colID)
dataTable
- DataTable to generate the Super DataModel.colID
- The Column Considered as DataTable Itentifier.Method Detail |
---|
public void addColumn(java.lang.String appendedColumnName)
appendedColumnName
- The Name of the Appended Column.public java.lang.String getColumnName(int col)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class UIDataTable
col
- The column ID to retrieve the name for.
public java.lang.Object getValueAt(int row, int col)
getValueAt
in interface javax.swing.table.TableModel
getValueAt
in class UIDataTable
row
- The row index.col
- The col index.
public void setValueAt(java.lang.Object value, int row, int col)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class UIDataTable
value
- The value to be setrow
- The row index (0 - based).col
- The column index.public boolean isCellEditable(int row, int col)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class UIDataTable
row
- The row coordinate of the cell.col
- The column coordinate of the cell.
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
getColumnCount
in class UIDataTable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |