Skip to content

Package: DetailInputBox

DetailInputBox

nameinstructionbranchcomplexitylinemethod
DetailInputBox(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: 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(DetailDrawVisitor)
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%
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%
getContentValue()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
setContentValue(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 DetailInputBox implements PropertyBarEntry, PropertyDrawEntry {
14:         /**
15:          * Input box for the detail bar.
16:          */
17:         private String contentValue;
18:
19:         /**
20:          * constructor for the detail bar input box.
21:          *
22:          * @param defaultValue
23:          * defaultVaule for the input box.
24:          */
25:
26:         public DetailInputBox(final String defaultValue) {
27:                 this.contentValue = defaultValue;
28:         }
29:
30:         /**
31:          * getter for contentValue.
32:          *
33:          * @return contentValue
34:          */
35:         public String getContentValue() {
36:                 return contentValue;
37:         }
38:
39:         /**
40:          * setter for contentValue.
41:          *
42:          * @param contentValue
43:          * the new content.
44:          *
45:          */
46:         public void setContentValue(final String contentValue) {
47:                 this.contentValue = contentValue;
48:         }
49:
50:         @Override
51:         public Component accept(final DetailBarVisitor visitor) {
52:                 return visitor.visit(this);
53:
54:         }
55:
56:         @Override
57:         public boolean accept(final CompareVaNameVisitor visitor) {
58:                 return visitor.visit(this);
59:         }
60:
61:         @Override
62:         public void accept(final DetailDrawVisitor visitor) {
63:                 visitor.visit(this);
64:         }
65:
66:         @Override
67:         public String accept(final ItemGetNameVisitor visitor) {
68:                 return visitor.visit(this);
69:         }
70:
71:         @Override
72:         public void accept(final ItemSetNameVisitor visitor) {
73:                 visitor.visit(this);
74:         }
75:
76: }