use of com.vaadin.flow.component.HasValue.ValueChangeListener in project karnak by OsiriX-Foundation.
the class MonitorView method buildwadoNodeListSelector.
private void buildwadoNodeListSelector() {
wadoNodeListSelector = new Select<>();
wadoNodeListSelector.setEmptySelectionAllowed(false);
WadoNodeList pacsProdWadoNodeList = Util.readWadoNodes(this.getClass().getResource("/config/pacs-wado-web.csv"), "Public web");
wadoNodeListSelector.setItems(pacsProdWadoNodeList);
wadoNodeListSelector.addValueChangeListener((ValueChangeListener<ValueChangeEvent<WadoNodeList>>) event -> logic.wadoNodeListSelected(event.getValue()));
if (!pacsProdWadoNodeList.isEmpty()) {
wadoNodeListSelector.setValue(pacsProdWadoNodeList);
}
}
use of com.vaadin.flow.component.HasValue.ValueChangeListener in project karnak by OsiriX-Foundation.
the class MonitorView method buildDicomNodeListSelector.
private void buildDicomNodeListSelector() {
dicomEchoNodeListSelector = new Select<>();
dicomEchoNodeListSelector.setEmptySelectionAllowed(false);
DicomNodeList pacsProdDicomNodeList = Util.readnodes(this.getClass().getResource("/config/pacs-nodes-web.csv"), "PACS Public WEB");
DicomNodeList newPacsProdDicomNodeList = Util.readnodes(this.getClass().getResource("/config/workstations-nodes.csv"), "Workstations");
dicomEchoNodeListSelector.setItems(pacsProdDicomNodeList, newPacsProdDicomNodeList);
dicomEchoNodeListSelector.addValueChangeListener((ValueChangeListener<ValueChangeEvent<DicomNodeList>>) event -> logic.dicomNodeListSelected(event.getValue()));
if (!pacsProdDicomNodeList.isEmpty()) {
dicomEchoNodeListSelector.setValue(pacsProdDicomNodeList);
}
}
Aggregations