package industries.doublehelix.conditionalfilter.gui;

import java.util.Map;

import javax.swing.BorderFactory;

import industries.doublehelix.conditionalfilter.filtertypes.container.MasterFilter;
import industries.doublehelix.conditionalfilter.filtertypes.flat.FlatFilter;

/**
 * a panel representing a single filter (and its subfilters) containing filter field, filter options and add/delete buttons
 * @author klaue
 *
 */
public class MasterFilterPanel extends FilterPanel {
	private static final long serialVersionUID = -7664850672401224596L;

	/**
	 * constructs a new filter line based on an existing filter
	 * @param possibleFilterMap the values of possible filters (not including container filters)
	 * @param filter the master filter. will not be changed by this gui element
	 */
	public MasterFilterPanel(Map<String, FlatFilter> possibleFilterMap, MasterFilter filter) {
		super(possibleFilterMap, -1, filter);
		this.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
		//this.add(Box.createVerticalGlue());
	}
	
	@Override
	public void addPanelForThisFilter() {
		// intentionally left blank, we don't want the master filter itself in here
	}
}
