javafx.scene.control.TableColumn.setSortType()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(142)

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

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) {

相关文章