1 17 package org.alfresco.web.ui.common.tag; 18 19 import javax.faces.component.UIComponent; 20 21 24 public class MenuTag extends HtmlComponentTag 25 { 26 29 public String getComponentType() 30 { 31 return "org.alfresco.faces.Menu"; 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, "label", this.label); 50 setStringProperty(component, "image", this.image); 51 setStringProperty(component, "menuStyle", this.menuStyle); 52 setStringProperty(component, "menuStyleClass", this.menuStyleClass); 53 setIntProperty(component, "itemSpacing", this.itemSpacing); 54 } 55 56 59 public void release() 60 { 61 super.release(); 62 this.label = null; 63 this.image = null; 64 this.menuStyle = null; 65 this.menuStyleClass = null; 66 this.itemSpacing = null; 67 } 68 69 74 public void setLabel(String label) 75 { 76 this.label = label; 77 } 78 79 84 public void setImage(String image) 85 { 86 this.image = image; 87 } 88 89 94 public void setMenuStyle(String menuStyle) 95 { 96 this.menuStyle = menuStyle; 97 } 98 99 104 public void setMenuStyleClass(String menuStyleClass) 105 { 106 this.menuStyleClass = menuStyleClass; 107 } 108 109 114 public void setItemSpacing(String itemSpacing) 115 { 116 this.itemSpacing = itemSpacing; 117 } 118 119 120 121 private String menuStyle; 122 123 124 private String menuStyleClass; 125 126 127 private String itemSpacing; 128 129 130 private String image; 131 132 133 private String label; 134 } 135 | Popular Tags |