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

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

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

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());
      }
    });
  }

相关文章