本文整理了Java中javafx.scene.control.Hyperlink.setDisable()
方法的一些代码示例,展示了Hyperlink.setDisable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hyperlink.setDisable()
方法的具体详情如下:
包路径:javafx.scene.control.Hyperlink
类名称:Hyperlink
方法名:setDisable
暂无
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
/**
* @param criteriaContext
*/
public void filter(CriteriaContext criteriaContext) {
if (configuration.getComponentById("Validator") != null) {
final VLViewComponentXML componentXML = configuration.getComponentById("Validator").orElse(null);
if (componentXML != null) {
final Optional<String> visible = componentXML.propertyValueOf(XMLConstants.VISIBLE);
if (visible.isPresent()) {
link.setVisible(criteriaContext.isTrue(visible.get()));
}
final Optional<String> active = componentXML.propertyValueOf(XMLConstants.ACTIVE);
if (active.isPresent()) {
link.setDisable(!criteriaContext.isTrue(active.get()));
}
}
}
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
theCheckbox.setDisable(!updatable);
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
protected ButtonBase build(VLViewComponentXML configuration) {
if ("button".equals(type)) {
Button buttonAction = new JFXButton();
buttonAction.getStyleClass().remove(0);
buttonAction.getStyleClass().removeAll("jfx-button", "button");
buttonAction.managedProperty().bind(buttonAction.visibleProperty());
NodeHelper.setTitle(buttonAction, configuration, controller);
IconUtils.setIcon(buttonAction, configuration);
NodeHelper.setStyleClass(buttonAction, configuration, "styleClass", true);
buttonAction.getStyleClass().add("ep-button");
String displayMode = configuration.getPropertyValue(XMLConstants.HYPERLINK_DISPLAY_MODE, "LEFT");
buttonAction.setContentDisplay(ContentDisplay.valueOf(displayMode));
boolean readOnly = configuration.getBooleanProperty("readOnly", false);
buttonAction.setDisable(readOnly);
buttonAction.addEventFilter(ActionEvent.ACTION, e -> onAction(buttonAction));
return buttonAction;
} else {
Hyperlink hyperlinkAction = new Hyperlink();
hyperlinkAction.managedProperty().bind(hyperlinkAction.visibleProperty());
NodeHelper.setTitle(hyperlinkAction, configuration, controller);
NodeHelper.setStyleClass(hyperlinkAction, configuration, "styleClass", true);
IconUtils.setIcon(hyperlinkAction, configuration);
boolean readOnly = configuration.getBooleanProperty("readOnly", false);
hyperlinkAction.setDisable(readOnly);
hyperlinkAction.addEventFilter(ActionEvent.ACTION, e -> onAction(hyperlinkAction));
return hyperlinkAction;
}
}
代码示例来源:origin: com.aquafx-project/aquafx
link2.setDisable(true);
buttonBox.getChildren().add(link);
buttonBox.getChildren().add(link2);
内容来源于网络,如有侵权,请联系作者删除!