1 17 package org.alfresco.web.ui.common.tag; 18 19 import javax.faces.component.UICommand; 20 import javax.faces.component.UIComponent; 21 22 25 public class BreadcrumbTag extends HtmlComponentTag 26 { 27 30 public String getComponentType() 31 { 32 return "org.alfresco.faces.Breadcrumb"; 33 } 34 35 38 public String getRendererType() 39 { 40 return "org.alfresco.faces.BreadcrumbRenderer"; 41 } 42 43 46 protected void setProperties(UIComponent component) 47 { 48 super.setProperties(component); 49 50 setActionProperty((UICommand)component, this.action); 51 setActionListenerProperty((UICommand)component, this.actionListener); 52 setStringProperty(component, "separator", this.separator); 53 setBooleanProperty(component, "showRoot", this.showRoot); 54 setBooleanProperty(component, "immediate", this.immediate); 55 setStringProperty(component, "value", this.value); 56 } 57 58 61 public void release() 62 { 63 super.release(); 64 this.action = null; 65 this.actionListener = null; 66 this.separator = ">"; 67 this.showRoot = "true"; 68 this.immediate = null; 69 this.value = null; 70 } 71 72 77 public void setAction(String action) 78 { 79 this.action = action; 80 } 81 82 87 public void setActionListener(String actionListener) 88 { 89 this.actionListener = actionListener; 90 } 91 92 97 public void setSeparator(String separator) 98 { 99 this.separator = separator; 100 } 101 102 107 public void setShowRoot(String showRoot) 108 { 109 this.showRoot = showRoot; 110 } 111 112 117 public void setImmediate(String immediate) 118 { 119 this.immediate = immediate; 120 } 121 122 128 public void setValue(String value) 129 { 130 this.value = value; 131 } 132 133 134 135 private String value; 136 137 138 private String action; 139 140 141 private String actionListener; 142 143 144 private String separator = ">"; 145 146 147 private String showRoot = "true"; 148 149 150 private String immediate; 151 } 152 | Popular Tags |