本文整理了Java中javax.swing.table.TableModel.getColumnClass()
方法的一些代码示例,展示了TableModel.getColumnClass()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableModel.getColumnClass()
方法的具体详情如下:
包路径:javax.swing.table.TableModel
类名称:TableModel
方法名:getColumnClass
暂无
代码示例来源:origin: groovy/groovy-core
public Class getColumnClass(int aColumn) {
return model.getColumnClass(aColumn);
}
代码示例来源:origin: groovy/groovy-core
public int compareRowsByColumn(int row1, int row2, int column) {
Class type = model.getColumnClass(column);
TableModel data = model;
代码示例来源:origin: stackoverflow.com
this.table = table;
this.tableModel = table.getModel();
if (tableModel.getColumnClass(targetColumn) != Boolean.class) {
throw new IllegalArgumentException("Boolean column required.");
代码示例来源:origin: com.eas.platypus/platypus-js-grid
/**
* {@inheritDoc}
*/
@Override
public Class<?> getColumnClass(int columnIndex) {
return delegate.getColumnClass(columnIndex);
}
代码示例来源:origin: freeplane/freeplane
@Override
public Class<?> getColumnClass(final int arg0) {
return mTableModel.getColumnClass(arg0);
}
代码示例来源:origin: org.jspresso.framework/jspresso-swing-application
/**
* {@inheritDoc}
*/
@Override
public Class<?> getColumnClass(int column) {
return tableModel.getColumnClass(column);
}
代码示例来源:origin: net.java.dev.jets3t/jets3t
protected Comparator getComparator(int column) {
Class columnType = tableModel.getColumnClass(column);
Comparator comparator = (Comparator) columnComparators.get(columnType);
if (comparator != null) {
return comparator;
}
if (Comparable.class.isAssignableFrom(columnType)) {
return COMPARABLE_COMAPRATOR;
}
return LEXICAL_COMPARATOR;
}
代码示例来源:origin: freeplane/freeplane
protected Comparator<Object> getComparator(final int column) {
final Class<?> columnType = tableModel.getColumnClass(column);
final Comparator<Object> comparator = columnComparators.get(columnType);
if (comparator != null) {
return comparator;
}
if (Comparable.class.isAssignableFrom(columnType)) {
return TableSorter.COMPARABLE_COMPARATOR;
}
return TableSorter.LEXICAL_COMPARATOR;
}
代码示例来源:origin: com.fifesoft.rtext/fife.common
@SuppressWarnings("rawtypes")
protected Comparator getComparator(int column) {
Class<?> columnType = tableModel.getColumnClass(column);
Comparator<?> comparator = columnComparators.get(columnType);
if (comparator != null)
return comparator;
if (Comparable.class.isAssignableFrom(columnType))
return COMPARABLE_COMPARATOR;
return LEXICAL_COMPARATOR;
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-bugtracking-commons
protected Comparator getComparator(int column) {
Class columnType = tableModel.getColumnClass(column);
Comparator comparator = columnComparators.get(columnType);
if (comparator != null) {
return comparator;
}
if (Comparable.class.isAssignableFrom(columnType)) {
return COMPARABLE_COMAPRATOR;
}
return LEXICAL_COMPARATOR;
}
代码示例来源:origin: org.arrahtec/osdq-core
protected Comparator getComparator(int column) {
Class columnType = tableModel.getColumnClass(column);
Comparator comparator = (Comparator) columnComparators.get(columnType);
if (comparator != null) {
return comparator;
}
if (Comparable.class.isAssignableFrom(columnType)) {
return COMPARABLE_COMAPRATOR;
}
return LEXICAL_COMPARATOR;
}
代码示例来源:origin: org.activecomponents.jadex/jadex-commons-gui
protected Comparator getComparator(int column) {
Class columnType = tableModel.getColumnClass(column);
Comparator comparator = (Comparator) columnComparators.get(columnType);
if (comparator != null) {
return comparator;
}
if (Comparable.class.isAssignableFrom(columnType)) {
return COMPARABLE_COMAPRATOR;
}
return LEXICAL_COMPARATOR;
}
代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core
/**
* @inherited <p>
*/
@Override
public Class<?> getColumnClass(int column) {
return table.getModel().getColumnClass(column);
}
代码示例来源:origin: xyz.cofe/gui.swing
@Override
public Class<?> getColumnClass(int columnIndex) {
if( tableModel==null )return null;
int c = mapColumnToInside(columnIndex);
if( c<0 )return null;
return tableModel.getColumnClass(c);
}
代码示例来源:origin: org.swinglabs.swingx/swingx-all
/**
* @inherited <p>
*/
@Override
public Class<?> getColumnClass(int column) {
return table.getModel().getColumnClass(column);
}
代码示例来源:origin: org.zaproxy/zap
protected void installSizeBytesRenderer(TableColumnExt columnExt, int columnIndex, TableModel model) {
if (columnIndex != -1) {
if (columnExt.getModelIndex() == columnIndex
&& SizeBytesStringValue.isTargetClass(model.getColumnClass(columnIndex))) {
columnExt.setCellRenderer(new DefaultTableRenderer(getSizeBytesStringValue()));
}
}
}
代码示例来源:origin: com.synaptix/SynaptixSwing
public Comparator<?> getComparatorColumn(int column) {
SyTableColumnModel tcm = (SyTableColumnModel) getColumnModel();
SyTableColumn tableColumn = (SyTableColumn) tcm.getColumn(column, true);
Comparator<?> comparator = tableColumn.getComparator();
if (comparator == null) {
comparator = getDefaultComparatorColumn(getModel().getColumnClass(tableColumn.getModelIndex()));
}
return comparator;
}
代码示例来源:origin: org.swinglabs.swingx/swingx-all
/**
* Updates per-column class in StringValueRegistry. This is called after
* structureChanged.
*/
private void updateStringValueRegistryColumnClasses() {
getStringValueRegistry().setColumnClasses(null);
for (int i = 0; i < getModel().getColumnCount(); i++) {
getStringValueRegistry().setColumnClass(getModel().getColumnClass(i), i);
}
}
代码示例来源:origin: com.haulmont.thirdparty/swingx-core
/**
* Updates per-column class in StringValueRegistry. This is called after
* structureChanged.
*/
private void updateStringValueRegistryColumnClasses() {
getStringValueRegistry().setColumnClasses(null);
for (int i = 0; i < getModel().getColumnCount(); i++) {
getStringValueRegistry().setColumnClass(getModel().getColumnClass(i), i);
}
}
代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core
/**
* Updates per-column class in StringValueRegistry. This is called after
* structureChanged.
*/
private void updateStringValueRegistryColumnClasses() {
getStringValueRegistry().setColumnClasses(null);
for (int i = 0; i < getModel().getColumnCount(); i++) {
getStringValueRegistry().setColumnClass(getModel().getColumnClass(i), i);
}
}
内容来源于网络,如有侵权,请联系作者删除!