当前位置: 首页>>代码示例>>Java>>正文


Java TitledPane.getText方法代码示例

本文整理汇总了Java中javafx.scene.control.TitledPane.getText方法的典型用法代码示例。如果您正苦于以下问题:Java TitledPane.getText方法的具体用法?Java TitledPane.getText怎么用?Java TitledPane.getText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javafx.scene.control.TitledPane的用法示例。


在下文中一共展示了TitledPane.getText方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: bind

import javafx.scene.control.TitledPane; //导入方法依赖的package包/类
public void bind(final Accordion accordion, final String propertyName) {
    Object selectedPane = props.getProperty(propertyName);
    for (TitledPane tp : accordion.getPanes()) {
        if (tp.getText() != null && tp.getText().equals(selectedPane)) {
            accordion.setExpandedPane(tp);
            break;
        }
    }
    accordion.expandedPaneProperty().addListener(new ChangeListener<TitledPane>() {

        @Override
        public void changed(ObservableValue<? extends TitledPane> ov, TitledPane t, TitledPane expandedPane) {
            if (expandedPane != null) {
                props.setProperty(propertyName, expandedPane.getText());
            }
        }
    });
}
 
开发者ID:comtel2000,项目名称:mokka7,代码行数:19,代码来源:SessionManager.java

示例2: drawNode

import javafx.scene.control.TitledPane; //导入方法依赖的package包/类
@Override
public Node drawNode() {
    String title = "TitledPane";
    Label content = new Label("Content");
    TitledPane titledPane = new TitledPane(title, content);
    if (titledPane.getText() != title) {
        reportGetterFailure("getTitle()");
    }
    if (titledPane.getContent() != content) {
        reportGetterFailure("getTitle()");
    }
    titledPane.setMinSize(SLOT_WIDTH, SLOT_HEIGHT);
    titledPane.setMaxSize(SLOT_WIDTH, SLOT_HEIGHT);
    titledPane.setPrefSize(SLOT_WIDTH, SLOT_HEIGHT);
    titledPane.setStyle("-fx-border-color: darkgray;");
    return titledPane;
}
 
开发者ID:teamfx,项目名称:openjfx-8u-dev-tests,代码行数:18,代码来源:TitledPaneApp.java

示例3: onActionIncreaseProjectCounter

import javafx.scene.control.TitledPane; //导入方法依赖的package包/类
private void onActionIncreaseProjectCounter(TitledPane titledPane, String projectName) {
    LoggerFacade.INSTANCE.debug(this.getClass(), "On action increase Project counter"); // NOI18N
    
    final String title = titledPane.getText();
    final String counted = title.substring(1, title.indexOf(')')); // NOI18N
    final int counter = Integer.parseInt(counted) + 1;
    titledPane.setText("(" + counter + ") " + projectName); // NOI18N
    
    LoggerFacade.INSTANCE.trace(this.getClass(), "TODO update database with the new counter"); // NOI18N
    
    this.onActionEnsureTitledPaneIsVisible(titledPane);
}
 
开发者ID:Naoghuman,项目名称:Incubator,代码行数:13,代码来源:DailySectionContentPresenter.java

示例4: bind

import javafx.scene.control.TitledPane; //导入方法依赖的package包/类
public void bind(final Accordion accordion, final String propertyName) {
  Object selectedPane = props.getProperty(propertyName);
  for (TitledPane tp : accordion.getPanes()) {
    if (tp.getText() != null && tp.getText().equals(selectedPane)) {
      accordion.setExpandedPane(tp);
      break;
    }
  }
  accordion.expandedPaneProperty().addListener((ov, t, expandedPane) -> {
    if (expandedPane != null) {
      props.setProperty(propertyName, expandedPane.getText());
    }
  });
}
 
开发者ID:comtel2000,项目名称:jfxvnc,代码行数:15,代码来源:SessionContext.java

示例5: getTitledPaneText

import javafx.scene.control.TitledPane; //导入方法依赖的package包/类
protected String getTitledPaneText(TitledPane titledPane) {
    return titledPane.getText();
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:4,代码来源:JavaFXElementPropertyAccessor.java


注:本文中的javafx.scene.control.TitledPane.getText方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。