本文整理了Java中javafx.scene.control.Tab.setDisable()
方法的一些代码示例,展示了Tab.setDisable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tab.setDisable()
方法的具体详情如下:
包路径:javafx.scene.control.Tab
类名称:Tab
方法名:setDisable
暂无
代码示例来源:origin: pmd/pmd
private void notifyMetricsAvailable(long numMetrics) {
metricResultsTab.setText("Metrics\t(" + (numMetrics == 0 ? "none" : numMetrics) + ")");
metricsTitledPane.setTitle("Metrics\t(" + (numMetrics == 0 ? "none" : numMetrics) + " available)");
metricResultsTab.setDisable(numMetrics == 0);
}
代码示例来源:origin: com.aquafx-project/aquafx
@Override public void handle(ActionEvent event) {
tabI.setDisable(false);
tabH.setDisable(false);
}
});
代码示例来源:origin: com.aquafx-project/aquafx
@Override public void handle(ActionEvent event) {
tabH.setDisable(true);
}
});
代码示例来源:origin: com.aquafx-project/aquafx
@Override
public void handle(ActionEvent event) {
tab2.setDisable(!tab2.isDisable());
}
});
代码示例来源:origin: com.bitplan.gui/com.bitplan.javafx
/**
* create an XYTab Pane with the given iconSize
*
* @param iconSize
* - e.g. 48
*/
public XYTabPane(int iconSize) {
super();
this.iconSize = iconSize;
this.currentTab = TabSelection.getInstance();
setvTabPane(this.addTabPane("vTabPane"));
getvTabPane().setSide(Side.LEFT);
Tab filler = new Tab();
topLeftButton = new Button();
int tabSize = getTabSize();
topLeftButton.setMinSize(tabSize, tabSize);
topLeftButton.setMaxSize(tabSize, tabSize);
topLeftButton.setDisable(true);
filler.setGraphic(topLeftButton);
filler.setDisable(true);
getvTabPane().getTabs().add(filler);
this.addToMaps(filler, vTabPane);
fontAwesome = GlyphFontRegistry.font("FontAwesome");
super.getChildren().add(getvTabPane());
}
代码示例来源:origin: com.aquafx-project/aquafx
Tab tab1 = new Tab("Tab 1 (disabled)");
tab1.setContent(new Label("Lorem Ipsum tab1"));
tab1.setDisable(true);
tabPane.getTabs().add(tab1);
final Tab tab2 = new Tab("Tab 2");
代码示例来源:origin: com.aquafx-project/aquafx
tabI.setDisable(true);
TabPane innerTabPane = new TabPane();
Label label = new Label("Lipsum");
内容来源于网络,如有侵权,请联系作者删除!