JToolTipI18n.java

1
package com.jsql.view.swing.text;
2
3
import javax.swing.*;
4
5
/**
6
 * Tooltip which text can be changed using setText() when switching i18n language.
7
 * Override method getTipText() provides text to Swing after i18n switch.
8
 */
9
public class JToolTipI18n extends JToolTip {
10
    
11
    private String textTooltip;
12
13
    public JToolTipI18n(String textTooltip) {
14
        this.textTooltip = textTooltip;
15
    }
16
17
    public void setText(String textTooltip) {
18
        this.textTooltip = textTooltip;
19
    }
20
21
    @Override
22
    public String getTipText() {
23 1 1. getTipText : replaced return value with "" for com/jsql/view/swing/text/JToolTipI18n::getTipText → NO_COVERAGE
        return this.textTooltip;
24
    }
25
}

Mutations

23

1.1
Location : getTipText
Killed by : none
replaced return value with "" for com/jsql/view/swing/text/JToolTipI18n::getTipText → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.16.1