awips2/nativeLib/ohd.fcstservice/src/ohd/hseb/fcstservice/WatSupMethodJTableRowData.java
root 8e80217e59 Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: a02aeb236c [formerly 9f19e3f712] [formerly 06a8b51d6d [formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]
Former-commit-id: 06a8b51d6d
Former-commit-id: 3360eb6c5f
2012-01-06 08:55:05 -06:00

57 lines
1.3 KiB
Java
Executable file

package ohd.hseb.fcstservice;
import ohd.hseb.util.gui.jtable.*;
import ohd.hseb.ihfsdb.generated.*;
public class WatSupMethodJTableRowData extends AbstractJTableRowData
{
private String watsupMethod;
private String missingRep = null;
public WatSupMethodJTableRowData()
{
}
public WatSupMethodJTableRowData(String missingRepresentation)
{
//setMissingRepresentation(missingRepresentation);
missingRep = missingRepresentation;
}
/* public String toString()
{
String str = getWatsupMethod();
return str;
}
public int compare(String columnName, JTableRowData rowData)
{
int ret = 0;
WatSupMethodJTableRowData watsupMethodRecord = (WatSupMethodJTableRowData) rowData;
if(columnName.equals("Wat Sup Method"))
ret = compareStrings(getWatsupMethod(), watsupMethodRecord.getWatsupMethod());
return ret;
}
public String getDataValue(String columnName)
{
String dataValue = null;
if(columnName.equals("Wat Sup Method"))
dataValue = getStringValue(getWatsupMethod());
return dataValue;
}
*/
public void addAllCellsToMap()
{
addCell(new BaseTableCell("Wat Sup Method", CellType.STRING, getWatsupMethod(), missingRep));
}
public String getWatsupMethod() {
return watsupMethod;
}
public void setWatsupMethod(String watsupMethod) {
this.watsupMethod = watsupMethod;
}
}