Skip to contentMethod: setLabelVaule(String)
      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: }