|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
com.pixelmed.dicom.AttributeListTableModel
public class AttributeListTableModel
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.
| Field Summary | |
|---|---|
protected int |
columnCount
|
protected String[] |
columnNames
|
protected Object[][] |
data
|
protected HashSet |
excludeList
|
protected HashSet |
includeList
|
protected int |
rowCount
|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
AttributeListTableModel()
Construct an empty table model. |
|
AttributeListTableModel(AttributeList list)
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 | |
|---|---|
int |
getColumnCount()
|
String |
getColumnName(int col)
|
int |
getRowCount()
|
Object |
getValueAt(int row,
int col)
|
void |
initializeModelFromAttributeList(AttributeList list)
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int columnCount
protected int rowCount
protected String[] columnNames
protected Object[][] data
protected HashSet includeList
protected HashSet excludeList
| Constructor Detail |
|---|
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 use
public AttributeListTableModel(AttributeList list,
HashSet includeList,
HashSet excludeList)
Construct the table model from an attribute list.
list - the list of attributes whose values to useincludeList - attributes to includeexcludeList - attributes to exclude| Method Detail |
|---|
protected boolean isAcceptable(HashSet includeList,
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 Object getValueAt(int row,
int col)
row - col -
public boolean isCellEditable(int row,
int col)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelrow - col - public String getColumnName(int col)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelcol -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||