Skip to content

Commit

Permalink
webadmin: Add IDs to main events view table
Browse files Browse the repository at this point in the history
The events table used default ids. To allow
testing of the cluster upgrade, where the events
table shows the progress of the upgrade, it is
more convenient to use specific ids.

This patch adds ViewIdHandler to MainEventView that
generates ids with MainEventView_ prefix.
  • Loading branch information
ljelinkova committed Sep 8, 2022
1 parent 34194d0 commit 50f9c13
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.ovirt.engine.core.common.businessentities.AuditLog;
import org.ovirt.engine.core.common.mode.ApplicationMode;
import org.ovirt.engine.core.searchbackend.AuditLogConditionFieldAutoCompleter;
import org.ovirt.engine.ui.common.idhandler.ElementIdHandler;
import org.ovirt.engine.ui.common.uicommon.model.MainModelProvider;
import org.ovirt.engine.ui.common.widget.table.column.AbstractFullDateTimeColumn;
import org.ovirt.engine.ui.common.widget.table.column.AbstractTextColumn;
Expand All @@ -27,6 +28,10 @@
public class MainEventView extends AbstractMainWithDetailsTableView<AuditLog, EventListModel<Void>>
implements MainEventPresenter.ViewDef {

interface ViewIdHandler extends ElementIdHandler<MainEventView> {
ViewIdHandler idHandler = GWT.create(ViewIdHandler.class);
}

interface ViewUiBinder extends UiBinder<Widget, MainEventView> {
ViewUiBinder uiBinder = GWT.create(ViewUiBinder.class);
}
Expand All @@ -49,6 +54,7 @@ public MainEventView(MainModelProvider<AuditLog, EventListModel<Void>> modelProv
initTable();

initWidget(ViewUiBinder.uiBinder.createAndBindUi(this));
ViewIdHandler.idHandler.generateAndSetIds(this);
getTable().setTableOverhead(radioButtonPanel);

tablePanel.add(getTable());
Expand Down

0 comments on commit 50f9c13

Please sign in to comment.