modeltablecellvalueconverter.java

来自「基于Junit的 功能和单元测试的的测试工具。只支持Swing.」· Java 代码 · 共 17 行

JAVA
17
字号
package org.uispec4j;

import java.awt.*;

/** Converter that returns the object managed by the underlying JTable's model. This is to be used sparingly since
 * it can disclose the application's internals, and you probably want the tests to be as independent as possible
 * from the implementation.
 */
public class ModelTableCellValueConverter implements TableCellValueConverter {

  public static final TableCellValueConverter INSTANCE = new ModelTableCellValueConverter();

  public Object getValue(int row, int column, Component renderedComponent, Object modelObject) {
    return modelObject;
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?