Fixed completely

This commit is contained in:
Zakary Timson 2019-01-28 22:26:56 -05:00
parent a8edc768e9
commit 1aec473459

View File

@ -537,39 +537,21 @@ class Frame extends JFrame {
public void updated() {
if (searchBar.hasFocus() && searchBar.getText().length() > 0) {
for (int i = Frame.access$000((Frame)Frame.this).getRowCount() - 1; i >= 0; --i) {
for (int i = Frame.this.dtm.getRowCount() - 1; i >= 0; --i) {
Frame.this.dtm.removeRow(i);
}
if (Frame.this.viewVendor.isSelected()) {
Main.vendors.keySet().stream().filter(arg_0 -> .lambda$updated$0(searchBar, arg_0)).forEach(key -> {
Frame.this.dtm.addRow(((Vendor)Main.vendors.get(key)).toArray());
}
);
Main.vendors.keySet().stream().filter(key -> key.contains(searchBar.getText())).forEach(key -> Frame.this.dtm.addRow(((Vendor)Main.vendors.get(key)).toArray()));
} else if (Frame.this.viewUserVendor.isSelected()) {
Main.userVendors.keySet().stream().filter(arg_0 -> .lambda$updated$2(searchBar, arg_0)).forEach(key -> {
Frame.this.dtm.addRow(((Vendor)Main.userVendors.get(key)).toArray());
}
);
Main.vendors.keySet().stream().filter(key -> key.contains(searchBar.getText())).forEach(key -> Frame.this.dtm.addRow(((Vendor)Main.userVendors.get(key)).toArray()));
} else if (Frame.this.viewComponent.isSelected()) {
Main.components.keySet().stream().filter(arg_0 -> .lambda$updated$4(searchBar, arg_0)).forEach(key -> {
Frame.this.dtm.addRow(((Component)Main.components.get(key)).toArray());
}
);
Main.vendors.keySet().stream().filter(key -> key.contains(searchBar.getText())).forEach(key -> Frame.this.dtm.addRow(((Component)Main.components.get(key)).toArray()));
} else if (Frame.this.viewUserComponent.isSelected()) {
Main.userComponents.keySet().stream().filter(arg_0 -> .lambda$updated$6(searchBar, arg_0)).forEach(key -> {
Frame.this.dtm.addRow(((Component)Main.userComponents.get(key)).toArray());
}
);
Main.vendors.keySet().stream().filter(key -> key.contains(searchBar.getText())).forEach(key -> Frame.this.dtm.addRow(((Component)Main.userComponents.get(key)).toArray()));
} else if (Frame.this.viewFormula.isSelected()) {
Main.formulas.keySet().stream().filter(arg_0 -> .lambda$updated$8(searchBar, arg_0)).forEach(key -> {
Frame.this.dtm.addRow(((Formula)Main.formulas.get(key)).toArray());
}
);
Main.vendors.keySet().stream().filter(key -> key.contains(searchBar.getText())).forEach(key -> Frame.this.dtm.addRow(((Formula)Main.formulas.get(key)).toArray()));
} else if (Frame.this.viewUserFormula.isSelected()) {
Main.userFormulas.keySet().stream().filter(arg_0 -> .lambda$updated$10(searchBar, arg_0)).forEach(key -> {
Frame.this.dtm.addRow(((Formula)Main.userFormulas.get(key)).toArray());
}
);
Main.vendors.keySet().stream().filter(key -> key.contains(searchBar.getText())).forEach(key -> Frame.this.dtm.addRow(((Formula)Main.userFormulas.get(key)).toArray()));
}
} else {
Frame.this.reloadView();