KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > taglibs > button > TabButton


1 package org.jahia.taglibs.button;
2
3 //
4
// ____.
5
// __/\ ______| |__/\. _______
6
// __ .____| | \ | +----+ \
7
// _______| /--| | | - \ _ | : - \_________
8
// \\______: :---| : : | : | \________>
9
// |__\---\_____________:______: :____|____:_____\
10
// /_____|
11
//
12
// . . . i n j a h i a w e t r u s t . . .
13
//
14
//
15

16 public class TabButton {
17
18     private String JavaDoc url;
19     private String JavaDoc label;
20     private String JavaDoc labelKey;
21     private String JavaDoc labelBundle;
22     private boolean isSelected;
23
24     public TabButton(){
25         // enabling taglibs Java Bean access
26
}
27
28     public TabButton ( String JavaDoc url,
29                        String JavaDoc label, String JavaDoc labelKey, String JavaDoc labelBundle,
30                        boolean isSelected )
31     {
32         this.url = url;
33         this.label = label;
34         this.isSelected = isSelected;
35         this.labelKey = labelKey;
36         this.labelBundle = labelBundle;
37     }
38
39     public String JavaDoc getUrl(){
40         return this.url;
41     }
42
43     public String JavaDoc getLabel(){
44         return this.label;
45     }
46
47     public String JavaDoc getLabelKey(){
48         return this.labelKey;
49     }
50
51     public String JavaDoc getLabelBundle(){
52         return this.labelBundle;
53     }
54
55     public boolean isSelected(){
56         return this.isSelected;
57     }
58
59     public String JavaDoc toString(){
60         StringBuffer JavaDoc buff = new StringBuffer JavaDoc(TabButton.class.getName());
61         buff.append(" label : ");
62         buff.append(" " + getLabel() + "\n");
63         buff.append(" labelKey : ");
64         buff.append(" " + getLabelKey() + "\n");
65         buff.append(" labelBundle : ");
66         buff.append(" " + getLabelBundle() + "\n");
67         buff.append(" url : ");
68         buff.append(" " + getUrl() + "\n");
69         buff.append(" isSelected : ");
70         buff.append(" " + isSelected() + "\n");
71         return buff.toString();
72     }
73
74
75 }
76
Popular Tags