1 17 package org.alfresco.web.ui.common.tag; 18 19 import javax.faces.component.UIComponent; 20 21 24 public class ListItemTag extends BaseComponentTag 25 { 26 29 public String getComponentType() 30 { 31 return "org.alfresco.faces.ListItem"; 32 } 33 34 37 public String getRendererType() 38 { 39 return null; 41 } 42 43 46 protected void setProperties(UIComponent component) 47 { 48 super.setProperties(component); 49 setStringProperty(component, "tooltip", this.tooltip); 50 setStringProperty(component, "label", this.label); 51 setStringProperty(component, "image", this.image); 52 setStringProperty(component, "value", this.value); 53 setBooleanProperty(component, "disabled", this.disabled); 54 } 55 56 59 public void release() 60 { 61 super.release(); 62 this.tooltip = null; 63 this.label = null; 64 this.image = null; 65 this.value = null; 66 this.disabled = null; 67 } 68 69 74 public void setTooltip(String tooltip) 75 { 76 this.tooltip = tooltip; 77 } 78 79 84 public void setLabel(String label) 85 { 86 this.label = label; 87 } 88 89 94 public void setImage(String image) 95 { 96 this.image = image; 97 } 98 99 104 public void setValue(String value) 105 { 106 this.value = value; 107 } 108 109 114 public void setDisabled(String disabled) 115 { 116 this.disabled = disabled; 117 } 118 119 120 private String tooltip; 121 122 123 private String label; 124 125 126 private String image; 127 128 129 private String value; 130 131 132 private String disabled; 133 } 134 | Popular Tags |