&& !((HasNameProtectedProperty) doc).isNameProtected()) return node; node.setDisable(true); Tooltip.uninstall(pane, tooltip); pane.removeEventHandler(MouseEvent.MOUSE_PRESSED, contextMenuToggle); node.setDisable(false); if (doc instanceof HasNameProtectedProperty) { ((HasNameProtectedProperty) doc)
-> loginButton.setDisable(n.trim().isEmpty()) );
public void unlockAll() { for (Node element : lockableElements) { element.setDisable(false); } }
private void lockAll() { for (Node element : lockableElements) { element.setDisable(true); } } }
private void lockAll() { for (Node element : lockableElements) { element.setDisable(true); } } }
public void unlockAll() { for (Node element : lockableElements) { element.setDisable(false); } }
private void lockAll() { for (Node element : lockableElements) { element.setDisable(true); } } }
public void unlockAll() { for (Node element : lockableElements) { element.setDisable(false); } }
for(Node node:vBox.getChildren()) { node.setDisable(true); }
private void updateTurns(Node active, Node inactive) { inactive.getStyleClass().remove("play"); active.getStyleClass().add("play"); inactive.setDisable(true); active.setDisable(false); }
@Override public void blockGui(boolean state, GUIBlockingScope scope, String... ids) { switch(scope){ case TOP_LEVEL: // not implemented break; case COMPONENTS: for(String id : ids){ Node n = stage.getScene().lookup("#" + id); if(n != null){ n.setDisable(state); } } break; default: } }
WizardPane page3 = new WizardPane() { @Override public void onEnteringPage( Wizard wizard ) { for ( ButtonType type : getButtonTypes() ) { if ( type.getButtonData().equals(ButtonBar.ButtonData.BACK_PREVIOUS) ) { Node prev = lookupButton( type ); prev.setDisable( true ); break; } } } };
@Override public void blockGui(boolean state, GUIBlockingScope scope, String... ids) { final GUIBlockingScope theScope = (scope != null) ? scope : GUIBlockingScope.NONE; Platform.runLater(() -> { switch (theScope) { case TOP_LEVEL: setStageBlocking(state); break; case COMPONENTS: for (String id : ids) { Node n = stage.getScene().lookup("#" + id); if (n != null) { n.setDisable(state); } } break; default: } }); }
public void resolveVisibility() { if (visibilityResolver != null) { visibilityResolver.put("forModel", forModel); UIAccessRule accessrule = visibilityResolver.isAccessible(controller, configuration); if (accessrule == UIAccessRule.SHOW) { node.setVisible(true); } else if (accessrule == UIAccessRule.DISABLED) { node.setDisable(true); } else if (accessrule == UIAccessRule.HIDDEN) { node.setVisible(false); } else { node.setVisible(false); } } }
@Override public void setContainerChangeable(boolean containerChangeable) { if (!isContainerChangeableIgnored()) { // don't invoke updateChangeable() as this would overwrite local controlChangeable! getNode().setDisable(!containerChangeable || !isControlChangeable()); // mandatory is only shown if component is changeable as well updateMandatoryStyle(isMandatory()); updateInfoStyle(containerChangeable && infoMessage != null); updateErrorStyle(containerChangeable && errorMessage != null); } }
@Override protected void updateChangeable(boolean changeable) { // the default for components is to use the disabled property getNode().setDisable(!changeable); // non-changeable components should not be focus traversable getNode().setFocusTraversable(changeable); // mandatory is only shown if component is changeable as well updateMandatoryStyle(isMandatory()); updateInfoStyle(changeable && infoMessage != null); updateErrorStyle(changeable && errorMessage != null); }
loginButton.setDisable(true); loginButton.setDisable(newValue.trim().isEmpty() || password.getText().isEmpty()); }); password.textProperty().addListener((observable, oldValue, newValue) -> { loginButton.setDisable(newValue.trim().isEmpty() || username.getText().isEmpty()); });
showControlNode.setDisable(true); @Override public void handle(WindowEvent windowEvent) { showControlNode.setDisable(false);
&& !((HasNameProtectedProperty) doc).isNameProtected()) return node; node.setDisable(true); Tooltip.uninstall(pane, tooltip); pane.removeEventHandler(MouseEvent.MOUSE_PRESSED, contextMenuToggle); node.setDisable(false); if (doc instanceof HasNameProtectedProperty) { ((HasNameProtectedProperty) doc)
editor.getEditor().setDisable(true);