Skip to content

Package: ConnectingTypeButton

ConnectingTypeButton

nameinstructionbranchcomplexitylinemethod
ConnectingTypeButton(ConnectingType)
M: 0 C: 8
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 3
100%
M: 0 C: 1
100%
getConnectingType()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

Coverage

1: package networkconfigurator;
2:
3: import javax.swing.JToggleButton;
4:
5: import networkconfigurator.item.ConnectingType;
6:
7: /**
8: *
9: * @author Erik
10: *
11: */
12: public class ConnectingTypeButton extends JToggleButton {
13:         /**
14:          * the connecting type.
15:          */
16:         private final ConnectingType connectingType;
17:
18:         /**
19:          * set the connecting type button.
20:          *
21:          * @param connectingType
22:          * the connecting type
23:          */
24:         public ConnectingTypeButton(final ConnectingType connectingType) {
25:                 super(connectingType.name());
26:                 this.connectingType = connectingType;
27:         }
28:
29:         /**
30:          *
31:          * @return the connecting type
32:          */
33:         public ConnectingType getConnectingType() {
34:                 return connectingType;
35:         }
36:
37: }