Search in sources :

Example 16 with RefreshFormPropertiesEvent

use of org.kie.workbench.common.stunner.forms.client.event.RefreshFormPropertiesEvent in project kie-wb-common by kiegroup.

the class BPMNDiagramFilterProvider method onFormFieldChanged.

void onFormFieldChanged(@Observes FormFieldChanged formFieldChanged) {
    final String adHocFieldName = BPMNDiagramImpl.DIAGRAM_SET + "." + DiagramSet.ADHOC;
    if (!Objects.equals(formFieldChanged.getName(), adHocFieldName)) {
        return;
    }
    refreshFormPropertiesEvent.fire(new RefreshFormPropertiesEvent(sessionManager.getCurrentSession(), formFieldChanged.getUuid()));
}
Also used : RefreshFormPropertiesEvent(org.kie.workbench.common.stunner.forms.client.event.RefreshFormPropertiesEvent)

Aggregations

RefreshFormPropertiesEvent (org.kie.workbench.common.stunner.forms.client.event.RefreshFormPropertiesEvent)16 Test (org.junit.Test)7 ClientSession (org.kie.workbench.common.stunner.core.client.session.ClientSession)5 AbstractCanvasHandler (org.kie.workbench.common.stunner.core.client.canvas.AbstractCanvasHandler)3 CanvasHandler (org.kie.workbench.common.stunner.core.client.canvas.CanvasHandler)3 CanvasViolation (org.kie.workbench.common.stunner.core.client.command.CanvasViolation)2 Definition (org.kie.workbench.common.stunner.core.graph.content.definition.Definition)2 ArrayList (java.util.ArrayList)1 List (java.util.List)1 Optional (java.util.Optional)1 Consumer (java.util.function.Consumer)1 Function (java.util.function.Function)1 Supplier (java.util.function.Supplier)1 ApplicationScoped (javax.enterprise.context.ApplicationScoped)1 Event (javax.enterprise.event.Event)1 Inject (javax.inject.Inject)1 TranslationService (org.jboss.errai.ui.client.local.spi.TranslationService)1 Before (org.junit.Before)1 HasExpression (org.kie.workbench.common.dmn.api.definition.HasExpression)1 HasName (org.kie.workbench.common.dmn.api.definition.HasName)1