public class TwoDimensionalValueObjectTableModel
extends javax.swing.table.AbstractTableModel
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cvsRev |
Constructor and Description |
---|
TwoDimensionalValueObjectTableModel(TwoDimensionalValueObject twoDimensionalValueObject) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
getColumnClass(int col)
Returns the values from the 2DValueObject, or zero if the value is null.
|
int |
getColumnCount()
Returns the number of columns in the 2DValueObject, or zero if the value is null.
|
java.lang.String |
getColumnName(int column)
Returns the values from the 2DValueObject, or zero if the value is null.
|
int[] |
getHiddenColumns()
Returns the current list of hidden columns.
|
TwoDimensionalValueObject |
getModelValueObject() |
int |
getRowCount()
Returns the number of rows in the 2DValueObject, or zero if the value is null.
|
java.lang.Object |
getValueAt(int row,
int col)
Returns the value from the 2DValueObject, or zero if the value is null.
|
ValueObjectInterface |
getValueObjectAt(int row,
int col)
Returns the value from the 2DValueObject, or zero if the value is null.
|
boolean |
isCellEditable(int row,
int col)
Returns false.
|
void |
setHiddenColumns(int[] columnsToHide)
Hide the columns of the value object from the table, but keep the original value object available for changes
and make changes to either value object reflect in the other object.
|
void |
setValueAt(java.lang.Object aValue,
int row,
int column)
Set the value of the TwoDimensionalValueObject at the row and column specified.
|
void |
setValueObjectAt(ValueObjectInterface aValue,
int row,
int column)
Set the value of the TwoDimensionalValueObject at the row and column specified.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public static final java.lang.String cvsRev
public TwoDimensionalValueObjectTableModel(TwoDimensionalValueObject twoDimensionalValueObject)
public java.lang.Class getColumnClass(int col)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
public int getColumnCount()
public java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public int[] getHiddenColumns()
public TwoDimensionalValueObject getModelValueObject()
public int getRowCount()
public java.lang.Object getValueAt(int row, int col)
public ValueObjectInterface getValueObjectAt(int row, int col)
row
- the row to returncol
- the column in the original value object.public boolean isCellEditable(int row, int col)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public void setHiddenColumns(int[] columnsToHide)
columnsToHide
- an array of zero-based column numbers that will be hidden.public void setValueAt(java.lang.Object aValue, int row, int column)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
public void setValueObjectAt(ValueObjectInterface aValue, int row, int column)
row
- the row to returncol
- the column in the original value object.Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.