ActionCloseSearch.java

1
package com.jsql.view.swing.table;
2
3
import javax.swing.*;
4
import java.awt.event.ActionEvent;
5
6
public class ActionCloseSearch extends AbstractAction {
7
    
8
    private final JTextField textFilter;
9
    private final JPanel panelSearch;
10
    private final PanelTable panelTable;
11
    
12
    public ActionCloseSearch(JTextField textFilter, JPanel panelSearch, PanelTable panelTable) {
13
        this.textFilter = textFilter;
14
        this.panelSearch = panelSearch;
15
        this.panelTable = panelTable;
16
    }
17
    
18
    @Override
19
    public void actionPerformed(ActionEvent e) {
20 1 1. actionPerformed : removed call to javax/swing/JTextField::setText → NO_COVERAGE
        this.textFilter.setText(null);
21 1 1. actionPerformed : removed call to javax/swing/JPanel::setVisible → NO_COVERAGE
        this.panelSearch.setVisible(false);
22
        this.panelTable.getTableValues().requestFocusInWindow();
23
    }
24
}

Mutations

20

1.1
Location : actionPerformed
Killed by : none
removed call to javax/swing/JTextField::setText → NO_COVERAGE

21

1.1
Location : actionPerformed
Killed by : none
removed call to javax/swing/JPanel::setVisible → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.22.1