method2testcases stringlengths 118 6.63k |
|---|
### Question:
PropertiesPanelNotifier { void notifyVariables(final Node node, final Object definition) { if (definition instanceof HasVariable) { notifyOutdatedElement(node, asHasVariable(definition).getVariable()); } } @Inject PropertiesPanelNotifier(final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,... |
### Question:
PropertiesPanelNotifier { Object getDefinition(final Node node) { final ViewImpl content = (ViewImpl) node.getContent(); return content.getDefinition(); } @Inject PropertiesPanelNotifier(final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final SessionMa... |
### Question:
PropertiesPanelNotifier { List<Node> getNodes() { final List<Node> nodes = new ArrayList<>(); getGraph().ifPresent(graph -> { graph.nodes().forEach(nodes::add); }); return nodes; } @Inject PropertiesPanelNotifier(final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
... |
### Question:
PropertiesPanelNotifier { Optional<Graph<?, Node>> getGraph() { final Optional<CanvasHandler> canvasHandler = getCurrentSession().map(ClientSession::getCanvasHandler); final Optional<Diagram> diagram = canvasHandler.map(CanvasHandler::getDiagram); return diagram.map(Diagram::getGraph); } @Inject Properti... |
### Question:
DataTypeUpdateHandler extends DataTypeHandler { public void update(final DataType dataType) { final String type = getTypeName(dataType); if (!isBuiltInType(type)) { dataTypeManager .from(dataType) .withRefreshedSubDataTypes(type); } } @Inject DataTypeUpdateHandler(final ItemDefinitionStore itemDefinition... |
### Question:
DataTypeUpdateHandler extends DataTypeHandler { public List<DataType> refreshDependentDataTypes(final DataType dataType, final String oldItemDefinitionName) { final List<DataType> affectedDataTypes = new ArrayList<>(); affectedDataTypes.addAll(handleTopLevelDataTypeUpdate(dataType, oldItemDefinitionName))... |
### Question:
DataTypeUpdateHandler extends DataTypeHandler { List<DataType> handleTopLevelDataTypeUpdate(final DataType dataType, final String oldItemDefinitionName) { return updateAllChildrenWithTheNewTypeName(dataType, oldItemDefinitionName); } @Inject DataTypeUpdateHandler(final ItemDefinitionStore itemDefinitionS... |
### Question:
DataTypeUpdateHandler extends DataTypeHandler { List<DataType> handleNestedDataTypeFieldUpdate(final DataType dataType) { final List<DataType> affectedDataTypes = new ArrayList<>(); getClosestTopLevelDataType(dataType) .ifPresent(topLevelUpdate -> { refreshSubDataTypes(topLevelUpdate, topLevelUpdate.getNa... |
### Question:
DataTypeUpdateHandler extends DataTypeHandler { void refreshSubDataType(final DataType dataType, final String newType) { final ItemDefinition itemDefinition = itemDefinitionStore.get(dataType.getUUID()); dataTypeManager.from(dataType).withType(newType); recordEngine.doUpdate(dataType, itemDefinition); ref... |
### Question:
DataTypeDestroyHandler extends DataTypeHandler { public void destroy(final DataType dataType) { final Optional<DataType> dataTypeParent = Optional.ofNullable(parent(dataType)); dataTypeParent.ifPresent(parent -> { parent.getSubDataTypes().remove(dataType); }); unIndex(dataType); } @Inject DataTypeDestroy... |
### Question:
DataTypeDestroyHandler extends DataTypeHandler { public List<DataType> refreshDependentDataTypes(final DataType dataType) { final List<DataType> affectedDataTypes = new ArrayList<>(); affectedDataTypes.addAll(handleTopLevelDataTypes(dataType)); affectedDataTypes.addAll(handleNestedDataTypes(dataType)); re... |
### Question:
DataTypeDestroyHandler extends DataTypeHandler { List<DataType> handleTopLevelDataTypes(final DataType dataType) { final List<DataType> affected = new ArrayList<>(); if (!dataType.isTopLevel()) { return affected; } final List<DataType> dataTypesByType = getSubDataTypesByType(dataType.getName()); for (fina... |
### Question:
DataTypeDestroyHandler extends DataTypeHandler { List<DataType> handleNestedDataTypes(final DataType dataType) { final List<DataType> affectedDataTypes = new ArrayList<>(); getClosestTopLevelDataType(dataType).ifPresent(topLevel -> { final String type = topLevel.getName(); affectedDataTypes.add(topLevel);... |
### Question:
ItemDefinitionCreateHandler { public ItemDefinition appendItemDefinition() { final ItemDefinition itemDefinition = new ItemDefinition(); itemDefinitions().add(itemDefinition); return itemDefinition; } @Inject ItemDefinitionCreateHandler(final ItemDefinitionUtils itemDefinitionUtils,
... |
### Question:
ItemDefinitionCreateHandler { Optional<ItemDefinition> lookupAbsoluteParent(final String parentUUID) { final Optional<ItemDefinition> optionalParent = Optional.ofNullable(getIndexedItemDefinition(parentUUID)); if (optionalParent.isPresent()) { final ItemDefinition parent = optionalParent.get(); final bool... |
### Question:
RuleAnnotationClauseConverter { public static org.kie.dmn.model.api.RuleAnnotationClause dmnFromWB(final RuleAnnotationClause wb) { if (wb == null) { return null; } final org.kie.dmn.model.api.RuleAnnotationClause rule = new TRuleAnnotationClause(); rule.setName(wb.getName().getValue()); return rule; } s... |
### Question:
DataTypeStore { public DataType get(final String uuid) { return dataTypes.get(uuid); } DataType get(final String uuid); void index(final String uuid,
final DataType dataType); void clear(); int size(); List<DataType> getTopLevelDataTypes(); List<DataType> all(); void unIndex(final S... |
### Question:
DataTypeStore { public void index(final String uuid, final DataType dataType) { dataTypes.put(uuid, dataType); } DataType get(final String uuid); void index(final String uuid,
final DataType dataType); void clear(); int size(); List<DataType> getTopLevelDataTypes(); List<DataType> a... |
### Question:
DataTypeStore { public void clear() { dataTypes.clear(); } DataType get(final String uuid); void index(final String uuid,
final DataType dataType); void clear(); int size(); List<DataType> getTopLevelDataTypes(); List<DataType> all(); void unIndex(final String uuid); }### Answer:
@... |
### Question:
DataTypeStore { public List<DataType> getTopLevelDataTypes() { return all() .stream() .filter(DataType::isTopLevel) .collect(Collectors.toList()); } DataType get(final String uuid); void index(final String uuid,
final DataType dataType); void clear(); int size(); List<DataType> getT... |
### Question:
DataTypeStore { public void unIndex(final String uuid) { dataTypes.remove(uuid); subDataTypesUUID(uuid).forEach(this::unIndex); } DataType get(final String uuid); void index(final String uuid,
final DataType dataType); void clear(); int size(); List<DataType> getTopLevelDataTypes();... |
### Question:
DataTypeStore { public List<DataType> all() { return new ArrayList<>(dataTypes.values()); } DataType get(final String uuid); void index(final String uuid,
final DataType dataType); void clear(); int size(); List<DataType> getTopLevelDataTypes(); List<DataType> all(); void unIndex(fi... |
### Question:
DataTypeActiveRecord extends ActiveRecord<DataType> { public List<DataType> create(final DataType reference, final CreationType creationType) { return getDataTypeRecordEngine().create(getRecord(), reference, creationType); } DataTypeActiveRecord(final RecordEngine<DataType> recordEngine); List<DataType> c... |
### Question:
DataTypeActiveRecord extends ActiveRecord<DataType> { public List<DataType> destroyWithoutDependentTypes() { return getDataTypeRecordEngine().destroyWithoutDependentTypes(getRecord()); } DataTypeActiveRecord(final RecordEngine<DataType> recordEngine); List<DataType> create(final DataType reference,
... |
### Question:
ItemDefinitionRecordEngine implements DataTypeRecordEngine { @PostConstruct public void init() { dataTypeCreateHandler.init(this); dataTypeDestroyHandler.init(this); dataTypeUpdateHandler.init(this); } @Inject ItemDefinitionRecordEngine(final ItemDefinitionStore itemDefinitionStore,
... |
### Question:
ItemDefinitionRecordEngine implements DataTypeRecordEngine { @Override public List<DataType> update(final DataType dataType) { if (!dataType.isValid()) { throw new UnsupportedOperationException("An invalid Data Type cannot be updated."); } final ItemDefinition itemDefinition = itemDefinitionStore.get(data... |
### Question:
ItemDefinitionRecordEngine implements DataTypeRecordEngine { public void doUpdate(final DataType dataType, final ItemDefinition itemDefinition) { dataTypeUpdateHandler.update(dataType); itemDefinitionUpdateHandler.update(dataType, itemDefinition); } @Inject ItemDefinitionRecordEngine(final ItemDefinition... |
### Question:
ItemDefinitionRecordEngine implements DataTypeRecordEngine { @Override public List<DataType> destroy(final DataType dataType) { doDestroy(dataType); return refreshDependentDataTypesFromDestroyOperation(dataType); } @Inject ItemDefinitionRecordEngine(final ItemDefinitionStore itemDefinitionStore,
... |
### Question:
ItemDefinitionRecordEngine implements DataTypeRecordEngine { @Override public List<DataType> destroyWithoutDependentTypes(final DataType dataType) { final List<DataType> affectedDataTypes = new ArrayList<>(); affectedDataTypes.add(dataType); doDestroy(dataType, false); return affectedDataTypes; } @Inject ... |
### Question:
ItemDefinitionRecordEngine implements DataTypeRecordEngine { @Override public List<DataType> create(final DataType dataType) { return dataTypeCreateHandler.append(dataType, itemDefinitionCreateHandler.appendItemDefinition()); } @Inject ItemDefinitionRecordEngine(final ItemDefinitionStore itemDefinitionSt... |
### Question:
ItemDefinitionRecordEngine implements DataTypeRecordEngine { @Override public boolean isValid(final DataType dataType) { return dataTypeNameValidator.isValid(dataType); } @Inject ItemDefinitionRecordEngine(final ItemDefinitionStore itemDefinitionStore,
final ItemDefi... |
### Question:
ItemDefinitionRecordEngine implements DataTypeRecordEngine { public void doDestroy(final DataType dataType) { doDestroy(dataType, true); } @Inject ItemDefinitionRecordEngine(final ItemDefinitionStore itemDefinitionStore,
final ItemDefinitionDestroyHandler itemDefinit... |
### Question:
ExternalLinksConverter extends DMNModelInstrumentedBaseConverter { @Override protected void assignAttributes(final HierarchicalStreamReader reader, final Object parent) { superAssignAttributes(reader, parent); final ExternalLink externalLink = (ExternalLink) parent; externalLink.setName(reader.getAttribut... |
### Question:
ValueAndDataTypePopoverViewImpl extends AbstractPopoverViewImpl implements ValueAndDataTypePopoverView { @Override public void init(final Presenter presenter) { this.presenter = presenter; typeRefEditor.addValueChangeHandler(e -> currentTypeRef = e.getValue()); setKeyDownListeners(); } ValueAndDataTypePop... |
### Question:
ValueAndDataTypePopoverViewImpl extends AbstractPopoverViewImpl implements ValueAndDataTypePopoverView { @Override protected void setKeyDownListeners() { super.setKeyDownListeners(); final Element manageButton = getManageButton(); manageButton.addEventListener(BrowserEvents.KEYDOWN, getManageButtonKeyDown... |
### Question:
ValueAndDataTypePopoverViewImpl extends AbstractPopoverViewImpl implements ValueAndDataTypePopoverView { boolean isTabKeyPressed(final KeyboardEvent event) { return Objects.equals(event.key, TAB_KEY); } ValueAndDataTypePopoverViewImpl(); @Inject ValueAndDataTypePopoverViewImpl(final Input valueEditor,
... |
### Question:
ValueAndDataTypePopoverViewImpl extends AbstractPopoverViewImpl implements ValueAndDataTypePopoverView { boolean isTab(final KeyDownEvent event) { return Objects.equals(event.getNativeKeyCode(), KeyCodes.KEY_TAB); } ValueAndDataTypePopoverViewImpl(); @Inject ValueAndDataTypePopoverViewImpl(final Input va... |
### Question:
ValueAndDataTypePopoverViewImpl extends AbstractPopoverViewImpl implements ValueAndDataTypePopoverView { boolean isEsc(final KeyDownEvent event) { return Objects.equals(event.getNativeKeyCode(), KeyCodes.KEY_ESCAPE); } ValueAndDataTypePopoverViewImpl(); @Inject ValueAndDataTypePopoverViewImpl(final Input... |
### Question:
ValueAndDataTypePopoverViewImpl extends AbstractPopoverViewImpl implements ValueAndDataTypePopoverView { boolean isEnter(final KeyDownEvent event) { return Objects.equals(event.getNativeKeyCode(), KeyCodes.KEY_ENTER); } ValueAndDataTypePopoverViewImpl(); @Inject ValueAndDataTypePopoverViewImpl(final Inpu... |
### Question:
ValueAndDataTypePopoverViewImpl extends AbstractPopoverViewImpl implements ValueAndDataTypePopoverView { @Override public void setDMNModel(final DMNModelInstrumentedBase dmnModel) { typeRefEditor.setDMNModel(dmnModel); previousTypeRef = typeRefEditor.getValue(); } ValueAndDataTypePopoverViewImpl(); @Injec... |
### Question:
ExternalLinksConverter extends DMNModelInstrumentedBaseConverter { @Override protected void writeAttributes(final HierarchicalStreamWriter writer, final Object parent) { superWriteAttributes(writer, parent); final ExternalLink externalLink = (ExternalLink) parent; writer.addAttribute(URL, externalLink.get... |
### Question:
ValueAndDataTypePopoverViewImpl extends AbstractPopoverViewImpl implements ValueAndDataTypePopoverView { @Override public void initValue(final String value) { valueEditor.setValue(value); currentValue = value; previousValue = value; } ValueAndDataTypePopoverViewImpl(); @Inject ValueAndDataTypePopoverView... |
### Question:
ValueAndDataTypePopoverViewImpl extends AbstractPopoverViewImpl implements ValueAndDataTypePopoverView { @Override public void initSelectedTypeRef(final QName typeRef) { typeRefEditor.setValue(typeRef, false); currentTypeRef = typeRef; previousTypeRef = typeRef; } ValueAndDataTypePopoverViewImpl(); @Injec... |
### Question:
ValueAndDataTypePopoverViewImpl extends AbstractPopoverViewImpl implements ValueAndDataTypePopoverView { @Override public void show(final Optional<String> popoverTitle) { valueLabel.setTextContent(presenter.getValueLabel()); getMonitor().show(popoverTitle); } ValueAndDataTypePopoverViewImpl(); @Inject Va... |
### Question:
ValueAndDataTypePopoverViewImpl extends AbstractPopoverViewImpl implements ValueAndDataTypePopoverView { @SuppressWarnings("unused") @EventHandler("valueEditor") void onValueChange(final BlurEvent event) { final String value = valueEditor.getValue(); final String normalisedValue = presenter.normaliseValue... |
### Question:
DataTypesPage extends DMNPage { @PostConstruct public void init() { dataTypeShortcuts.init(treeList); } @Inject DataTypesPage(final DataTypeList treeList,
final ItemDefinitionUtils itemDefinitionUtils,
final ItemDefinitionStore definitionStore,
... |
### Question:
DataTypesPage extends DMNPage { @Override public void onLostFocus() { flashMessages.hideMessages(); } @Inject DataTypesPage(final DataTypeList treeList,
final ItemDefinitionUtils itemDefinitionUtils,
final ItemDefinitionStore definitionStore,
... |
### Question:
DataTypesPage extends DMNPage { public void reload() { loadedDMNModelNamespace = currentDMNModelNamespace(); cleanDataTypeStore(); loadDataTypes(); } @Inject DataTypesPage(final DataTypeList treeList,
final ItemDefinitionUtils itemDefinitionUtils,
final I... |
### Question:
DataTypesPage extends DMNPage { void refreshPageView() { final HTMLDivElement pageView = getPageView(); RemoveHelper.removeChildren(pageView); pageView.appendChild(flashMessages.getElement()); pageView.appendChild(treeList.getElement()); } @Inject DataTypesPage(final DataTypeList treeList,
... |
### Question:
DataTypesPage extends DMNPage { String currentDMNModelNamespace() { return getNamespace().map(Text::getValue).orElse(""); } @Inject DataTypesPage(final DataTypeList treeList,
final ItemDefinitionUtils itemDefinitionUtils,
final ItemDefinitionStore definit... |
### Question:
DMNDIExtensionsRegister implements DMNExtensionRegister { @Override public void registerExtensionConverters(final XStream xStream) { xStream.processAnnotations(ComponentsWidthsExtension.class); xStream.processAnnotations(ComponentWidths.class); xStream.processAnnotations(ExternalLink.class); xStream.alias... |
### Question:
DataTypesPage extends DMNPage { void cleanDataTypeStore() { definitionStore.clear(); dataTypeStore.clear(); stackIndex.clear(); searchBar.reset(); } @Inject DataTypesPage(final DataTypeList treeList,
final ItemDefinitionUtils itemDefinitionUtils,
final It... |
### Question:
DataTypesPage extends DMNPage { void loadDataTypes() { treeList.setupItems(itemDefinitionUtils .all() .stream() .map(this::makeDataType) .collect(Collectors.toList())); } @Inject DataTypesPage(final DataTypeList treeList,
final ItemDefinitionUtils itemDefinitionUtils,
... |
### Question:
DataTypesPage extends DMNPage { DataType makeDataType(final ItemDefinition itemDefinition) { return dataTypeManager.from(itemDefinition).get(); } @Inject DataTypesPage(final DataTypeList treeList,
final ItemDefinitionUtils itemDefinitionUtils,
final ItemD... |
### Question:
DataTypesPage extends DMNPage { public void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event) { onFocus(); } @Inject DataTypesPage(final DataTypeList treeList,
final ItemDefinitionUtils itemDefinitionUtils,
final ItemDefini... |
### Question:
DataTypesPage extends DMNPage { public void enableShortcuts() { dataTypeShortcuts.setup(); } @Inject DataTypesPage(final DataTypeList treeList,
final ItemDefinitionUtils itemDefinitionUtils,
final ItemDefinitionStore definitionStore,
... |
### Question:
DataTypesPage extends DMNPage { public void disableShortcuts() { dataTypeShortcuts.teardown(); } @Inject DataTypesPage(final DataTypeList treeList,
final ItemDefinitionUtils itemDefinitionUtils,
final ItemDefinitionStore definitionStore,
... |
### Question:
DataTypeNameFormatValidator { public void ifIsValid(final DataType dataType, final Command onSuccess) { final String dataTypeName = dataType.getName(); clientServicesProxy.isValidVariableName(dataTypeName, getCallback(dataType, onSuccess)); } @Inject DataTypeNameFormatValidator(final DMNClientServicesPro... |
### Question:
DataTypeNameFormatValidator { ServiceCallback<Boolean> getCallback(final DataType dataType, final Command onSuccess) { return new ServiceCallback<Boolean>() { @Override public void onSuccess(final Boolean isValid) { if (isValid) { onSuccess.execute(); } else { flashMessageEvent.fire(nameIsInvalidErrorMess... |
### Question:
DataTypeConstraint { @PostConstruct void setup() { view.init(this); disableEditMode(); } @Inject DataTypeConstraint(final View view,
final ManagedInstance<DataTypeConstraintModal> constraintModalManagedInstance); void init(final DataTypeListItem listItem); String getValue();... |
### Question:
DMNDIExtensionsRegister implements DMNExtensionRegister { @Override public void beforeMarshal(final Object o, final QNameMap qmap) { if (o instanceof TDefinitions) { final TDefinitions tDefinitions = (TDefinitions) o; final String prefix = tDefinitions.getPrefixForNamespaceURI(KieDMNModelInstrumentedBase.... |
### Question:
DataTypeConstraint { public void init(final DataTypeListItem listItem) { this.listItem = listItem; this.constraintValue = listItem.getDataType().getConstraint(); this.constraintType = listItem.getDataType().getConstraintType(); refreshView(); } @Inject DataTypeConstraint(final View view,
... |
### Question:
DataTypeConstraint { public HTMLElement getElement() { return view.getElement(); } @Inject DataTypeConstraint(final View view,
final ManagedInstance<DataTypeConstraintModal> constraintModalManagedInstance); void init(final DataTypeListItem listItem); String getValue(); Const... |
### Question:
DataTypeConstraint { public void enableEditMode() { isEditModeEnabled = true; view.showAnchor(); } @Inject DataTypeConstraint(final View view,
final ManagedInstance<DataTypeConstraintModal> constraintModalManagedInstance); void init(final DataTypeListItem listItem); String g... |
### Question:
DataTypeConstraint { public void disableEditMode() { isEditModeEnabled = false; view.hideAnchor(); } @Inject DataTypeConstraint(final View view,
final ManagedInstance<DataTypeConstraintModal> constraintModalManagedInstance); void init(final DataTypeListItem listItem); String... |
### Question:
DataTypeConstraint { void openModal() { constraintModal().load(getListItem().getType(), getValue(), getConstraintType()); constraintModal().show(getOnShowConsumer()); } @Inject DataTypeConstraint(final View view,
final ManagedInstance<DataTypeConstraintModal> constraintModal... |
### Question:
DataTypeConstraint { BiConsumer<String, ConstraintType> getOnShowConsumer() { return (newConstraintValue, newConstraintType) -> { setConstraint(newConstraintValue, newConstraintType); refreshView(); }; } @Inject DataTypeConstraint(final View view,
final ManagedInstance<DataT... |
### Question:
DataTypeConstraint { public void disable() { setConstraint(NONE, ConstraintType.NONE); view.disable(); } @Inject DataTypeConstraint(final View view,
final ManagedInstance<DataTypeConstraintModal> constraintModalManagedInstance); void init(final DataTypeListItem listItem); St... |
### Question:
DataTypeConstraint { public void enable() { view.enable(); } @Inject DataTypeConstraint(final View view,
final ManagedInstance<DataTypeConstraintModal> constraintModalManagedInstance); void init(final DataTypeListItem listItem); String getValue(); ConstraintType getConstrain... |
### Question:
DataTypeConstraint { DataTypeConstraintModal getConstraintModal() { return constraintModal; } @Inject DataTypeConstraint(final View view,
final ManagedInstance<DataTypeConstraintModal> constraintModalManagedInstance); void init(final DataTypeListItem listItem); String getVal... |
### Question:
DataTypeConstraintModalView implements DataTypeConstraintModal.View { @PostConstruct public void init() { setupSelectPicker(); setupSelectPickerOnChangeHandler(); setupEmptyContainer(); } @Inject DataTypeConstraintModalView(final HTMLDivElement header,
final HTMLDiv... |
### Question:
PointUtils { public static void convertToAbsoluteBounds(final Node<?, ?> targetNode) { convertBounds(targetNode, (base, delta) -> base + delta); } private PointUtils(); static org.kie.dmn.model.api.dmndi.Point point2dToDMNDIPoint(org.kie.workbench.common.stunner.core.graph.content.view.Point2D point2d); ... |
### Question:
DataTypeConstraintModalView implements DataTypeConstraintModal.View { @Override public String getHeader() { return header.textContent; } @Inject DataTypeConstraintModalView(final HTMLDivElement header,
final HTMLDivElement body,
... |
### Question:
DataTypeConstraintModalView implements DataTypeConstraintModal.View { @Override public HTMLElement getBody() { return body; } @Inject DataTypeConstraintModalView(final HTMLDivElement header,
final HTMLDivElement body,
final HTM... |
### Question:
DataTypeConstraintModalView implements DataTypeConstraintModal.View { @Override public HTMLElement getFooter() { return footer; } @Inject DataTypeConstraintModalView(final HTMLDivElement header,
final HTMLDivElement body,
final... |
### Question:
DataTypeConstraintModalView implements DataTypeConstraintModal.View { @EventHandler("ok-button") public void onOkButtonClick(final ClickEvent e) { presenter.save(); } @Inject DataTypeConstraintModalView(final HTMLDivElement header,
final HTMLDivElement body,
... |
### Question:
DataTypeConstraintModalView implements DataTypeConstraintModal.View { @EventHandler("cancel-button") public void onCancelButtonClick(final ClickEvent e) { presenter.hide(); } @Inject DataTypeConstraintModalView(final HTMLDivElement header,
final HTMLDivElement body,... |
### Question:
DataTypeConstraintModalView implements DataTypeConstraintModal.View { @EventHandler("clear-all-anchor") public void onClearAllAnchorClick(final ClickEvent e) { presenter.clearAll(); } @Inject DataTypeConstraintModalView(final HTMLDivElement header,
final HTMLDivElem... |
### Question:
DataTypeConstraintModalView implements DataTypeConstraintModal.View { @Override public void setType(final String type) { this.type.textContent = type; } @Inject DataTypeConstraintModalView(final HTMLDivElement header,
final HTMLDivElement body,
... |
### Question:
DataTypeConstraintModalView implements DataTypeConstraintModal.View { @Override public void setupEmptyContainer() { RemoveHelper.removeChildren(componentContainer); componentContainer.appendChild(selectConstraint); } @Inject DataTypeConstraintModalView(final HTMLDivElement header,
... |
### Question:
DataTypeConstraintModalView implements DataTypeConstraintModal.View { @Override public void loadComponent(final ConstraintType constraintType) { presenter.setupComponent(constraintType); RemoveHelper.removeChildren(componentContainer); componentContainer.appendChild(presenter.getCurrentComponent().getElem... |
### Question:
DataTypeConstraintModalView implements DataTypeConstraintModal.View { void setupSelectPicker() { triggerPickerAction(getSelectPicker(), "refresh"); } @Inject DataTypeConstraintModalView(final HTMLDivElement header,
final HTMLDivElement body,
... |
### Question:
DataTypeConstraintModalView implements DataTypeConstraintModal.View { void setupSelectPickerOnChangeHandler() { setupOnChangeHandler(getSelectPicker()); } @Inject DataTypeConstraintModalView(final HTMLDivElement header,
final HTMLDivElement body,
... |
### Question:
DataTypeConstraintModalView implements DataTypeConstraintModal.View { Element getSelectPicker() { return body.querySelector(".selectpicker"); } @Inject DataTypeConstraintModalView(final HTMLDivElement header,
final HTMLDivElement body,
... |
### Question:
DataTypeConstraintModalView implements DataTypeConstraintModal.View { @EventHandler("close-constraint-warning-message") public void onCloseConstraintWarningClick(final ClickEvent e) { hide(constraintWarningMessage); } @Inject DataTypeConstraintModalView(final HTMLDivElement header,
... |
### Question:
DataTypeConstraintModalView implements DataTypeConstraintModal.View { @Override public void showConstraintWarningMessage() { show(constraintWarningMessage); } @Inject DataTypeConstraintModalView(final HTMLDivElement header,
final HTMLDivElement body,
... |
### Question:
DataTypeConstraintModalView implements DataTypeConstraintModal.View { @Override public void setupOnHideHandler(final Command handler) { constraintModalJQuery().on("hidden.bs.modal", (e) -> handler.execute()); } @Inject DataTypeConstraintModalView(final HTMLDivElement header,
... |
### Question:
DataTypeConstraintModal extends Elemental2Modal<DataTypeConstraintModal.View> { @PostConstruct public void setup() { superSetup(); setWidth(WIDTH); this.constraintRange.setModal(this); getView().init(this); } @Inject DataTypeConstraintModal(final View view,
final DataTy... |
### Question:
DataTypeConstraintModal extends Elemental2Modal<DataTypeConstraintModal.View> { public void save() { doSave(getComponentConstraintValue()); } @Inject DataTypeConstraintModal(final View view,
final DataTypeShortcuts dataTypeShortcuts,
f... |
### Question:
DataTypeConstraintModal extends Elemental2Modal<DataTypeConstraintModal.View> { void clearAll() { constraintType = null; doSave(CONSTRAINT_INITIAL_VALUE); } @Inject DataTypeConstraintModal(final View view,
final DataTypeShortcuts dataTypeShortcuts,
... |
### Question:
DataTypeConstraintModal extends Elemental2Modal<DataTypeConstraintModal.View> { void doSave(final String value) { constraintValue = value; getOnSave().accept(value, constraintType); hide(); } @Inject DataTypeConstraintModal(final View view,
final DataTypeShortcuts dataT... |
### Question:
DataTypeConstraintModal extends Elemental2Modal<DataTypeConstraintModal.View> { void prepareView() { getView().setType(getConstraintValueType()); if (!isEmpty(getConstraintValue()) || !isNone(getConstraintType())) { getView().loadComponent(getConstraintType()); } else { getView().setupEmptyContainer(); } ... |
### Question:
PointUtils { public static void convertToRelativeBounds(final Node<?, ?> targetNode) { convertBounds(targetNode, (base, delta) -> base - delta); } private PointUtils(); static org.kie.dmn.model.api.dmndi.Point point2dToDMNDIPoint(org.kie.workbench.common.stunner.core.graph.content.view.Point2D point2d); ... |
### Question:
DataTypeConstraintModal extends Elemental2Modal<DataTypeConstraintModal.View> { boolean isNone(final ConstraintType type) { return type == null || Objects.equals(type, NONE); } @Inject DataTypeConstraintModal(final View view,
final DataTypeShortcuts dataTypeShortcuts,
... |
### Question:
DataTypeConstraintModal extends Elemental2Modal<DataTypeConstraintModal.View> { ConstraintType inferComponentType(final String constraintValue) { final String value = Optional.ofNullable(constraintValue).orElse(""); if (isRange(value)) { return RANGE; } else if (isEnumeration(value)) { return ENUMERATION;... |
### Question:
DataTypeConstraintModal extends Elemental2Modal<DataTypeConstraintModal.View> { public void show(final BiConsumer<String, ConstraintType> onSaveConsumer) { onSave = onSaveConsumer; superShow(); getView().onShow(); getView().setupOnHideHandler(this::onHide); dataTypeShortcuts.disable(); } @Inject DataType... |
### Question:
DataTypeConstraintModal extends Elemental2Modal<DataTypeConstraintModal.View> { @Override public void hide() { superHide(); onHide(); } @Inject DataTypeConstraintModal(final View view,
final DataTypeShortcuts dataTypeShortcuts,
final D... |
### Question:
DataTypeConstraintModal extends Elemental2Modal<DataTypeConstraintModal.View> { void onDataTypeConstraintParserWarningEvent(final @Observes DataTypeConstraintParserWarningEvent e) { getView().showConstraintWarningMessage(); } @Inject DataTypeConstraintModal(final View view,
... |
### Question:
DataTypeConstraintModal extends Elemental2Modal<DataTypeConstraintModal.View> { public void enableOkButton() { getView().enableOkButton(); } @Inject DataTypeConstraintModal(final View view,
final DataTypeShortcuts dataTypeShortcuts,
fi... |
### Question:
DataTypeConstraintModal extends Elemental2Modal<DataTypeConstraintModal.View> { public void disableOkButton() { getView().disableOkButton(); } @Inject DataTypeConstraintModal(final View view,
final DataTypeShortcuts dataTypeShortcuts,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.