class CrudComponent implements IsWidget {

    public FormDisplayer getFormDisplayer() {
        if (helper.showEmbeddedForms()) {
            return embeddedFormDisplayer;
        }
        return modalFormDisplayer;
    }

    @Inject public  CrudComponent(final CrudComponentView<MODEL, FORM_MODEL> view,
                         final EmbeddedFormDisplayer embeddedFormDisplayer,
                         final ModalFormDisplayer modalFormDisplayer,
                         final TranslationService translationService);

}