本文整理了Java中javafx.scene.control.Hyperlink.disableProperty()
方法的一些代码示例,展示了Hyperlink.disableProperty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hyperlink.disableProperty()
方法的具体详情如下:
包路径:javafx.scene.control.Hyperlink
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!