public class AttributeListTableModel
extends javax.swing.table.AbstractTableModel
The AttributeListTableModel
class extends a
AbstractTableModel
to abstract the contents of a list of attributes as
a single row table in order to provide support for a AttributeListTableBrowser
.
For details of some of the methods implemented here see javax.swing.table.AbstractTableModel
.
Modifier and Type | Field and Description |
---|---|
protected int |
columnCount |
protected java.lang.String[] |
columnNames |
protected java.lang.Object[][] |
data |
protected java.util.HashSet |
excludeList |
protected java.util.HashSet |
includeList |
protected int |
rowCount |
Constructor and Description |
---|
AttributeListTableModel()
Construct an empty table model.
|
AttributeListTableModel(AttributeList list)
Construct the table model from an attribute list.
|
AttributeListTableModel(AttributeList list,
java.util.HashSet includeList,
java.util.HashSet excludeList)
Construct the table model from an attribute list.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnCount() |
java.lang.String |
getColumnName(int col) |
int |
getRowCount() |
java.lang.Object |
getValueAt(int row,
int col) |
void |
initializeModelFromAttributeList(AttributeList list)
Populate the table model from an attribute list.
|
protected boolean |
isAcceptable(java.util.HashSet includeList,
java.util.HashSet excludeList,
AttributeTag t,
byte[] vr)
Is an attribute acceptable for inclusion?
|
boolean |
isCellEditable(int row,
int col) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
protected int columnCount
protected int rowCount
protected java.lang.String[] columnNames
protected java.lang.Object[][] data
protected java.util.HashSet includeList
protected java.util.HashSet excludeList
public AttributeListTableModel()
Construct an empty table model.
public AttributeListTableModel(AttributeList list)
Construct the table model from an attribute list.
list
- the list of attributes whose values to usepublic AttributeListTableModel(AttributeList list, java.util.HashSet includeList, java.util.HashSet excludeList)
Construct the table model from an attribute list.
list
- the list of attributes whose values to useincludeList
- attributes to includeexcludeList
- attributes to excludeprotected boolean isAcceptable(java.util.HashSet includeList, java.util.HashSet excludeList, AttributeTag t, byte[] vr)
Is an attribute acceptable for inclusion?
Attributes with a VR of SQ, OB, OW and private tags are always excluded.
includeList
- the list of attributes to includeexcludeList
- the list of attributes to excludet
- the tag of the attribute to testvr
- the VR of the attribute to testpublic void initializeModelFromAttributeList(AttributeList list)
Populate the table model from an attribute list.
list
- the attributes whose values to usepublic int getColumnCount()
public int getRowCount()
public java.lang.Object getValueAt(int row, int col)
row
- col
- public boolean isCellEditable(int row, int col)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
row
- col
- public java.lang.String getColumnName(int col)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
col
-