Created
August 23, 2012 13:39
-
-
Save mkubala/3436684 to your computer and use it in GitHub Desktop.
przykład użycia GridComponent.setCustomRestriction(..)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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