| 1 | package com.jsql.view.swing.manager.util; | |
| 2 | ||
| 3 | import com.jsql.view.swing.util.I18nViewUtil; | |
| 4 | ||
| 5 | import javax.swing.*; | |
| 6 | ||
| 7 | public class JButtonStateful extends JButton { | |
| 8 | ||
| 9 | /** | |
| 10 | * State of current injection. | |
| 11 | */ | |
| 12 | private StateButton state = StateButton.STARTABLE; | |
| 13 | | |
| 14 | public JButtonStateful(String keyI18nRunButton) { | |
| 15 | super(I18nViewUtil.valueByKey(keyI18nRunButton)); | |
| 16 | } | |
| 17 | | |
| 18 | | |
| 19 | // Getter and setter | |
| 20 | ||
| 21 | /** | |
| 22 | * Return the current state of current process. | |
| 23 | * @return State of process | |
| 24 | */ | |
| 25 | public StateButton getState() { | |
| 26 |
1
1. getState : replaced return value with null for com/jsql/view/swing/manager/util/JButtonStateful::getState → NO_COVERAGE |
return this.state; |
| 27 | } | |
| 28 | | |
| 29 | public void setState(StateButton state) { | |
| 30 | this.state = state; | |
| 31 | } | |
| 32 | } | |
Mutations | ||
| 26 |
1.1 |