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
        
14
        this.textFilter = textFilter;
15
        this.panelSearch = panelSearch;
16
        this.panelTable = panelTable;
17
    }
18
    
19
    @Override
20
    public void actionPerformed(ActionEvent e) {
21
        
22 1 1. actionPerformed : removed call to javax/swing/JTextField::setText → NO_COVERAGE
        this.textFilter.setText(null);
23 1 1. actionPerformed : removed call to javax/swing/JPanel::setVisible → NO_COVERAGE
        this.panelSearch.setVisible(false);
24
        this.panelTable.getTableValues().requestFocusInWindow();
25
    }
26
}

Mutations

22

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

23

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.16.1