Ejemplo n.º 1
0
 /** {@inheritDoc} */
 @Override
 public void resetSelectedItems() {
   markAllItemsDirty();
   Set<IModel<T>> oldSelected = new HashSet<IModel<T>>(selectedItems);
   selectedItems.clear();
   for (IModel<T> model : oldSelected) {
     onItemSelectionChanged(model, false);
   }
 }
Ejemplo n.º 2
0
 /** {@inheritDoc} */
 @Override
 public void selectAllVisibleItems() {
   WebMarkupContainer body = (WebMarkupContainer) get("form:bodyContainer:body:row");
   if (body != null) {
     for (Component component : body) {
       IModel<T> model = (IModel<T>) component.getDefaultModel();
       selectItem(model, true);
     }
   }
   markAllItemsDirty();
 }