Skip to content

Package: DetailBarLabel

DetailBarLabel

nameinstructionbranchcomplexitylinemethod
DetailBarLabel(String)
M: 0 C: 6
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 3
100%
M: 0 C: 1
100%
accept(CompareVaNameVisitor)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
accept(DetailBarVisitor)
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
accept(ItemGetNameVisitor)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
accept(ItemSetNameVisitor)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
getLabelVaule()
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%
setLabelVaule(String)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: package networkconfigurator;
2:
3: import java.awt.Component;
4:
5: import networkconfigurator.actions.ItemGetNameVisitor;
6: import networkconfigurator.actions.ItemSetNameVisitor;
7:
8: /**
9: *
10: * @author HFW416 Jannik
11: *
12: */
13: public final class DetailBarLabel implements PropertyBarEntry {
14:         /**
15:          * labelVaule for the detail bar.
16:          */
17:         private String labelVaule;
18:
19:         /**
20:          * constructor for the detail bar label.
21:          *
22:          * @param labelVaule
23:          * labelVaule for the detail bar.
24:          */
25:
26:         public DetailBarLabel(final String labelVaule) {
27:                 this.labelVaule = labelVaule;
28:         }
29:
30:         /**
31:          * getter for labelVaule.
32:          *
33:          * @return labelVaule
34:          */
35:         public String getLabelVaule() {
36:                 return labelVaule;
37:         }
38:
39:         /**
40:          * setter for labelVaule.
41:          *
42:          * @param labelVaule
43:          * the new content.
44:          */
45:         public void setLabelVaule(final String labelVaule) {
46:                 this.labelVaule = labelVaule;
47:         }
48:
49:         @Override
50:         public Component accept(final DetailBarVisitor visitor) {
51:                 return visitor.visit(this);
52:
53:         }
54:
55:         @Override
56:         public boolean accept(final CompareVaNameVisitor visitor) {
57:                 return visitor.visit(this);
58:         }
59:
60:         @Override
61:         public String accept(final ItemGetNameVisitor visitor) {
62:                 return visitor.visit(this);
63:         }
64:
65:         @Override
66:         public void accept(final ItemSetNameVisitor visitor) {
67:                 visitor.visit(this);
68:         }
69: }