Exemplo n.º 1
0
 /* (non-Javadoc)
  * @see com.gresham.darwin.ui.widgets.grid.data.rowgroups.IRowGroup#removeMemberRowGroup(com.gresham.darwin.ui.widgets.grid.data.rowgroups.IRowGroup)
  */
 public boolean removeRowGroup(final IRowGroup<T> rowGroup) {
   // Remove all members in the group.
   rowGroup.setParentGroup(null);
   rowGroup.clear();
   boolean removed = this.childGroups.remove(rowGroup);
   rowGroupModel.notifyListeners();
   return removed;
 }
Exemplo n.º 2
0
  public void clear() {
    synchronized (this.childGroups) {
      for (final IRowGroup<T> rowGroup : this.childGroups) {
        rowGroup.clear();
      }
    }

    synchronized (rowMembers) {
      for (T row : new ArrayList<T>(this.rowMembers)) {
        removeMemberRow(row);
      }
    }

    synchronized (staticRowMembers) {
      for (T row : new ArrayList<T>(this.staticRowMembers)) {
        removeMemberRow(row);
      }
    }
  }