Package com.pixelmed.dicom
Class AttributeListTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
com.pixelmed.dicom.AttributeListTableModel
- All Implemented Interfaces:
Serializable
,TableModel
- Direct Known Subclasses:
AttributeListFunctionalGroupsTableModel
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
.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected String[]
protected Object[][]
protected HashSet
protected HashSet
protected int
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct an empty table model.Construct the table model from an attribute list.AttributeListTableModel
(AttributeList list, HashSet includeList, HashSet excludeList) Construct the table model from an attribute list. -
Method Summary
Modifier and TypeMethodDescriptionint
getColumnName
(int col) int
getValueAt
(int row, int col) void
Populate the table model from an attribute list.protected boolean
isAcceptable
(HashSet includeList, HashSet excludeList, AttributeTag t, byte[] vr) Is an attribute acceptable for inclusion?boolean
isCellEditable
(int row, int col) Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
-
Field Details
-
columnCount
protected int columnCount -
rowCount
protected int rowCount -
columnNames
-
data
-
includeList
-
excludeList
-
-
Constructor Details
-
AttributeListTableModel
public AttributeListTableModel()Construct an empty table model.
-
AttributeListTableModel
Construct the table model from an attribute list.
- Parameters:
list
- the list of attributes whose values to use
-
AttributeListTableModel
Construct the table model from an attribute list.
- Parameters:
list
- the list of attributes whose values to useincludeList
- attributes to includeexcludeList
- attributes to exclude
-
-
Method Details
-
isAcceptable
Is an attribute acceptable for inclusion?
Attributes with a VR of SQ, OB, OW and private tags are always excluded.
- Parameters:
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 test- Returns:
- true if attribute is acceptable for inclusion
-
initializeModelFromAttributeList
Populate the table model from an attribute list.
- Parameters:
list
- the attributes whose values to use
-
getColumnCount
public int getColumnCount() -
getRowCount
public int getRowCount() -
getValueAt
-
isCellEditable
public boolean isCellEditable(int row, int col) - Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
-
getColumnName
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-