CreateValuesTab.java

1
/*******************************************************************************
2
 * Copyhacked (H) 2012-2020.
3
 * This program and the accompanying materials
4
 * are made available under no term at all, use it like
5
 * you want, but share and discuss about it
6
 * every time possible with every body.
7
 * 
8
 * Contributors:
9
 *      ron190 at ymail dot com - initial implementation
10
 ******************************************************************************/
11
package com.jsql.view.swing.interaction;
12
13
import com.jsql.model.bean.database.AbstractElementDatabase;
14
import com.jsql.view.interaction.InteractionCommand;
15
import com.jsql.view.swing.util.MediatorHelper;
16
17
/**
18
 * Create a new tab for the values.
19
 */
20
public class CreateValuesTab extends CreateTabHelper implements InteractionCommand {
21
    
22
    /**
23
     * Array of column names, displayed in header table.
24
     */
25
    private final String[] columnNames;
26
27
    /**
28
     * 2D array of values.
29
     */
30
    private final String[][] data;
31
32
    /**
33
     * The table containing the data.
34
     */
35
    private final AbstractElementDatabase table;
36
37
    /**
38
     * @param interactionParams Names of columns, table's values and corresponding table
39
     */
40
    public CreateValuesTab(Object[] interactionParams) {
41
        
42
        this.columnNames = (String[]) interactionParams[0];  // Array of column names, displayed in header table
43
        this.data = (String[][]) interactionParams[1];  // 2D array of values
44
        this.table = (AbstractElementDatabase) interactionParams[2];  // The table containing the data
45
    }
46
47
    @Override
48
    public void execute() {
49 1 1. execute : removed call to com/jsql/view/swing/tree/TreeDatabase::createValuesTab → NO_COVERAGE
        MediatorHelper.treeDatabase().createValuesTab(this.data, this.columnNames, this.table);
50
    }
51
}

Mutations

49

1.1
Location : execute
Killed by : none
removed call to com/jsql/view/swing/tree/TreeDatabase::createValuesTab → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.16.1