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

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

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

Tab.setClosable介绍

暂无

代码示例

代码示例来源:origin: brunoborges/webfx

public void newTab() {
  Tab tab = new Tab("New tab");
  tab.setClosable(true);
  tabPane.getTabs().add(tab);
  selectionTab.selectLast();
  focusAddressBar();
}

代码示例来源:origin: PhoenicisOrg/phoenicis

engineToolsTab.setClosable(false);

代码示例来源:origin: io.github.factoryfx/javafxDataEditing

@SuppressWarnings("unchecked")
private Node createEditor(Data newValue, Data previousValue){
  if (newValue==null) {
    return new Label("empty");
  } else {
    if (newValue.internal().attributeListGrouped().size()==1){
      final Node attributeGroupVisual = createAttributeGroupVisual(newValue.internal().attributeListGrouped().get(0).group,previousValue, () -> newValue.internal().validateFlat());
      return customizeVis(attributeGroupVisual,newValue);
    } else {
      TabPane tabPane = new TabPane();
      for (AttributeGroup attributeGroup: newValue.internal().attributeListGrouped()) {
        Tab tab=new Tab(uniformDesign.getText(attributeGroup.title));
        tab.setClosable(false);
        tab.setContent(createAttributeGroupVisual(attributeGroup.group,previousValue, () -> newValue.internal().validateFlat()));
        tabPane.getTabs().add(tab);
      }
      return customizeVis(tabPane,newValue);
    }
  }
}

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

preContTab = new Tab("", preContResultPane);
preContTab.setGraphic(preContGraphic);
preContTab.setClosable(false);
postContTab = new Tab("", postContResultPane);
postContTab.setGraphic(postContGraphic);
postContTab.setClosable(false);

代码示例来源:origin: PhoenicisOrg/phoenicis

this.installedApplicationsTab.setClosable(false);
this.installedApplicationsTab.setText(tr("My applications"));
this.installedApplicationsTab.setContent(this.availableShortcuts);

代码示例来源:origin: brunoborges/webfx

tabs.get(0).setClosable(tabs.size() > 1);
  tabs.get(i).setClosable(true);

相关文章