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 27 public class NodeDescendantsTag extends HtmlComponentTag 28 { 29 32 public String getComponentType() 33 { 34 return "org.alfresco.faces.NodeDescendants"; 35 } 36 37 40 public String getRendererType() 41 { 42 return "org.alfresco.faces.NodeDescendantsLinkRenderer"; 43 } 44 45 48 protected void setProperties(UIComponent component) 49 { 50 super.setProperties(component); 51 52 setBooleanProperty(component, "showEllipses", this.showEllipses); 53 setActionProperty((UICommand)component, this.action); 54 setActionListenerProperty((UICommand)component, this.actionListener); 55 setIntProperty(component, "maxChildren", this.maxChildren); 56 setStringProperty(component, "separator", this.separator); 57 setStringBindingProperty(component, "value", this.value); 58 } 59 60 63 public void release() 64 { 65 super.release(); 66 67 this.showEllipses = null; 68 this.maxChildren = null; 69 this.separator = null; 70 this.action = null; 71 this.actionListener = null; 72 this.value = null; 73 } 74 75 80 public void setMaxChildren(String maxChildren) 81 { 82 this.maxChildren = maxChildren; 83 } 84 85 90 public void setSeparator(String separator) 91 { 92 this.separator = separator; 93 } 94 95 100 public void setAction(String action) 101 { 102 this.action = action; 103 } 104 105 110 public void setActionListener(String actionListener) 111 { 112 this.actionListener = actionListener; 113 } 114 115 120 public void setValue(String value) 121 { 122 this.value = value; 123 } 124 125 130 public void setShowEllipses(String showEllipses) 131 { 132 this.showEllipses = showEllipses; 133 } 134 135 136 137 private String showEllipses; 138 139 140 private String maxChildren; 141 142 143 private String separator; 144 145 146 private String action; 147 148 149 private String actionListener; 150 151 152 private String value; 153 } 154 | Popular Tags |