added fucntion per Brian request

This commit is contained in:
Kelly Kelly 2019-09-20 12:14:55 -04:00
parent afbfeefff5
commit fe1667b8df

View File

@ -129,9 +129,7 @@ final public class FiltersPanel extends JPanel {
public FiltersPanel() { public FiltersPanel() {
initComponents(); initComponents();
CheckBoxIconPanel panel = createAccoutTypeCheckBoxPanel(Account.Type.DEVICE, true); initalizeDeviceAccountType();
accountTypeMap.put(Account.Type.DEVICE, panel.getCheckBox());
accountTypeListPane.add(panel);
deviceRequiredLabel.setVisible(false); deviceRequiredLabel.setVisible(false);
accountTypeRequiredLabel.setVisible(false); accountTypeRequiredLabel.setVisible(false);
@ -259,12 +257,9 @@ final public class FiltersPanel extends JPanel {
devicesListPane.removeAll(); devicesListPane.removeAll();
accountTypeMap.clear(); accountTypeMap.clear();
accountTypeListPane.removeAll(); accountTypeListPane.removeAll();
CheckBoxIconPanel panel = createAccoutTypeCheckBoxPanel(Account.Type.DEVICE, true); initalizeDeviceAccountType();
accountTypeMap.put(Account.Type.DEVICE, panel.getCheckBox());
accountTypeListPane.add(panel);
}); });
} }
@ -274,6 +269,12 @@ final public class FiltersPanel extends JPanel {
IngestManager.getInstance().removeIngestModuleEventListener(ingestListener); IngestManager.getInstance().removeIngestModuleEventListener(ingestListener);
IngestManager.getInstance().removeIngestJobEventListener(ingestJobListener); IngestManager.getInstance().removeIngestJobEventListener(ingestJobListener);
} }
private void initalizeDeviceAccountType() {
CheckBoxIconPanel panel = createAccoutTypeCheckBoxPanel(Account.Type.DEVICE, true);
accountTypeMap.put(Account.Type.DEVICE, panel.getCheckBox());
accountTypeListPane.add(panel);
}
/** /**
* Populate the Account Types filter widgets * Populate the Account Types filter widgets