public final class TagTableModel extends javax.swing.table.AbstractTableModel
PointInTimeType.REFERENCE_POINT_IN_TIME
or PointInTimeType.CURRENT_POINT_IN_TIME
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.String> |
keys |
private HistoryBrowserModel |
model |
private PointInTimeType |
pointInTimeType |
Constructor and Description |
---|
TagTableModel(HistoryBrowserModel historyModel,
PointInTimeType type)
Constructs a new
TagTableModel . |
Modifier and Type | Method and Description |
---|---|
int |
getColumnCount() |
java.lang.String |
getKeyAt(int row)
Get the key for the given row.
|
java.lang.String |
getOppositeValue(java.lang.String key)
Returns the tag value in the opposite point in time for the given key.
|
PointInTimeType |
getPointInTimeType()
Returns the type of point in time.
|
int |
getRowCount() |
java.lang.String |
getValue(java.lang.String key)
Returns the tag value for the given key.
|
java.lang.Object |
getValueAt(int row,
int column) |
boolean |
hasSameValueAsOpposite(java.lang.String key)
Determines if the tag value is the same in the opposite point in time for the given key.
|
boolean |
hasTag(java.lang.String key)
Determines if a tag exists for the given key.
|
(package private) void |
initKeyList() |
boolean |
isCurrentPointInTime()
Determines if this is the current point in time.
|
boolean |
isReferencePointInTime()
Determines if this is the reference point in time.
|
boolean |
oppositeHasTag(java.lang.String key)
Determines if a tag exists in the opposite point in time for the given key.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
private java.util.List<java.lang.String> keys
private final PointInTimeType pointInTimeType
private final HistoryBrowserModel model
public TagTableModel(HistoryBrowserModel historyModel, PointInTimeType type)
TagTableModel
.historyModel
- parent HistoryBrowserModel
type
- type of point in timevoid initKeyList()
public int getRowCount()
public java.lang.Object getValueAt(int row, int column)
public java.lang.String getKeyAt(int row)
row
- The rowpublic boolean hasTag(java.lang.String key)
key
- tag keytrue
if a tag exists for the given keypublic java.lang.String getValue(java.lang.String key)
key
- tag keypublic boolean oppositeHasTag(java.lang.String key)
key
- tag keytrue
if a tag exists for the given keypublic java.lang.String getOppositeValue(java.lang.String key)
key
- tag keypublic boolean hasSameValueAsOpposite(java.lang.String key)
key
- tag keytrue
if the tag value is the same in the opposite point in time for the given keypublic PointInTimeType getPointInTimeType()
public boolean isCurrentPointInTime()
true
if this is the current point in timepublic boolean isReferencePointInTime()
true
if this is the reference point in timepublic int getColumnCount()