ModelTableCellValueConverter.java :  » Testing » UISpec4J » org » uispec4j » Java Open Source

Java Open Source » Testing » UISpec4J 
UISpec4J » org » uispec4j » ModelTableCellValueConverter.java
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;
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.