/** * Creates an empty list box. * * @param isMultipleSelect * specifies if multiple selection is enabled * @deprecated use {@link #setMultipleSelect(boolean)} instead. */ @Deprecated public ListBox(final boolean isMultipleSelect) { this(); setMultipleSelect(isMultipleSelect); }
/** * Creates an empty list box. * * @param isMultipleSelect * specifies if multiple selection is enabled * @deprecated use {@link #setMultipleSelect(boolean)} instead. */ @Deprecated public ListBox(final boolean isMultipleSelect) { this(); setMultipleSelect(isMultipleSelect); }
@Override public ListBox createWidget() { final ListBox listBox = new ListBox(); listBox.setMultipleSelect(isMultipleSelect); return listBox; }
@Override public ListBox createWidget() { final ListBox listBox = new ListBox(); listBox.setMultipleSelect(true); return listBox; }
@Override public ListBox createWidget() { final ListBox listBox = new ListBox(); listBox.setMultipleSelect(true); return listBox; }
@Override public ListBox createWidget() { final ListBox listBox = new ListBox(); listBox.setMultipleSelect(isMultipleSelect); return listBox; }
@Test public void testIsMultiSelect() { makeAbstractProxyPopupDropDownListBox(operator); verify(listBox).setMultipleSelect(isMultiSelect); } }
final DTCellValue52 value) { final ListBox lb = new ListBox(); lb.setMultipleSelect(isMultipleSelect);
final DTCellValue52 value) { final ListBox lb = new ListBox(); lb.setMultipleSelect(isMultipleSelect);
@Test public void testLoadDslConditionsDslEnabledAndPresent() throws Exception { // DSL sentences enabled doReturn(true).when(ruleModeller).isDSLEnabled(); // DSL Conditions present dataModel = PackageDataModelOracleBuilder.newPackageOracleBuilder(new RawMVELEvaluator()) .addExtension(DSLConditionSentence.INSTANCE, Collections.singletonList(dslSentence)) .build(); dataModelPayload = new PackageDataModelOracleBaselinePayload(); dataModelPayload.setAllPackageElements(dataModel.getAllExtensions()); asyncPackageDataModelOracleFactory.makeAsyncPackageDataModelOracle(resourcePath, dataModelPayload); new RuleModellerConditionSelectorPopup(model, ruleModeller, 0, oracle); verify(choices, atLeastOnce()).addItem(keyCaptor.capture(), valueCaptor.capture()); verify(choices).setMultipleSelect(true); Assertions.assertThat(keyCaptor.getAllValues()).contains(DSL_SENTENCE_CHOICE_KEY); Assertions.assertThat(valueCaptor.getAllValues()).contains(DSL_SENTENCE_CHOICE_VALUE); }
@Test public void testLoadDslConditionsPresentButDslDisabled() throws Exception { // DSL sentences disabled doReturn(false).when(ruleModeller).isDSLEnabled(); // DSL Conditions present dataModel = PackageDataModelOracleBuilder.newPackageOracleBuilder(new RawMVELEvaluator()) .addExtension(DSLConditionSentence.INSTANCE, Collections.singletonList(dslSentence)) .build(); dataModelPayload = new PackageDataModelOracleBaselinePayload(); dataModelPayload.setAllPackageElements(dataModel.getAllExtensions()); asyncPackageDataModelOracleFactory.makeAsyncPackageDataModelOracle(resourcePath, dataModelPayload); new RuleModellerConditionSelectorPopup(model, ruleModeller, 0, oracle); verify(choices, atLeastOnce()).addItem(keyCaptor.capture(), valueCaptor.capture()); verify(choices).setMultipleSelect(true); Assertions.assertThat(keyCaptor.getAllValues()).doesNotContain(DSL_SENTENCE_CHOICE_KEY); Assertions.assertThat(valueCaptor.getAllValues()).doesNotContain(DSL_SENTENCE_CHOICE_VALUE); } }
private ListBox makeChoicesListBox() { choices = GWT.create(ListBox.class); choices.setMultipleSelect(true); choices.setPixelSize(getChoicesWidth(), getChoicesHeight()); choices.addKeyUpHandler(new KeyUpHandler() { public void onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent event) { if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) { selectSomething(); } } }); addDSLSentences(); if (!onlyShowDSLStatements) { addFacts(); addExistentialConditionalElements(); addFromConditionalElements(); addFreeFormDrl(); } return choices; }
@Test public void testLoadDslConditionsDslEnabledAndPresent() throws Exception { // DSL sentences enabled doReturn(true).when(ruleModeller).isDSLEnabled(); // DSL Conditions present dataModel = PackageDataModelOracleBuilder.newPackageOracleBuilder(new RawMVELEvaluator()) .addExtension(DSLConditionSentence.INSTANCE, Collections.singletonList(dslSentence)) .build(); dataModelPayload = new PackageDataModelOracleBaselinePayload(); dataModelPayload.setAllPackageElements(dataModel.getAllExtensions()); asyncPackageDataModelOracleFactory.makeAsyncPackageDataModelOracle(resourcePath, dataModelPayload); new RuleModellerConditionSelectorPopup(model, ruleModeller, 0, oracle); verify(choices, atLeastOnce()).addItem(keyCaptor.capture(), valueCaptor.capture()); verify(choices).setMultipleSelect(true); Assertions.assertThat(keyCaptor.getAllValues()).contains(DSL_SENTENCE_CHOICE_KEY); Assertions.assertThat(valueCaptor.getAllValues()).contains(DSL_SENTENCE_CHOICE_VALUE); }
private ListBox makeChoicesListBox() { choices = GWT.create(ListBox.class); choices.setMultipleSelect(true); choices.setPixelSize(getChoicesWidth(), getChoicesHeight()); choices.addKeyUpHandler(new KeyUpHandler() { public void onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent event) { if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) { selectSomething(); } } }); addDSLSentences(); if (!onlyShowDSLStatements) { addFacts(); addExistentialConditionalElements(); addFromConditionalElements(); addFreeFormDrl(); } return choices; }
@Test public void testLoadDslConditionsPresentButDslDisabled() throws Exception { // DSL sentences disabled doReturn(false).when(ruleModeller).isDSLEnabled(); // DSL Conditions present dataModel = PackageDataModelOracleBuilder.newPackageOracleBuilder(new RawMVELEvaluator()) .addExtension(DSLConditionSentence.INSTANCE, Collections.singletonList(dslSentence)) .build(); dataModelPayload = new PackageDataModelOracleBaselinePayload(); dataModelPayload.setAllPackageElements(dataModel.getAllExtensions()); asyncPackageDataModelOracleFactory.makeAsyncPackageDataModelOracle(resourcePath, dataModelPayload); new RuleModellerConditionSelectorPopup(model, ruleModeller, 0, oracle); verify(choices, atLeastOnce()).addItem(keyCaptor.capture(), valueCaptor.capture()); verify(choices).setMultipleSelect(true); Assertions.assertThat(keyCaptor.getAllValues()).doesNotContain(DSL_SENTENCE_CHOICE_KEY); Assertions.assertThat(valueCaptor.getAllValues()).doesNotContain(DSL_SENTENCE_CHOICE_VALUE); } }
private ListBox makeChoicesListBox() { choices = GWT.create(ListBox.class); choices.setMultipleSelect(true); choices.setPixelSize(getChoicesWidth(), getChoicesHeight()); choices.addKeyUpHandler(new KeyUpHandler() { public void onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent event) { if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) { selectSomething(); } } }); addDSLSentences(); if (!onlyShowDSLStatements) { addUpdateNotModify(); addGlobals(); addRetractions(); addModifies(); addInsertions(); addLogicalInsertions(); addGlobalCollections(); addFreeFormDRL(); addCallMethodOn(); addCustomActionPlugins(); } return choices; }
private ListBox makeChoicesListBox() { choices = GWT.create(ListBox.class); choices.setMultipleSelect(true); choices.setPixelSize(getChoicesWidth(), getChoicesHeight()); choices.addKeyUpHandler(new KeyUpHandler() { public void onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent event) { if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) { selectSomething(); } } }); addDSLSentences(); if (!onlyShowDSLStatements) { addUpdateNotModify(); addGlobals(); addRetractions(); addModifies(); addInsertions(); addLogicalInsertions(); addGlobalCollections(); addFreeFormDRL(); addCallMethodOn(); addCustomActionPlugins(); } return choices; }
this.configurationType = configurationType; configuredRules.setMultipleSelect(true);