use of org.kie.workbench.common.stunner.forms.client.widgets.container.displayer.FormDisplayer in project kie-wb-common by kiegroup.
the class FormsContainer method render.
public void render(final String graphUuid, final Element<? extends Definition<?>> element, final Path diagramPath, final FieldChangeHandler changeHandler) {
FormDisplayer displayer = getDisplayer(graphUuid, element);
displayer.render(element, diagramPath, changeHandler);
if (null != currentDisplayer && !displayer.equals(currentDisplayer)) {
currentDisplayer.hide();
}
displayer.show();
currentDisplayer = displayer;
}
use of org.kie.workbench.common.stunner.forms.client.widgets.container.displayer.FormDisplayer in project kie-wb-common by kiegroup.
the class FormsContainer method clearDisplayer.
private void clearDisplayer(FormDisplayerKey key) {
FormDisplayer displayer = formDisplayers.remove(key);
LOGGER.fine("Clearing form displayer for element: " + key.getElementUid());
view.removeDisplayer(displayer);
displayer.hide();
if (displayer.equals(currentDisplayer)) {
currentDisplayer = null;
}
displayersInstance.destroy(displayer);
}
use of org.kie.workbench.common.stunner.forms.client.widgets.container.displayer.FormDisplayer in project kie-wb-common by kiegroup.
the class FormsContainerTest method createDisplayer.
protected FormDisplayer createDisplayer() {
FormDisplayer displayer = mock(FormDisplayer.class);
activeDisplayers.add(displayer);
return displayer;
}
Aggregations