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, removeTableModelListenerpublic static final java.lang.String cvsRev
public TwoDimensionalValueObjectTableModel(TwoDimensionalValueObject twoDimensionalValueObject)
public java.lang.Class getColumnClass(int col)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelpublic int getColumnCount()
public java.lang.String getColumnName(int column)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelpublic 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.TableModelisCellEditable in class javax.swing.table.AbstractTableModelpublic 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.TableModelsetValueAt in class javax.swing.table.AbstractTableModelpublic 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.