/** * this method is used to set some nodes in cell content as mouse transparent nodes * so clicking on them will trigger the ripple effect. */ protected void makeChildrenTransparent() { for (Node child : getChildren()) { if (child instanceof Label) { Set<Node> texts = child.lookupAll("Text"); for (Node text : texts) { text.setMouseTransparent(true); } } else if (child instanceof Shape) { child.setMouseTransparent(true); } } }
@Override protected void updateChildren() { super.updateChildren(); if(buttonRippler!=null) getChildren().add(0, buttonRippler); for (int i = 1; i < getChildren().size(); i++) { final Node child = getChildren().get(i); if(child instanceof Text) child.setMouseTransparent(true); } }
@Override protected void updateChildren() { super.updateChildren(); if (rippler != null) { getChildren().add(0, rippler); } for (int i = 1; i < getChildren().size(); i++) { getChildren().get(i).setMouseTransparent(true); } }
dragItem = node; dragImageView.setMouseTransparent(true); node.setMouseTransparent(true); node.setCursor(Cursor.CLOSED_HAND); dragItem = null; dragImageView.setMouseTransparent(false); node.setMouseTransparent(false); node.setCursor(Cursor.DEFAULT); sceneRoot.getChildren().remove(dragImageView);
/** * this method is used to set some nodes in cell content as mouse transparent nodes * so clicking on them will trigger the ripple effect. */ protected void makeChildrenTransparent() { for (Node child : getChildren()) { if (child instanceof Label) { Set<Node> texts = child.lookupAll("Text"); for (Node text : texts) { text.setMouseTransparent(true); } } else if (child instanceof Shape) { child.setMouseTransparent(true); } } }
static <T extends Node> T withState(T node, String state) { if (node != null && state != null) { // stop user from being able to change state node.setMouseTransparent(true); node.setFocusTraversable(false); // set state to chosen state final String[] pseudoClasses = (state).split("[\\s,]+"); for (String pseudoClass : pseudoClasses) { node.pseudoClassStateChanged(PseudoClass.getPseudoClass(pseudoClass), true); } } return node; }
@Override public void run() { final Node macRB2 = macWindowContent.lookup("#RadioButton2"); macRB2.setMouseTransparent(true); macRB2.pseudoClassStateChanged(PseudoClass.getPseudoClass("focused"), true); final Node windows7RB2 = windows7WindowContent.lookup("#RadioButton2"); windows7RB2.setMouseTransparent(true); windows7RB2.pseudoClassStateChanged(PseudoClass.getPseudoClass("focused"), true); final Node windows8RB2 = windows8WindowContent.lookup("#RadioButton2"); windows8RB2.setMouseTransparent(true); windows8RB2.pseudoClassStateChanged(PseudoClass.getPseudoClass("focused"), true); final Node ubuntuRB2 = ubuntuWindowContent.lookup("#RadioButton2"); ubuntuRB2.setMouseTransparent(true); ubuntuRB2.pseudoClassStateChanged(PseudoClass.getPseudoClass("focused"), true); } });
public void configureEditCapability(boolean notEditable) { Optional<Boolean> disableEditing = getModel().getVisualizationRequest(). get(VisualizationRequest.KEY_DISABLE_EDITING); if (disableEditing.isPresent()) { notEditable = disableEditing.get(); } senderShape.getNode().setMouseTransparent(notEditable); receiverConnectorUI.setMouseTransparent(notEditable); connectionPath.setMouseTransparent(notEditable); } }
@Override protected void updateChildren() { super.updateChildren(); if (rippler != null) { getChildren().add(0, rippler); } for (int i = 1; i < getChildren().size(); i++) { getChildren().get(i).setMouseTransparent(true); } }
n.setMouseTransparent(!result);
@Override protected void updateChildren() { super.updateChildren(); if(buttonRippler!=null) getChildren().add(0, buttonRippler); for (int i = 1; i < getChildren().size(); i++) { final Node child = getChildren().get(i); if(child instanceof Text) child.setMouseTransparent(true); } }
connectorShape.getNode().setMouseTransparent(notEditable);
Node foregroundNode = createButton(); foregroundNode.getStyleClass().add(STRONG); foregroundNode.setMouseTransparent(true);
lidarScanRootNode.setMouseTransparent(true); bufferOcTreeMeshView.setMouseTransparent(true); ocTreeViewer.getRoot().setMouseTransparent(true); boundingBoxMeshView.setMouseTransparent(true); root.getChildren().addAll(lidarScanRootNode, bufferOcTreeMeshView, ocTreeViewer.getRoot(), planarRegionMeshView, intersectionsMeshView, boundingBoxMeshView);