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

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

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

Tab.getContent介绍

暂无

代码示例

代码示例来源:origin: jfoenixadmin/JFoenix

private void updateContent() {
  Node newContent = tab.getContent();
  if (newContent == null) {
    getChildren().clear();
  } else {
    getChildren().setAll(newContent);
  }
}

代码示例来源:origin: com.jfoenix/jfoenix

private void updateContent() {
  Node newContent = tab.getContent();
  if (newContent == null) {
    getChildren().clear();
  } else {
    getChildren().setAll(newContent);
  }
}

代码示例来源:origin: org.copper-engine/copper-monitoring-client

@Override
  protected void closeImpl(Form<?> form) {
    Tab formTab=null;
    for (Tab tab: component.getTabs()){
      if (tab.getContent()==form.getCachedContent()){
        formTab=tab;
      }
    }
    if (formTab!=null){
      component.getTabs().remove(formTab);
    }
  }
}

代码示例来源:origin: org.drombler.commons/drombler-commons-docking-fx

private void removeTab(int index, PositionableAdapter<FXDockableEntry> dockableEntry) {
  FXDockableData dockableData = dockableEntry.getAdapted().getDockableData();
  ChangeListener<? super Boolean> listener = dockableDataModifiedListeners.remove(dockableData);
  dockableData.modifiedProperty().removeListener(listener);
  if (tabPane.getTabs().size() > index && tabPane.getTabs().get(index).getContent().equals(dockableEntry.getAdapted().getDockable())) {
    tabPane.getTabs().remove(index);
  }
}

代码示例来源:origin: org.codehaus.griffon/griffon-javafx

TabPane parent = (TabPane) root;
for (Tab child : parent.getTabs()) {
  if (child.getContent() != null) {
    Node found = findNode(child.getContent(), id);
    if (found != null) { return found; }

代码示例来源:origin: org.codehaus.griffon/griffon-javafx

if (tab.getContent() != null) {
  findElements(tab.getContent(), predicate, accumulator);

代码示例来源:origin: org.copper-engine/copper-monitoring-client

if (tab.getContent()==form.getCachedContent()){
  formTab=tab;

代码示例来源:origin: org.codehaus.griffon/griffon-javafx

if (tab.getContent() != null) {
  Object found = findElement(tab.getContent(), predicate);
  if (found != null) { return found; }

代码示例来源:origin: org.codehaus.griffon/griffon-javafx

if (tab.getContent() != null) {
  Object found = findElement(tab.getContent(), id);
  if (found != null) { return found; }

相关文章