1 package org.jahia.taglibs.button; 2 3 16 public class TabButton { 17 18 private String url; 19 private String label; 20 private String labelKey; 21 private String labelBundle; 22 private boolean isSelected; 23 24 public TabButton(){ 25 } 27 28 public TabButton ( String url, 29 String label, String labelKey, String 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 getUrl(){ 40 return this.url; 41 } 42 43 public String getLabel(){ 44 return this.label; 45 } 46 47 public String getLabelKey(){ 48 return this.labelKey; 49 } 50 51 public String getLabelBundle(){ 52 return this.labelBundle; 53 } 54 55 public boolean isSelected(){ 56 return this.isSelected; 57 } 58 59 public String toString(){ 60 StringBuffer buff = new StringBuffer (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 |