Skip to content

Commit

Permalink
webadmin: Add IDs to main events view table
Browse files Browse the repository at this point in the history
  • Loading branch information
ljelinkova committed Aug 23, 2022
1 parent 2641ec2 commit 10ea4ae
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 10ea4ae

Please sign in to comment.