gov.nasa.gsfc.drl.rtstps.viewer.tables
Class DataItem

java.lang.Object
  extended by gov.nasa.gsfc.drl.rtstps.viewer.tables.DataItem
All Implemented Interfaces:
StatusListener

final class DataItem
extends java.lang.Object
implements StatusListener

This class represents one cell in a status table model. It listens for status updates from the distributor.


Field Summary
private  int column
           
private  java.lang.String fullId
           
private  int row
           
private  javax.swing.table.AbstractTableModel tableModel
           
private  java.lang.String value
           
 
Constructor Summary
DataItem(int row, int column, java.lang.String fullId, javax.swing.table.AbstractTableModel tm)
          Create a data item at a particular row and column cell.
 
Method Summary
(package private)  java.lang.String getFullId()
          Get the full name for the status item.
 void processStatusItem(StatusItem item, java.lang.String fullName)
          Receive a status update.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fullId

private final java.lang.String fullId

column

private final int column

row

private final int row

value

private java.lang.String value

tableModel

private javax.swing.table.AbstractTableModel tableModel
Constructor Detail

DataItem

DataItem(int row,
         int column,
         java.lang.String fullId,
         javax.swing.table.AbstractTableModel tm)
Create a data item at a particular row and column cell.

Parameters:
row - row number
column - column number
fullId - the full name of the status item
tm - the table model
Method Detail

getFullId

final java.lang.String getFullId()
Get the full name for the status item.


toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object

processStatusItem

public void processStatusItem(StatusItem item,
                              java.lang.String fullName)
Receive a status update.

Specified by:
processStatusItem in interface StatusListener