19 package org.sleuthkit.autopsy.discovery.ui;
21 import javax.swing.DefaultListModel;
22 import javax.swing.event.ListSelectionListener;
33 private final DefaultListModel<DomainWrapper>
domainListModel =
new DefaultListModel<>();
48 domainListModel.removeAllElements();
57 @SuppressWarnings(
"unchecked")
64 setLayout(
new java.awt.BorderLayout());
67 domainList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
68 domainList.setCellRenderer(
new DomainSummaryPanel());
88 domainListModel.addElement(domainWrapper);
98 void sendPopulateEvent() {
100 if (domainList.getSelectedIndex() != -1) {
101 domain = domainListModel.getElementAt(domainList.getSelectedIndex()).getResultDomain().getDomain();
104 DiscoveryEventUtils.getDiscoveryEventBus().post(
new DiscoveryEventUtils.PopulateDomainTabsEvent(domain));
113 @ThreadConfined(type = ThreadConfined.ThreadType.AWT)
114 void addListSelectionListener(ListSelectionListener listener) {
115 domainList.getSelectionModel().addListSelectionListener(listener);
static final long serialVersionUID
javax.swing.JScrollPane domainScrollPane
javax.swing.JList< DomainWrapper > domainList
final DefaultListModel< DomainWrapper > domainListModel