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

x33g5p2x  于2022-01-20 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(116)

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

Hyperlink.disableProperty介绍

暂无

代码示例

代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
 * Constructor
 */
public AdvancedPaginationBar() {
 super();
 previousButton.getStyleClass().add("advanced-pagination-button");
 nextButton.getStyleClass().add("advanced-pagination-button");
 firstButton.getStyleClass().add("advanced-pagination-button");
 lastButton.getStyleClass().add("advanced-pagination-button");
 nextButton.setTooltip(new Tooltip("Next"));
 nextButton.disableProperty().bind(Bindings.not(hasNext));
 lastButton.setTooltip(new Tooltip("Last"));
 lastButton.disableProperty().bind(Bindings.not(hasNext));
 previousButton.setTooltip(new Tooltip("Back"));
 previousButton.disableProperty().bind(Bindings.not(hasPrevious));
 firstButton.setTooltip(new Tooltip("First"));
 firstButton.disableProperty().bind(Bindings.not(hasPrevious));
 layout.getChildren().addAll(rowsPerPageLabel, rowsPerPageCombo, itemsCount, firstButton, previousButton, nextButton, lastButton);
}

代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
 * Constructor
 */
public STVBottomToolbar() {
 super();
 setStyle("-fx-background-color: white;" + "-fx-border-width: 0 0 0;" + "-fx-padding: 0 16 0 16;" + "-fx-min-height: 88;" + "-fx-alignment: CENTER_RIGHT;" + "-fx-spacing: 16;");
 next.setTooltip(new Tooltip("Next"));
 next.disableProperty().bind(Bindings.not(hasNext));
 back.setTooltip(new Tooltip("Back"));
 back.disableProperty().bind(Bindings.not(hasPrevious));
 elementCount.setStyle("-fx-font-family: 'Roboto Regular';" + "-fx-font-size: 1.3em;" + "-fx-opacity: 0.87;" + "-fx-padding: 0 32 0 0;");
 // add all
 getChildren().addAll(elementCount, NodeHelper.horizontalSpacer(), back, next);
}

代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
 * Constructor
 */
public LoadMorePaginationBar() {
 super();
 previousButton.getStyleClass().add("simple-pagination-button");
 previousButton.setText("Less".toUpperCase());
 previousButton.setTooltip(new Tooltip("Less"));
 previousButton.disableProperty().bind(Bindings.not(hasPrevious));
 IconUtils.setFontIcon("fa-angle-up:18", previousButton);
 nextButton.setText("More".toUpperCase());
 nextButton.setTooltip(new Tooltip("Load more data"));
 nextButton.disableProperty().bind(Bindings.not(hasNext));
 IconUtils.setFontIcon("fa-angle-down:18", nextButton);
 if(AbstractApplicationRunner.isDesktop()) {
  layout.getChildren().addAll(NodeHelper.horizontalSpacer(),rowsPerPageLabel, itemsCount, rowsPerPageCombo, nextButton, NodeHelper.horizontalSpacer());
 }
 else {
  layout.getChildren().addAll(NodeHelper.horizontalSpacer(), rowsPerPageLabel, nextButton);
 }
}

代码示例来源:origin: PhoenicisOrg/phoenicis

gitRevisionHyperlink.disableProperty().bind(disableProperty);
gitRevisionHyperlink.visitedProperty().bind(disableProperty);
gitRevisionHyperlink.underlineProperty().bind(disableProperty);

相关文章