01: package org.uispec4j;
02:
03: import java.awt.*;
04:
05: /** Converter that returns the object managed by the underlying JTable's model. This is to be used sparingly since
06: * it can disclose the application's internals, and you probably want the tests to be as independent as possible
07: * from the implementation.
08: */
09: public class ModelTableCellValueConverter implements
10: TableCellValueConverter {
11:
12: public static final TableCellValueConverter INSTANCE = new ModelTableCellValueConverter();
13:
14: public Object getValue(int row, int column,
15: Component renderedComponent, Object modelObject) {
16: return modelObject;
17: }
18: }
|