treecellvalueconverter.java

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

JAVA
30
字号
package org.uispec4j;

import java.awt.*;

/**
 * Performs a conversion between internal and tested cell values in a {@link Tree} component
 *
 * @see Tree#setCellValueConverter
 */
public interface TreeCellValueConverter {

  /**
   * Returns the textual representation of the given tree object
   *
   * @param renderedComponent the Component returned by the JTree's renderer
   * @param modelObject       the Object returned by the JTree's internal model
   */
  String getValue(Component renderedComponent, Object modelObject);

  /**
   * Indicates whether the given tree object is painted in bold
   */
  boolean isBold(Component renderedComponent, Object modelObject);

  /**
   * Returns the foreground color used in the representation of the object
   */
  Color getForeground(Component renderedComponent, Object modelObject);
}

⌨️ 快捷键说明

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