1 11 12 package org.jivesoftware.admin; 13 14 import org.jivesoftware.util.StringUtils; 15 16 import java.util.Collection ; 17 import java.util.ArrayList ; 18 19 22 public class AdminPageBean { 23 24 private String title; 25 private Collection breadcrumbs; 26 private String pageID; 27 private String subPageID; 28 private String extraParams; 29 private Collection scripts; 30 31 public AdminPageBean() { 32 } 33 34 37 public String getTitle() { 38 if (title != null) { 39 return StringUtils.escapeHTMLTags(title); 40 } 41 else { 42 return title; 43 } 44 } 45 46 49 public void setTitle(String title) { 50 this.title = title; 51 } 52 53 56 public Collection getBreadcrumbs() { 57 if (breadcrumbs == null) { 58 breadcrumbs = new ArrayList (); 59 } 60 return breadcrumbs; 61 } 62 63 66 public String getPageID() { 67 return pageID; 68 } 69 70 74 public void setPageID(String pageID) { 75 this.pageID = pageID; 76 } 77 78 81 public String getSubPageID() { 82 return subPageID; 83 } 84 85 89 public void setSubPageID(String subPageID) { 90 this.subPageID = subPageID; 91 } 92 93 96 public String getExtraParams() { 97 return extraParams; 98 } 99 100 103 public void setExtraParams(String extraParams) { 104 this.extraParams = extraParams; 105 } 106 107 110 public Collection getScripts() { 111 if (scripts == null) { 112 scripts = new ArrayList (); 113 } 114 return scripts; 115 } 116 117 120 public static class Breadcrumb { 121 private String name; 122 private String url; 123 124 127 public Breadcrumb(String name, String url) { 128 this.name = name; 129 this.url = url; 130 } 131 132 135 public String getName() { 136 if (name != null) { 137 return StringUtils.escapeHTMLTags(name); 138 } 139 else { 140 return name; 141 } 142 } 143 144 147 public String getUrl() { 148 return url; 149 } 150 } 151 } 152 | Popular Tags |