private NativeSelect createPeriodicComboControl() { final NativeSelect combo = new NativeSelect(); combo.setImmediate(true); combo.setNullSelectionAllowed(false); combo.setWidth("50px"); for (int period : PERIOD_VARIANTS) { combo.addItem(period); } return combo; }
protected AbstractSelect createCompatibleSelect( Class<? extends AbstractSelect> fieldType) { AbstractSelect select; if (fieldType.isAssignableFrom(ListSelect.class)) { select = new ListSelect(); select.setMultiSelect(false); } else if (fieldType.isAssignableFrom(NativeSelect.class)) { select = new NativeSelect(); } else if (fieldType.isAssignableFrom(OptionGroup.class)) { select = new OptionGroup(); select.setMultiSelect(false); } else if (fieldType.isAssignableFrom(Table.class)) { Table t = new Table(); t.setSelectable(true); select = t; } else { select = new ComboBox(null); } select.setImmediate(true); select.setNullSelectionAllowed(false); return select; }
/** * Leave OnmsVaadinContainer without generics; the Aries blueprint code cannot match up * the arguments if you put the generic types in. */ public AlarmTable(final String caption, final OnmsVaadinContainer container, final AlarmRepository alarmRepo) { super(caption, container); m_alarmRepo = alarmRepo; m_ackCombo = new NativeSelect(); m_ackCombo.setNullSelectionAllowed(false); m_ackCombo.addItem(ACTION_ACKNOWLEDGE); m_ackCombo.addItem(ACTION_UNACKNOWLEDGE); m_ackCombo.addItem(ACTION_ESCALATE); m_ackCombo.addItem(ACTION_CLEAR); m_ackCombo.setValue(ACTION_ACKNOWLEDGE); // Make "Acknowledge" the default value m_submitButton = new CheckboxButton("Submit"); m_submitButton.setCombo(m_ackCombo); }
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; } },
formLayout.setMargin(false); NativeSelect dropdown = new NativeSelect("Severity"); dropdown.setMultiSelect(false); dropdown.setNewItemsAllowed(false);
ipDropdown = new NativeSelect(); ipDropdown.setCaption("IP Address"); for (String eachIp : ipAddresses) { packetSizeDropdown = new NativeSelect(); packetSizeDropdown.setCaption("Packet Size"); packetSizeDropdown.addItem(64); locationDropdown = new NativeSelect(); locationDropdown.setCaption("Location"); for (String eachLocation : locations) {
formLayout.setMargin(true); m_kscSelect = new NativeSelect(); m_kscSelect.setDescription("Select KSC-report to be displayed"); m_kscSelect.setCaption("KSC-Report");
m_columnsSelect = new NativeSelect(); m_columnsSelect.setCaption("Columns"); m_columnsSelect.setDescription("Number of columns"); m_columnsSelect.setNullSelectionAllowed(false); m_rowsSelect = new NativeSelect(); m_rowsSelect.setCaption("Rows"); m_rowsSelect.setDescription("Number of rows"); m_timeFrameValue.setValue(m_dashletSpec.getParameters().get("timeFrameValue")); m_timeFrameType = new NativeSelect("Timeframe type"); m_timeFrameType.setDescription("Timeframe type"); m_timeFrameType.setNullSelectionAllowed(false); final NativeSelect selectKSCReport = new NativeSelect(); selectKSCReport.setDescription("KSC-report selection"); selectKSCReport.setCaption("KSC Report");
m_maximizeHeight.setValue(maximizeHeight); m_chartSelect = new NativeSelect(); m_chartSelect.setDescription("Select chart to be displayed"); m_chartSelect.setCaption("Chart");
m_nativeSelect = new NativeSelect(); m_nativeSelect.setNullSelectionAllowed(false);
m_nodeSelect = new NativeSelect(); m_nodeSelect.setNullSelectionAllowed(false); m_resourceSelect = new NativeSelect(); m_resourceSelect.setNullSelectionAllowed(false); m_graphSelect = new NativeSelect(); m_graphSelect.setNullSelectionAllowed(false);
m_restrictionSelect = new NativeSelect(); m_restrictionSelect.setCaption("Restriction"); m_restrictionSelect.setNullSelectionAllowed(false);
m_typeSelect = new NativeSelect("Type"); m_typeSelect.setId("edgeTypeSelector"); m_typeSelect.setMultiSelect(false); m_mapFunctionSelect = new NativeSelect("Map Function", ImmutableList.builder() .add(Decrease.class) m_mapFunctionSeveritySelect = new NativeSelect("Severity"); m_mapFunctionSeveritySelect.setMultiSelect(false); m_mapFunctionSeveritySelect.setNewItemsAllowed(false);
topLayout.setWidth("100%"); NativeSelect dashboardSelect = new NativeSelect(); dashboardSelect.setCaption("Grafana Dashboard"); dashboardSelect.addItem("Test");
m_boostedSeveritySelect = new NativeSelect(); m_boostedSeveritySelect.setCaption("Boosted Severity"); m_boostedSeveritySelect.setDescription("Select the boost severity");
m_dashletSelect = new NativeSelect(); m_dashletSelect.setId("opsboard.type"); m_dashletSelect.setCaption("Dashlet");
m_reduceFunctionNativeSelect = new NativeSelect("Reduce Function", ImmutableList.builder() .add(HighestSeverity.class) .add(Threshold.class) m_thresholdStatusSelect = new NativeSelect("Threshold"); m_thresholdStatusSelect.setId("thresholdStatusSelect"); m_thresholdStatusSelect.setRequired(false);
m_nativeSelect = new NativeSelect(); m_nativeSelect.setDescription("Select Ops Board configuration"); m_nativeSelect.setContainerDataSource(WallboardProvider.getInstance().getBeanContainer());
severityLayout.setSizeFull(); m_severitySelect = new NativeSelect("Severity"); m_severitySelect.setEnabled(false); m_severitySelect.setNullSelectionAllowed(false); m_compareOperatorSelect = new NativeSelect("Comparator"); m_compareOperatorSelect.setEnabled(false); m_compareOperatorSelect.setNullSelectionAllowed(false); m_orderBy = new NativeSelect("Order by"); m_orderBy.setNullSelectionAllowed(false); m_orderBy.setMultiSelect(false); m_orderBy.addItem(BusinessServiceSearchCriteriaBuilder.Order.Level.name()); m_orderSequence = new NativeSelect("Asc/Desc "); m_orderSequence.setNullSelectionAllowed(false); m_orderSequence.setMultiSelect(false);