⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 treecellvalueconverter.java

📁 基于Junit的 功能和单元测试的的测试工具。只支持Swing.
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -