Skip to content

Instantly share code, notes, and snippets.

@mkubala
Created August 23, 2012 13:39
Show Gist options
  • Save mkubala/3436684 to your computer and use it in GitHub Desktop.
Save mkubala/3436684 to your computer and use it in GitHub Desktop.
przykład użycia GridComponent.setCustomRestriction(..)
public void <nazwa metody>(final ViewDefinitionState view) {
final GridComponent someGrid = (GridComponent) view.getComponentByReference("grid");
final CustomRestriction onlyKowalski = new CustomRestriction() {
@Override
public void addRestriction(final SearchCriteriaBuilder scb) {
scb.add(SearchRestrictions.eq("worker", "Jan Kowalski"));
}
};
someGrid.setCustomRestriction(onlyKowalski);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment