| | |
| | | public void update(CustomSearchResult sr, boolean isReadOnly, TreePath path) |
| | | { |
| | | boolean sameEntry = false; |
| | | if (sr != null) |
| | | { |
| | | sr = filterSearchResult(sr); |
| | | } |
| | | if ((searchResult != null) && (sr != null)) |
| | | { |
| | | sameEntry = searchResult.getDN().equals(sr.getDN()); |
| | |
| | | this.treePath = path; |
| | | updateTitle(sr, path); |
| | | ignoreEntryChangeEvents = true; |
| | | tableModel.displayEntry(searchResult); |
| | | tableModel.displayEntry(); |
| | | Utilities.updateTableSizes(table); |
| | | Utilities.updateScrollMode(scroll, table); |
| | | SwingUtilities.invokeLater(new Runnable() |
| | |
| | | private boolean sortAscending = true; |
| | | |
| | | /** |
| | | * Sets the entry to be displayed by this table model. |
| | | * @param searchResult the entry to be displayed. |
| | | * Updates the contents of the table model with the |
| | | * {@code TableViewEntryPanel.searchResult} object. |
| | | */ |
| | | public void displayEntry(CustomSearchResult searchResult) |
| | | public void displayEntry() |
| | | { |
| | | updateDataArray(); |
| | | fireTableDataChanged(); |