本文整理了Java中javax.swing.table.TableColumnModel.setSelectionModel()
方法的一些代码示例,展示了TableColumnModel.setSelectionModel()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableColumnModel.setSelectionModel()
方法的具体详情如下:
包路径:javax.swing.table.TableColumnModel
类名称:TableColumnModel
方法名:setSelectionModel
暂无
代码示例来源:origin: de.sciss/jtreetable
@Override
public void setSelectionModel(ListSelectionModel newModel) {
delegate.setSelectionModel(newModel);
}
代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java15
tableColumnModel.setSelectionModel(NOOP_SELECTION_MODEL);
} else {
tableColumnModel.setSelectionModel(originalColumnSelectionModel);
originalColumnSelectionModel = null;
代码示例来源:origin: com.haulmont.thirdparty/glazedlists
tableColumnModel.setSelectionModel(NOOP_SELECTION_MODEL);
} else {
tableColumnModel.setSelectionModel(originalColumnSelectionModel);
originalColumnSelectionModel = null;
代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java16
tableColumnModel.setSelectionModel(NOOP_SELECTION_MODEL);
} else {
tableColumnModel.setSelectionModel(originalColumnSelectionModel);
代码示例来源:origin: stackoverflow.com
table.setAutoCreateRowSorter(true);
table.setCellSelectionEnabled(true);
table.getColumnModel().setSelectionModel(new DefaultListSelectionModel() {
@Override public boolean isSelectedIndex(int index) {
return table.convertColumnIndexToModel(index) == 0;
代码示例来源:origin: com.eas.platypus/platypus-js-forms
protected void applyColumns() {
// columns constraints setup
LinearConstraint leftColsConstraint = new LinearConstraint(0, frozenColumns - 1);
LinearConstraint rightColsConstraint = new LinearConstraint(frozenColumns, Integer.MAX_VALUE);
// tables column models setup
tlTable.setColumnModel(new ConstrainedColumnModel(columnModel, leftColsConstraint));
tlTable.getColumnModel().setSelectionModel(new ConstrainedListSelectionModel(columnsSelectionModel, leftColsConstraint));
trTable.setColumnModel(new ConstrainedColumnModel(columnModel, rightColsConstraint));
trTable.getColumnModel().setSelectionModel(new ConstrainedListSelectionModel(columnsSelectionModel, rightColsConstraint));
brTable.setColumnModel(new ConstrainedColumnModel(columnModel, rightColsConstraint));
brTable.getColumnModel().setSelectionModel(new ConstrainedListSelectionModel(columnsSelectionModel, rightColsConstraint));
blTable.setColumnModel(new ConstrainedColumnModel(columnModel, leftColsConstraint));
blTable.getColumnModel().setSelectionModel(new ConstrainedListSelectionModel(columnsSelectionModel, leftColsConstraint));
// headers setup
lheader.setColumnModel(tlTable.getColumnModel());
rheader.setColumnModel(trTable.getColumnModel());
reindexColumns();
}
代码示例来源:origin: ujmp/universal-java-matrix-package
public MatrixTable64(MatrixGUIObject matrix) {
super(matrix, new DefaultTableColumnModel64(matrix), matrix.getRowSelectionModel());
getColumnModel().setSelectionModel(matrix.getColumnSelectionModel());
getTableHeader().setReorderingAllowed(false);
setColumnSelectionAllowed(true);
setDefaultRenderer(Object.class, new MatrixValueTableCellRenderer());
setDefaultEditor(Object.class, new MatrixTableCellEditor());
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
columnModel.setSelectionModel(columnsSelectionModel);
columnModel.setColumnSelectionAllowed(true);
内容来源于网络,如有侵权,请联系作者删除!