模块 java.desktop

接口 RowMapper

所有已知的实现类:
AbstractLayoutCache , FixedHeightLayoutCache , VariableHeightLayoutCache

public interface RowMapper
定义将树中的路径转换为显示行的对象的要求。
  • 方法总结

    修饰符和类型
    方法
    描述
    int[]
    返回显示 path 中的 TreePath 实例的行。
  • 方法详情

    • getRowsForPaths

      int[] getRowsForPaths(TreePath [] path)
      返回显示 path 中的 TreePath 实例的行。接收器应返回一个与传入的长度相同的数组,如果 path 中的 TreePaths 之一无效,则应将其在数组中的条目设置为 -1。
      参数:
      path - 要解析的 TreePath 数组
      返回:
      path 中的 TreePath 实例显示的行