edu.jhu.tmaj.client.arraybuilder.data
Class ArrayCoreCell

java.lang.Object
  extended by edu.jhu.tmaj.client.arraybuilder.data.ArrayCoreCell

public final class ArrayCoreCell
extends java.lang.Object

A cell in the JTable. This class is essentially an ArrayCoreRep, with extras like isSelected, that will determine how the Renderer displays the color.


Field Summary
static java.lang.String DETAILS_SAMPLE_TEXT
           
static java.lang.String NORMAL_SAMPLE_TEXT
           
 
Constructor Summary
ArrayCoreCell(ArrayCoreRep arrayCoreRep, ArrayCoreReferenceBean arrayCoreReferenceBean, CellLinesReferenceBean cellLinesReferenceBean)
           
 
Method Summary
 ArrayCoreRep getArrayCoreBean()
           
 java.lang.String getControlName()
           
 Coordinate getCoordinate()
           
 java.lang.String getStringRepresentation(CellView cellView)
          Returns the Control-Name is isControl(), and the TissueDiagnosisID if it is a regular ArrayCore.
 int getTissueDiagnosisID()
           
 boolean isControl()
          Returns true if the user has designated this ArrayCoreCell as a control.
 boolean isSelected()
          Returns true if the user has selected this cell.
 void setSelected(boolean isSelected)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NORMAL_SAMPLE_TEXT

public static final java.lang.String NORMAL_SAMPLE_TEXT
See Also:
Constant Field Values

DETAILS_SAMPLE_TEXT

public static final java.lang.String DETAILS_SAMPLE_TEXT
See Also:
Constant Field Values
Constructor Detail

ArrayCoreCell

public ArrayCoreCell(ArrayCoreRep arrayCoreRep,
                     ArrayCoreReferenceBean arrayCoreReferenceBean,
                     CellLinesReferenceBean cellLinesReferenceBean)
Method Detail

getTissueDiagnosisID

public int getTissueDiagnosisID()

isControl

public boolean isControl()
Returns true if the user has designated this ArrayCoreCell as a control.


getControlName

public java.lang.String getControlName()

getStringRepresentation

public java.lang.String getStringRepresentation(CellView cellView)
Returns the Control-Name is isControl(), and the TissueDiagnosisID if it is a regular ArrayCore.


isSelected

public boolean isSelected()
Returns true if the user has selected this cell.


setSelected

public void setSelected(boolean isSelected)

getCoordinate

public Coordinate getCoordinate()

getArrayCoreBean

public ArrayCoreRep getArrayCoreBean()

toString

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