Package: ConnectingTypeButton
ConnectingTypeButton
name | instruction | branch | complexity | line | method | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ConnectingTypeButton(ConnectingType) |
|
|
|
|
|
||||||||||||||||||||
getConnectingType() |
|
|
|
|
|
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: }