@Inject public DataShieldPackageView(EventBus eventBus) { super(eventBus); widget = uiBinder.createAndBindUi(this); dialog.setMinHeight(DIALOG_WIDTH); dialog.setMinWidth(DIALOG_HEIGHT); }
@Inject public IdentifiersMappingModalView( Binder uiBinder, EventBus eventBus, Translations translations) { super(eventBus); this.translations = translations; initWidget(uiBinder.createAndBindUi(this)); dialog.setTitle(translations.editIdentifiersMapping()); dialog.setResizable(true); }
@Inject public EntityModalView(EventBus eventBus) { super(eventBus); widget = uiBinder.createAndBindUi(this); valueSelectionHandler = new ValueSelectionHandlerImpl(); initializeTable(); initializeDisplayOptions(); dialog.setTitle(translations.entityDetailsModalTitle()); dialog.setMinWidth(MIN_WIDTH); dialog.setMinHeight(MIN_HEIGHT); tableChooser.addStyleName("table-chooser-large"); }
@Override public void showError(String message, @Nullable FormField group) { if (Strings.isNullOrEmpty(message)) return; String msg = message; try { ClientErrorDto errorDto = JsonUtils.unsafeEval(message); msg = errorDto.getStatus(); } catch (Exception ignored) { } if (group == null) { dialog.addAlert(msg, AlertType.ERROR); } else { dialog.addAlert(msg, AlertType.ERROR, variableGroup); } }
@Override public void setMode(VocabularyEditModalPresenter.EDIT_MODE editionMode) { modal.setTitle( editionMode == VocabularyEditModalPresenter.EDIT_MODE.CREATE ? translations.addVocabulary() : translations.editVocabulary()); }
@Override public void renderProperties(VariableDto variable, boolean modifyName) { if (variable != null) { variableName.setText(variable.getName()); description.setText( AttributeHelper.getAttributeValue(variable.getAttributesArray(), "description")); } else { dialog.setTitle(translations.addIdentifiersMapping()); } variableName.setEnabled(modifyName); }
@Override public void showError( @Nullable IndexConfigurationPresenter.Display.FormField formField, String message) { ControlGroup group = null; if (formField != null) { switch (formField) { case CLUSTER_NAME: group = clusterGroup; break; case SHARDS: group = shardsGroup; break; case REPLICAS: group = replicasGroup; break; } } if (group == null) { dialog.addAlert(message, AlertType.ERROR); } else { dialog.addAlert(message, AlertType.ERROR, group); } }
@UiHandler("closeButton") void onClose(ClickEvent event) { dialog.hide(); }
@Override public void showError(@Nullable FormField formField, String message) { modal.addAlert(message, AlertType.ERROR); }
@UiHandler("cancelButton") public void onCancelButton(ClickEvent event) { dialog.hide(); }
@Override public void setDialogMode(IndexConfigurationPresenter.Mode dialogMode) { dialog.setTitle(translations.esConfigurationLabel()); }
@Override public void hideDialog() { dialog.hide(); }
private void initWidgets() { dialog.hide(); }
@Override public void show() { dialog.setTitle(translations.dataShieldPackageDescription()); super.show(); }
@Override public void clearErrors() { dialog.closeAlerts(); }
@UiHandler("cancel") void onCancel(ClickEvent event) { modal.hide(); }
@Inject public VocabularyEditModalView(EventBus eventBus) { super(eventBus); uiBinder.createAndBindUi(this); modal.setTitle(translations.addTaxonomy()); }