1 17 20 package org.alfresco.web.ui.repo.tag; 21 22 import javax.faces.component.UIComponent; 23 24 import org.alfresco.web.ui.common.tag.HtmlComponentTag; 25 26 31 public abstract class ItemSelectorTag extends HtmlComponentTag 32 { 33 34 private String value; 35 36 37 private String label; 38 39 40 private String spacing; 41 42 43 private String nodeStyle; 44 45 46 private String nodeStyleClass; 47 48 49 private String initialSelection; 50 51 52 private String disabled; 53 54 57 public abstract String getComponentType(); 58 59 62 public String getRendererType() 63 { 64 return null; 65 } 66 67 70 protected void setProperties(UIComponent component) 71 { 72 super.setProperties(component); 73 74 setStringBindingProperty(component, "value", this.value); 75 setStringBindingProperty(component, "initialSelection", this.initialSelection); 76 setStringProperty(component, "label", this.label); 77 setStringProperty(component, "nodeStyle", this.nodeStyle); 78 setStringProperty(component, "nodeStyleClass", this.nodeStyleClass); 79 setIntProperty(component, "spacing", this.spacing); 80 setBooleanProperty(component, "disabled", this.disabled); 81 } 82 83 86 public void release() 87 { 88 super.release(); 89 90 this.value = null; 91 this.label = null; 92 this.spacing = null; 93 this.nodeStyle = null; 94 this.nodeStyleClass = null; 95 this.initialSelection = null; 96 this.disabled = null; 97 } 98 99 104 public void setValue(String value) 105 { 106 this.value = value; 107 } 108 109 114 public void setLabel(String label) 115 { 116 this.label = label; 117 } 118 119 124 public void setSpacing(String spacing) 125 { 126 this.spacing = spacing; 127 } 128 129 134 public void setNodeStyle(String nodeStyle) 135 { 136 this.nodeStyle = nodeStyle; 137 } 138 139 144 public void setNodeStyleClass(String nodeStyleClass) 145 { 146 this.nodeStyleClass = nodeStyleClass; 147 } 148 149 155 public void setInitialSelection(String initialSelection) 156 { 157 this.initialSelection = initialSelection; 158 } 159 160 165 public void setDisabled(String disabled) 166 { 167 this.disabled = disabled; 168 } 169 } 170 | Popular Tags |