public String buttonFilter_action() {
tableRowGroup1.clearFilter();
int idx=0;
FilterCriteria firstName = null;
FilterCriteria firstNameMax = null;
if (firstNameFilter.getText() != null &&
((String)firstNameFilter.getText()).length() > 0) {
firstName = new CompareFilterCriteria(
new FieldKey("firstName"), firstNameFilter.getText(),
false, true, true);
idx++;
firstNameMax = new CompareFilterCriteria(
new FieldKey("firstName"), firstNameFilter.getText()+"z",
true, false, false);
idx++;
}
FilterCriteria lastName = null;
FilterCriteria lastNameMax = null;
if (lastNameFilter.getText() != null &&
((String)lastNameFilter.getText()).length() > 0) {
lastName = new CompareFilterCriteria(
new FieldKey("lastName"), lastNameFilter.getText(),
false, true, true);
idx++;
lastNameMax = new CompareFilterCriteria(
new FieldKey("lastName"), lastNameFilter.getText()+"z",
true, false, false);
idx++;
}
FilterCriteria email = null;
FilterCriteria emailMax = null;
if (emailFilter.getText() != null &&
((String)emailFilter.getText()).length() > 0) {
email = new CompareFilterCriteria(
new FieldKey("email"), emailFilter.getText(),
false, true, true);