/** * Indicates if an item is a member of the aggregate at the given row * @param row the table row of the aggregate * @param member the item to check from containment * @return true if the item is in the aggregate, false otherwise */ public boolean aggregateContains(int row, VisualItem member) { return getAggregatedRow(row, member) >= 0; }
/** * Remove an item from the aggregation at the given row * @param row the row index of the aggregate * @param member the item to remove from the aggregation */ public void removeFromAggregate(int row, VisualItem member) { validRowCheck(row, true); int ar = getAggregatedRow(row, member); if ( ar >= 0 ) { m_aggregated.removeRow(ar); fireTableEvent(row, row, EventConstants.ALL_COLUMNS, EventConstants.UPDATE); } }