return PackageResources.LogStatusFilter.getFilterString(lastSelection);
}
@Override
public void decorate(UiCanvas canvas) {
Grid quickSelectors = Grid.oneColumn(6);
quickSelectors.addAll(
new SelectAll(),
new SelectSet("Unselect All", EnumSet.noneOf(LogStatus.class), "Unselect all log statuses"),
new SelectSet("Completed", LogStatus.completed(),
"Include only those operations that have completed"),
new SelectSet("Not Completed", LogStatus.stillInQueue(),
"Include only those operations that are still running or in the queue")
);
Grid checkBoxes = new Grid(0, 2, 8, 6);
for (LogStatus s : displayOrder()) {
checkBoxes.add(selectors.get(s));
}
BorderLayoutBuilder layout = new BorderLayoutBuilder(0, 8);
layout.center(checkBoxes).east(InvisiblePanel.newPanel(quickSelectors));
layout.setBorder(StyleSheet.getDefaultTitleBorder(PackageResources.LogStatusFilter.LABEL));
layout.decorate(canvas);