本文整理了Java中javafx.scene.control.Tab.contentProperty()
方法的一些代码示例,展示了Tab.contentProperty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tab.contentProperty()
方法的具体详情如下:
包路径:javafx.scene.control.Tab
类名称:Tab
方法名:contentProperty
暂无
代码示例来源:origin: jfoenixadmin/JFoenix
private void removeListeners(Tab tab) {
tab.selectedProperty().removeListener(weakTabSelectedListener);
tab.contentProperty().removeListener(weakTabContentListener);
}
}
代码示例来源:origin: jfoenixadmin/JFoenix
public TabContentHolder(Tab tab) {
this.tab = tab;
getStyleClass().setAll("tab-content-area");
setManaged(false);
updateContent();
setVisible(tab.isSelected());
tab.selectedProperty().addListener(weakTabSelectedListener);
tab.contentProperty().addListener(weakTabContentListener);
}
代码示例来源:origin: com.jfoenix/jfoenix
private void removeListeners(Tab tab) {
tab.selectedProperty().removeListener(weakTabSelectedListener);
tab.contentProperty().removeListener(weakTabContentListener);
}
}
代码示例来源:origin: com.jfoenix/jfoenix
public TabContentHolder(Tab tab) {
this.tab = tab;
getStyleClass().setAll("tab-content-area");
setManaged(false);
updateContent();
setVisible(tab.isSelected());
tab.selectedProperty().addListener(weakTabSelectedListener);
tab.contentProperty().addListener(weakTabContentListener);
}
代码示例来源:origin: brunoborges/webfx
public void openPage(String location) {
final URL url;
try {
url = URLVerifier.verifyURL(location);
} catch (MalformedURLException ex) {
Logger.getLogger(BrowserFXController.class.getName()).log(Level.SEVERE, null, ex);
return;
}
URLHandler urlHandler = URLHandlersRegistry.getHandler(url);
if (urlHandler == null) {
return;
}
Platform.runLater(() -> {
URLHandler.Result handleResult = urlHandler.handle(url);
if (handleResult.contentDescriptor != ContentDescriptor.NoContent.instance()) {
BrowserTab browserTab = TabFactory.newTab(this, locale, handleResult.contentDescriptor);
browserTab.getNavigationContext().goTo(url);
selectionTab.getSelectedItem().contentProperty().bind(browserTab.contentProperty());
browserMap.put(selectionTab.getSelectedIndex(), browserTab);
// if(!urlField.isFocused()){
urlField.textProperty().bind(browserTab.locationProperty());
// }
stopButton.disableProperty().set(!browserTab.isStoppable());
selectionTab.getSelectedItem().textProperty().bind(browserTab.titleProperty());
}
});
}
内容来源于网络,如有侵权,请联系作者删除!