}
protected void updateMSvalues() {
try {
if (dataSource instanceof MultiStampedDataSource) {
MultiStampedDataSource jds = (MultiStampedDataSource) dataSource;
if (jds.getTime() != null) {
Number time = (Number) jds.getTime().getValue(jds.getLastIndex());
tfTime1.setText(TimeStampedDataSourceInformation.dateTimeFormatter
.format(new Date(time.longValue())));
}
if (jds.getRaw() != null) {
Long raw = new Long(jds.getRaw().getLongValue(jds.getLastIndex()));
tfRaw.setText(raw.toString());
}
Object value = jds.getValue(jds.getLastIndex());
tfPhysical.setText(value.toString());
if (jds.getLabel() != null) {
String label = (String) jds.getLabel().getValue(jds.getLastIndex());
tfLabel.setText(String.valueOf(label));
}
if (jds.getStatus() != null) {
Integer valueNumber = new Integer(((Long) jds.getStatus().getValue(jds.getLastIndex())).intValue());
tfStatus.setText(valueNumber.toString());
}
}
} catch (DataException e) {
}