Package com.intellij.util.ui

Examples of com.intellij.util.ui.ColumnInfo.valueOf()


    final ColumnInfo columnInfo = myTableModel.getColumnInfos()[i];
    final java.util.List items = myTableModel.getItems();
    int width = -1;
    for (int j = 0; j < items.size(); j++) {
      final TableCellRenderer renderer = myTable.getCellRenderer(j, i);
      final Component component = renderer.getTableCellRendererComponent(myTable, columnInfo.valueOf(items.get(j)), false, false, j, i);
      width = Math.max(width, component.getPreferredSize().width);
    }
    return width;
  }
View Full Code Here


  protected void recacheColumn(final int columnIndex) {
    assert columnIndex >= 0 && columnIndex < getColumnInfos().length;
    final ColumnInfo columnInfo = getColumnInfos()[columnIndex];
    myCache.processLeafEntries(new PairProcessor<Object, List<Object>>() {
      public boolean process(final Object o, final List<Object> objects) {
        objects.set(columnIndex, columnInfo.valueOf(o));
        return true;
      }
    });
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.