Search in sources :

Example 1 with EntityCrudKitSettingsDialogController

use of edu.stanford.bmir.protege.web.client.crud.EntityCrudKitSettingsDialogController in project webprotege by protegeproject.

the class ShowFreshEntitySettingsHandlerImpl method showDialog.

private void showDialog(final GetEntityCrudKitSettingsResult result) {
    EntityCrudKitSettingsDialogController controller = dialogControllerProvider.get();
    WebProtegeDialog<EntityCrudKitSettings<?>> dlg = new WebProtegeDialog<>(controller);
    dlg.getController().setDialogButtonHandler(DialogButton.OK, (data, closer) -> updateFreshEntitySettings(result.getSettings(), data, closer));
    dlg.setPopupPositionAndShow((w, h) -> dlg.setPopupPosition((Window.getClientWidth() - w) / 2, 100));
    controller.getEditor().setValue(result.getSettings());
}
Also used : EntityCrudKitSettingsDialogController(edu.stanford.bmir.protege.web.client.crud.EntityCrudKitSettingsDialogController) WebProtegeDialog(edu.stanford.bmir.protege.web.client.library.dlg.WebProtegeDialog)

Aggregations

EntityCrudKitSettingsDialogController (edu.stanford.bmir.protege.web.client.crud.EntityCrudKitSettingsDialogController)1 WebProtegeDialog (edu.stanford.bmir.protege.web.client.library.dlg.WebProtegeDialog)1