@Override public void onAddAttribute() { VariableAttributeModalPresenter presenter = attributeModalProvider.get(); presenter.setDialogMode(Mode.CREATE); presenter.initialize(table, variable); }
private void showEditCustomAttributes(List<JsArray<AttributeDto>> selectedItems) { VariableAttributeModalPresenter presenter = attributeModalProvider.get(); presenter.setDialogMode(selectedItems.size() == 1 ? Mode.UPDATE_SINGLE : Mode.UPDATE_MULTIPLE); presenter.initialize(table, variable, selectedItems); }
@Override public void onDeleteCustomAttribute(List<VariableDto> selectedItems) { VariableAttributeModalPresenter presenter = attributeModalProvider.get(); presenter.setDialogMode(BaseVariableAttributeModalPresenter.Mode.DELETE); presenter.initialize(table, selectedItems); }