public DicomTagPopup(VisualizrGuiController parentController) { this.parentController = parentController; // setScene(parentController.getScene()); setX(30); setY(30); setAutoHide(false); try { FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("DicomTag.fxml")); Node node = fxmlLoader.load(); if (null != node) { getContent().add(node); } popupController = fxmlLoader.<DicomTagNodeController>getController(); popupController.setSelectable(false); } catch (IOException ioe) { String info = "Failed to load DICOM tag popup: " + ioe.getMessage(); log.warn(info, ioe); } }
public void show(DicomTag dicomTag) { if (null != popupController) { popupController.setDicomTag(dicomTag); show(parentController.getStage()); } }