* @param filter
* a <code>Predicate</code> that decides which <code>EntityType</code>s to include
*/
public EntityTypeSelectionPanel(Predicate<? super EntityType> filter) {
selectionListeners = new EntityTypeSelectionListeners();
checks = Maps.newTreeMap(new DisplayOrder());
createCheckboxes(filter);
panel = layoutCheckBoxes();
previousSelection = EnumSet.noneOf(EntityType.class);
}