+ }
+
+
+ private JPanel getFilterCheckboxes() {
+ SymmetricComponent sc;
+
+ JPanel panel = new JPanel(new MigLayout("fill, ins 0"));
+
+ /*
+ * Add show all compatible check box.
+ */
+ final List<ComponentPreset.Type> compatibleTypes = component.getPresetType().getCompatibleTypes();
+ final ComponentPreset.Type nativeType = component.getPresetType();
+ if (compatibleTypes != null && compatibleTypes.size() > 0) {
+ JCheckBox showAll = new JCheckBox();
+ showAll.setText(trans.get("ComponentPresetChooserDialog.checkbox.showAllCompatible"));
+ panel.add(showAll, "wrap");
+ showAll.addItemListener(new ItemListener() {
+ @Override
+ public void itemStateChanged(ItemEvent e) {
+ if (((JCheckBox) e.getItem()).isSelected()) {
+ presets = Application.getComponentPresetDao().listForTypes(compatibleTypes);
+ } else {
+ presets = Application.getComponentPresetDao().listForType(nativeType);
+ }
+ componentSelectionTable.updateData(presets);
+ }
+ });
+ }