public AbstractField<Object> getComponent(CriteriaBuilderHelper criteriaBuilderHelper) { NativeSelect nativeSelect = new NativeSelect(); nativeSelect.setCaption("Property"); nativeSelect.setNullSelectionAllowed(false); nativeSelect.setMultiSelect(false); nativeSelect.setNewItemsAllowed(false); nativeSelect.setInvalidAllowed(false); nativeSelect.setStyleName("small"); nativeSelect.setDescription("Property selection"); boolean first = true; for (String property : criteriaBuilderHelper.getEntities()) { nativeSelect.addItem(property); if (first) { nativeSelect.select(property); first = false; } } return nativeSelect; } },
ipDropdown.setCaption("IP Address"); for (String eachIp : ipAddresses) { ipDropdown.addItem(eachIp); packetSizeDropdown.setCaption("Packet Size"); packetSizeDropdown.addItem(64); packetSizeDropdown.addItem(128); locationDropdown.setCaption("Location"); for (String eachLocation : locations) { locationDropdown.addItem(eachLocation);
m_kscSelect.setCaption("KSC-Report"); m_kscSelect.setImmediate(true); m_kscSelect.setNewItemsAllowed(false);
m_chartSelect.setCaption("Chart"); m_chartSelect.setNullSelectionAllowed(false); m_chartSelect.setInvalidAllowed(false);
m_columnsSelect.setCaption("Columns"); m_columnsSelect.setDescription("Number of columns"); m_columnsSelect.setImmediate(true); m_rowsSelect.setCaption("Rows"); m_rowsSelect.setDescription("Number of rows"); m_rowsSelect.setImmediate(true); final NativeSelect selectKSCReport = new NativeSelect(); selectKSCReport.setDescription("KSC-report selection"); selectKSCReport.setCaption("KSC Report"); selectKSCReport.setImmediate(true); selectKSCReport.setNewItemsAllowed(false);
m_restrictionSelect.setCaption("Restriction"); m_restrictionSelect.setNullSelectionAllowed(false); m_restrictionSelect.setMultiSelect(false);
dashboardSelect.setCaption("Grafana Dashboard"); dashboardSelect.addItem("Test"); dashboardSelect.setDescription("Grafana Dashboard to be displayed");
m_boostedSeveritySelect.setCaption("Boosted Severity"); m_boostedSeveritySelect.setDescription("Select the boost severity"); m_boostedSeveritySelect.setMultiSelect(false);
m_dashletSelect.setCaption("Dashlet");