1 17 package org.alfresco.web.ui.repo.tag; 18 19 import javax.faces.component.UICommand; 20 import javax.faces.component.UIComponent; 21 22 import org.alfresco.web.ui.common.tag.HtmlComponentTag; 23 24 29 public class NodePathTag extends HtmlComponentTag 30 { 31 34 public String getComponentType() 35 { 36 return "org.alfresco.faces.NodePath"; 37 } 38 39 42 public String getRendererType() 43 { 44 return "org.alfresco.faces.NodePathLinkRenderer"; 45 } 46 47 50 protected void setProperties(UIComponent component) 51 { 52 super.setProperties(component); 53 54 setActionProperty((UICommand)component, this.action); 55 setActionListenerProperty((UICommand)component, this.actionListener); 56 setBooleanProperty(component, "breadcrumb", this.breadcrumb); 57 setBooleanProperty(component, "disabled", this.disabled); 58 setBooleanProperty(component, "showLeaf", this.disabled); 59 setStringBindingProperty(component, "value", this.value); 60 } 61 62 65 public void release() 66 { 67 super.release(); 68 69 this.action = null; 70 this.actionListener = null; 71 this.value = null; 72 this.disabled = null; 73 this.breadcrumb = null; 74 this.showLeaf = null; 75 } 76 77 82 public void setAction(String action) 83 { 84 this.action = action; 85 } 86 87 92 public void setActionListener(String actionListener) 93 { 94 this.actionListener = actionListener; 95 } 96 97 102 public void setValue(String value) 103 { 104 this.value = value; 105 } 106 107 112 public void setBreadcrumb(String breadcrumb) 113 { 114 this.breadcrumb = breadcrumb; 115 } 116 117 122 public void setDisabled(String disabled) 123 { 124 this.disabled = disabled; 125 } 126 127 132 public void setShowLeaf(String showLeaf) 133 { 134 this.showLeaf = showLeaf; 135 } 136 137 138 139 private String showLeaf; 140 141 142 private String disabled; 143 144 145 private String breadcrumb; 146 147 148 private String action; 149 150 151 private String actionListener; 152 153 154 private String value; 155 } 156 | Popular Tags |