Fixed completely
This commit is contained in:
parent
a8edc768e9
commit
1aec473459
@ -537,39 +537,21 @@ class Frame extends JFrame {
|
|||||||
|
|
||||||
public void updated() {
|
public void updated() {
|
||||||
if (searchBar.hasFocus() && searchBar.getText().length() > 0) {
|
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);
|
Frame.this.dtm.removeRow(i);
|
||||||
}
|
}
|
||||||
if (Frame.this.viewVendor.isSelected()) {
|
if (Frame.this.viewVendor.isSelected()) {
|
||||||
Main.vendors.keySet().stream().filter(arg_0 -> .lambda$updated$0(searchBar, arg_0)).forEach(key -> {
|
Main.vendors.keySet().stream().filter(key -> key.contains(searchBar.getText())).forEach(key -> Frame.this.dtm.addRow(((Vendor)Main.vendors.get(key)).toArray()));
|
||||||
Frame.this.dtm.addRow(((Vendor)Main.vendors.get(key)).toArray());
|
|
||||||
}
|
|
||||||
);
|
|
||||||
} else if (Frame.this.viewUserVendor.isSelected()) {
|
} else if (Frame.this.viewUserVendor.isSelected()) {
|
||||||
Main.userVendors.keySet().stream().filter(arg_0 -> .lambda$updated$2(searchBar, arg_0)).forEach(key -> {
|
Main.vendors.keySet().stream().filter(key -> key.contains(searchBar.getText())).forEach(key -> Frame.this.dtm.addRow(((Vendor)Main.userVendors.get(key)).toArray()));
|
||||||
Frame.this.dtm.addRow(((Vendor)Main.userVendors.get(key)).toArray());
|
|
||||||
}
|
|
||||||
);
|
|
||||||
} else if (Frame.this.viewComponent.isSelected()) {
|
} else if (Frame.this.viewComponent.isSelected()) {
|
||||||
Main.components.keySet().stream().filter(arg_0 -> .lambda$updated$4(searchBar, arg_0)).forEach(key -> {
|
Main.vendors.keySet().stream().filter(key -> key.contains(searchBar.getText())).forEach(key -> Frame.this.dtm.addRow(((Component)Main.components.get(key)).toArray()));
|
||||||
Frame.this.dtm.addRow(((Component)Main.components.get(key)).toArray());
|
|
||||||
}
|
|
||||||
);
|
|
||||||
} else if (Frame.this.viewUserComponent.isSelected()) {
|
} else if (Frame.this.viewUserComponent.isSelected()) {
|
||||||
Main.userComponents.keySet().stream().filter(arg_0 -> .lambda$updated$6(searchBar, arg_0)).forEach(key -> {
|
Main.vendors.keySet().stream().filter(key -> key.contains(searchBar.getText())).forEach(key -> Frame.this.dtm.addRow(((Component)Main.userComponents.get(key)).toArray()));
|
||||||
Frame.this.dtm.addRow(((Component)Main.userComponents.get(key)).toArray());
|
|
||||||
}
|
|
||||||
);
|
|
||||||
} else if (Frame.this.viewFormula.isSelected()) {
|
} else if (Frame.this.viewFormula.isSelected()) {
|
||||||
Main.formulas.keySet().stream().filter(arg_0 -> .lambda$updated$8(searchBar, arg_0)).forEach(key -> {
|
Main.vendors.keySet().stream().filter(key -> key.contains(searchBar.getText())).forEach(key -> Frame.this.dtm.addRow(((Formula)Main.formulas.get(key)).toArray()));
|
||||||
Frame.this.dtm.addRow(((Formula)Main.formulas.get(key)).toArray());
|
|
||||||
}
|
|
||||||
);
|
|
||||||
} else if (Frame.this.viewUserFormula.isSelected()) {
|
} else if (Frame.this.viewUserFormula.isSelected()) {
|
||||||
Main.userFormulas.keySet().stream().filter(arg_0 -> .lambda$updated$10(searchBar, arg_0)).forEach(key -> {
|
Main.vendors.keySet().stream().filter(key -> key.contains(searchBar.getText())).forEach(key -> Frame.this.dtm.addRow(((Formula)Main.userFormulas.get(key)).toArray()));
|
||||||
Frame.this.dtm.addRow(((Formula)Main.userFormulas.get(key)).toArray());
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Frame.this.reloadView();
|
Frame.this.reloadView();
|
||||||
|
Loading…
Reference in New Issue
Block a user