org.netbeans.swing.outline.Outline.convertColumnIndexToModel()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(99)

本文整理了Java中org.netbeans.swing.outline.Outline.convertColumnIndexToModel()方法的一些代码示例,展示了Outline.convertColumnIndexToModel()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Outline.convertColumnIndexToModel()方法的具体详情如下:
包路径:org.netbeans.swing.outline.Outline
类名称:Outline
方法名:convertColumnIndexToModel

Outline.convertColumnIndexToModel介绍

暂无

代码示例

代码示例来源:origin: in.jlibs/org-netbeans-swing-outline

boolean isTreeColumnIndex (int column) {
  int c = convertColumnIndexToModel(column);
  return c == 0;
}

代码示例来源:origin: in.jlibs/org-netbeans-swing-outline

/** Always returns the default renderer for Object.class for the tree column */
@Override
public TableCellRenderer getCellRenderer(int row, int column) {
  int c = convertColumnIndexToModel(column);
  TableCellRenderer result;
  if (c == 0) {
    result = getDefaultRenderer(Object.class);
  } else {
    result = super.getCellRenderer(row, column);
  }
  return result;
}

代码示例来源:origin: digital-preservation/droid

int colIndex = resultsOutline.columnAtPoint(mousePoint);
int rowIndex = resultsOutline.rowAtPoint(mousePoint);
int colModelIndex = resultsOutline.convertColumnIndexToModel(resultsOutline.columnAtPoint(mousePoint));

代码示例来源:origin: uk.gov.nationalarchives/droid-ui

int colIndex = resultsOutline.columnAtPoint(mousePoint);
int rowIndex = resultsOutline.rowAtPoint(mousePoint);
int colModelIndex = resultsOutline.convertColumnIndexToModel(resultsOutline.columnAtPoint(mousePoint));

代码示例来源:origin: digital-preservation/droid

/**
   * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
   */
  @Override
  public void mouseClicked(MouseEvent e) {
    Point mousePoint = e.getPoint();
    int colIndex = resultsOutline.columnAtPoint(mousePoint);
    int rowIndex = resultsOutline.rowAtPoint(mousePoint);
    int colModelIndex = resultsOutline.convertColumnIndexToModel(resultsOutline.columnAtPoint(mousePoint));
    if (colModelIndex == OutlineColumn.IDENTIFICATION_COUNT.ordinal() + 1) {
      DirectoryComparableLong count = (DirectoryComparableLong) resultsOutline
        .getValueAt(rowIndex, colIndex);
      if (count != null && count.getSource() != null && count.getSource() > 1) {
        int rowModelIndex = resultsOutline.convertRowIndexToModel(rowIndex);
        DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode) mdl.getValueAt(rowModelIndex, 0);
        ProfileResourceNode node = (ProfileResourceNode) treeNode.getUserObject();
        multiIdentificationDialog.showDialog(node);
      }
    }
  }
}

代码示例来源:origin: uk.gov.nationalarchives/droid-ui

/**
   * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
   */
  @Override
  public void mouseClicked(MouseEvent e) {
    Point mousePoint = e.getPoint();
    int colIndex = resultsOutline.columnAtPoint(mousePoint);
    int rowIndex = resultsOutline.rowAtPoint(mousePoint);
    int colModelIndex = resultsOutline.convertColumnIndexToModel(resultsOutline.columnAtPoint(mousePoint));
    if (colModelIndex == OutlineColumn.IDENTIFICATION_COUNT.ordinal() + 1) {
      DirectoryComparableLong count = (DirectoryComparableLong) resultsOutline
        .getValueAt(rowIndex, colIndex);
      if (count != null && count.getSource() != null && count.getSource() > 1) {
        int rowModelIndex = resultsOutline.convertRowIndexToModel(rowIndex);
        DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode) mdl.getValueAt(rowModelIndex, 0);
        ProfileResourceNode node = (ProfileResourceNode) treeNode.getUserObject();
        multiIdentificationDialog.showDialog(node);
      }
    }
  }
}

代码示例来源:origin: uk.gov.nationalarchives/droid-ui

final int colIndex = resultsOutline.columnAtPoint(mousePoint);
final int rowIndex = resultsOutline.rowAtPoint(mousePoint);
final int colModelIndex = resultsOutline.convertColumnIndexToModel(
    resultsOutline.columnAtPoint(mousePoint));
final Object cellObject = resultsOutline.getValueAt(rowIndex, colIndex);

代码示例来源:origin: digital-preservation/droid

final int colIndex = resultsOutline.columnAtPoint(mousePoint);
final int rowIndex = resultsOutline.rowAtPoint(mousePoint);
final int colModelIndex = resultsOutline.convertColumnIndexToModel(
    resultsOutline.columnAtPoint(mousePoint));
final Object cellObject = resultsOutline.getValueAt(rowIndex, colIndex);

相关文章