本文整理了Java中javafx.scene.control.Tab.getText()
方法的一些代码示例,展示了Tab.getText()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tab.getText()
方法的具体详情如下:
包路径:javafx.scene.control.Tab
类名称:Tab
方法名:getText
暂无
代码示例来源:origin: jfoenixadmin/JFoenix
updateInnerUI();
} else if ("TEXT".equals(p)) {
tabLabel.setText(tab.getText());
} else if ("GRAPHIC".equals(p)) {
tabLabel.setGraphic(tab.getGraphic());
代码示例来源:origin: jfoenixadmin/JFoenix
setStyle(tab.getStyle());
tabLabel = new Label(tab.getText(), tab.getGraphic());
tabLabel.getStyleClass().setAll("tab-label");
代码示例来源:origin: Tristan971/Lyrebird
private void createTabForPal(final User user) {
if (loadedPals.contains(user)) return;
LOG.debug("Creating a conversation tab for conversation with {}", user.getScreenName());
easyFxml.loadNode(DIRECT_MESSAGE_CONVERSATION, Pane.class, DMConversationController.class)
.afterControllerLoaded(dmc -> dmc.setPal(user))
.getNode()
.recover(ExceptionHandler::fromThrowable)
.map(conversation -> new Tab(user.getName(), conversation))
.onSuccess(tab -> Platform.runLater(() -> {
LOG.debug("Adding [{}] as tab for user {}", tab.getText(), user.getScreenName());
this.conversationsManaged.add(tab);
}));
loadedPals.add(user);
}
代码示例来源:origin: com.jfoenix/jfoenix
setStyle(tab.getStyle());
tabLabel = new Label(tab.getText(), tab.getGraphic());
tabLabel.getStyleClass().setAll("tab-label");
updateInnerUI();
});
listener.registerChangeListener(tab.textProperty(), obs-> tabLabel.setText(tab.getText()));
listener.registerChangeListener(tab.graphicProperty(), obs-> tabLabel.setGraphic(tab.getGraphic()));
listener.registerChangeListener(widthProperty(), obs-> header.updateSelectionLine(true));
内容来源于网络,如有侵权,请联系作者删除!