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

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

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

TableView.refresh介绍

暂无

代码示例

代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
 * Calling refresh() forces the TableView control to recreate and repopulate the
 * cells necessary to populate the visual bounds of the control.
 * In other words, this forces the TableView to update what it is showing to
 * the user. This is useful in cases where the underlying data source has changed
 * in a way that is not observed by the TableView itself.
 */
public void refreshTable() {
 tableView.refresh();
}

代码示例来源:origin: com.powsybl/powsybl-gse-security-analysis

@Override
public void setPrecision(int precision) {
  if (precision < 0) {
    throw new IllegalArgumentException("Bad precision: " + precision);
  }
  decimalColumnFactory.setPrecision(precision);
  tableView.refresh();
}

代码示例来源:origin: com.powsybl/powsybl-gse-security-analysis

@Override
public void setPrecision(int precision) {
  if (precision < 0) {
    throw new IllegalArgumentException("Bad precision: " + precision);
  }
  decimalColumnFactory.setPrecision(precision);
  tableView.refresh();
}

代码示例来源:origin: com.intuit.karate/karate-core

public void refresh() {
  table.setItems(getVarList());
  table.refresh();
}

代码示例来源:origin: org.controlsfx/controlsfx

/**
   * When the expanded state change we refresh the tableview.
   * If the expanded state changes to false we remove the cached expanded node.
   */
  @Override
  protected void invalidated() {
    getTableView().refresh();
    if (!getValue()) expandedNodeCache.remove(getBean());
  }
};

代码示例来源:origin: no.tornado/tornadofx-controls

/**
   * When the expanded state change we refresh the tableview.
   * If the expanded state changes to false we remove the cached expanded node.
   */
  @Override
  protected void invalidated() {
    getTableView().refresh();
    if (!getValue()) expandedNodeCache.remove(getBean());
  }
};

代码示例来源:origin: org.jrebirth.af.showcase/todos

@Override
public void refresh() {
  filteredList.setPredicate(this::filter);
  view().getTable().refresh();
}

代码示例来源:origin: org.jrebirth.af.showcase/todos

@Override
public void refresh() {
  this.filteredList.setPredicate(this::filter);
  view().getTable().refresh();
}

代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
 * @{inheritedDoc}
 */
@SuppressWarnings("rawtypes")
@Override
public void setData(MultipleResult multipleResult) {
 // update table columns may be!
 String columnsFiltersContextSetter = contentConfiguration.getPropertyValue("columnsFiltersContextSetter");
 if(StringUtils.isNotBlank(columnsFiltersContextSetter)) {
  List<TableColumnBase> c = getTableColumns();
  tableView.getColumns().clear();
  for(TableColumnBase tcb: c) {
   tableView.getColumns().add((TableColumn<OperationData, ?>) tcb);
  }
  applyTableResponsiveMatrix(tableView.getWidth());
 }
 final boolean isFirst = multipleResult.getCurrentPageIndex() <= 0;
 if (pagination != null && pagination.isLoadMorePagination() && !isFirst) {
  // items.clear();
 } else {
  items.clear();
 }
 items.addAll(multipleResult.getData());
 tableView.pseudoClassStateChanged(nocontent, false);
 tableView.refresh();
}

代码示例来源:origin: org.tentackle/tentackle-fx

case ESCAPE:
 cancelEdit();
 getTableView().refresh();
 event.consume();
 break;
 columnConfiguration.getBinding().setModelValue(value);
 commitEdit(value);
 getTableView().refresh();
 event.consume();
 break;

相关文章