Skip to content

Commit

Permalink
440 Reset execution monitor pipeline sorting to default
Browse files Browse the repository at this point in the history
  • Loading branch information
mvi-eea-sk committed Sep 29, 2014
1 parent ab77480 commit 801d8f1
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ private void buildPage(final ExecutionListPresenter presenter) {

// Refresh button. Refreshing the table
Button btnRefresh = new Button("Refresh", new Button.ClickListener() {
private static final long serialVersionUID = 1L;

@Override
public void buttonClick(Button.ClickEvent event) {
presenter.refreshEventHandler();
Expand All @@ -207,13 +209,32 @@ public void buttonClick(Button.ClickEvent event) {
btnClearFilters.setWidth("120px");
btnClearFilters.addStyleName("v-button-primary");
btnClearFilters.addClickListener(new com.vaadin.ui.Button.ClickListener() {
private static final long serialVersionUID = 1L;

@Override
public void buttonClick(Button.ClickEvent event) {
// TODO move this to the monitorTable
monitorTable.resetFilters();
}
});
topLine.addComponent(btnClearFilters);

// clear table sorting
Button btnClearSort = new Button("Clear Sort");
btnClearSort.setHeight("25px");
btnClearSort.setWidth("120px");
btnClearSort.addStyleName("v-button-primary");
btnClearSort.addClickListener(new ClickListener() {
private static final long serialVersionUID = 1L;

@Override
public void buttonClick(ClickEvent event) {
monitorTable.setSortContainerPropertyId(null);; // deselect column
monitorTable.sort(new Object[] { "id" }, new boolean[] { false });
}
});
topLine.addComponent(btnClearSort);

// Table with pipeline execution records
monitorTable = initializeExecutionTable(presenter);
monitorTableLayout.addComponent(monitorTable);
Expand Down

0 comments on commit 801d8f1

Please sign in to comment.