本文整理了Java中javafx.scene.control.TableColumn.setSortType()
方法的一些代码示例,展示了TableColumn.setSortType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableColumn.setSortType()
方法的具体详情如下:
包路径:javafx.scene.control.TableColumn
类名称:TableColumn
方法名:setSortType
暂无
代码示例来源:origin: ssaring/sportstracker
@SuppressWarnings("unchecked")
@Override
protected void setupDefaultSorting() {
// default sort order is by date descending
tcDate.setSortType(TableColumn.SortType.DESCENDING);
tvNotes.getSortOrder().addAll(tcDate);
}
代码示例来源:origin: ssaring/sportstracker
@SuppressWarnings("unchecked")
@Override
protected void setupDefaultSorting() {
// default sort order is by date descending
tcDate.setSortType(TableColumn.SortType.DESCENDING);
tvWeights.getSortOrder().addAll(tcDate);
}
代码示例来源:origin: ssaring/sportstracker
@SuppressWarnings("unchecked")
@Override
protected void setupDefaultSorting() {
// default sort order is by date descending
tcDate.setSortType(TableColumn.SortType.DESCENDING);
tvExercises.getSortOrder().addAll(tcDate);
}
代码示例来源:origin: org.tentackle/tentackle-fx
int sorting = columnPref.getInt(PREF_COLUMN_SORT_TYPE, -1);
if (sorting >= 0) {
column.setSortType(TableColumn.SortType.values()[sorting]);
int sortIndex = columnPref.getInt(PREF_COLUMN_SORT_INDEX, -1);
if (sortIndex == -1) {
代码示例来源:origin: com.aquafx-project/aquafx
lastNameCol.setGraphic(graphic1);
lastNameCol.setText("Last");
lastNameCol.setSortType(TableColumn.SortType.DESCENDING);
lastNameCol.setCellValueFactory(new Callback<TableColumn.CellDataFeatures<Person, String>, ObservableValue<String>>() {
public ObservableValue<String> call(TableColumn.CellDataFeatures<Person, String> p) {
内容来源于网络,如有侵权,请联系作者删除!