/* (non-Javadoc)
  * @see org.eclipse.nebula.widgets.nattable.data.IColumnAccessor#getDataValue(java.lang.Object, int)
  */
 public Object getDataValue(NumberValues rowObject, int columnIndex) {
   switch (columnIndex) {
     case 0:
       return rowObject.getColumnOneNumber();
     case 1:
       return rowObject.getColumnTwoNumber();
     case 2:
       return rowObject.getColumnThreeNumber();
     case 3: // calculate the sum
       return rowObject.getColumnTwoNumber() + rowObject.getColumnThreeNumber();
     case 4: // calculate the percentage
       return new Double(rowObject.getColumnTwoNumber() + rowObject.getColumnThreeNumber())
           / rowObject.getColumnOneNumber();
   }
   return null;
 }
 /* (non-Javadoc)
  * @see org.eclipse.nebula.widgets.nattable.data.IColumnAccessor#getDataValue(java.lang.Object, int)
  */
 @Override
 public Object getDataValue(NumberValues rowObject, int columnIndex) {
   switch (columnIndex) {
     case 0:
       return rowObject.getColumnOneNumber();
     case 1:
       return rowObject.getColumnTwoNumber();
     case 2:
       return rowObject.getColumnThreeNumber();
   }
   return null;
 }