// ++ create the searchObject and init sorting ++//
HibernateSearchObject<SecRight> soSecRight = new HibernateSearchObject<SecRight>(SecRight.class, countRowsSecRight);
soSecRight.addSort("rigName", false);
Filter f = Filter.or();
if (checkbox_bbox_AddGroupRightDialog_All.isChecked()) {
// nothing todo
}
if (checkbox_bbox_AddGroupRightDialog_Pages.isChecked()) {
f.add(Filter.equal("rigType", 0));
}
if (checkbox_bbox_AddGroupRightDialog_Tabs.isChecked()) {
f.add(Filter.equal("rigType", 5));
}
if (checkbox_bbox_AddGroupRightDialog_MenuCat.isChecked()) {
f.add(Filter.equal("rigType", 1));
}
if (checkbox_bbox_AddGroupRightDialog_MenuItems.isChecked()) {
f.add(Filter.equal("rigType", 2));
}
if (checkbox_bbox_AddGroupRightDialog_Methods.isChecked()) {
f.add(Filter.equal("rigType", 3));
}
if (checkbox_bbox_AddGroupRightDialog_Domain.isChecked()) {
f.add(Filter.equal("rigType", 4));
}
if (checkbox_bbox_AddGroupRightDialog_Components.isChecked()) {
f.add(Filter.equal("rigType", 6));
}
if (textbox_bboxAddGroupRightDialog_rightName.getValue().isEmpty()) {
soSecRight.addFilter(f);
// Set the ListModel.
getPlwSecRights().init(soSecRight, listBoxSingleRightSearch, paging_ListBoxSingleRightSearch);
} else if (!textbox_bboxAddGroupRightDialog_rightName.getValue().isEmpty()) {
soSecRight.addFilter(f);
Filter f1 = Filter.and();
f1.add(Filter.ilike("rigName", "%" + textbox_bboxAddGroupRightDialog_rightName.getValue() + "%"));
soSecRight.addFilter(f1);
// Set the ListModel.
getPlwSecRights().init(soSecRight, listBoxSingleRightSearch, paging_ListBoxSingleRightSearch);
}