public final native String getValueString(int rowIndex, int columnIndex) /*-{
return this.getValue(rowIndex, columnIndex);
}-*/;
public final TimeOfDay getValueTimeOfDay(int rowIndex, int columnIndex) {
JsArrayInteger jsArray = getValueArrayInteger(rowIndex, columnIndex);
if (jsArray == null) {
return null;
}
TimeOfDay result = new TimeOfDay();
try {
result.setHour(jsArray.get(0));
result.setMinute(jsArray.get(1));
result.setSecond(jsArray.get(2));
result.setMillisecond(jsArray.get(3));
} catch (BadTimeException e) {
// this should never happen, because setValue should catch an invalid
// time of day
throw new RuntimeException("Invalid time of day.");
}