1 17 package org.alfresco.web.ui.common.tag; 18 19 import javax.faces.component.UICommand; 20 import javax.faces.component.UIComponent; 21 22 25 public class ModeListTag extends HtmlComponentTag 26 { 27 30 public String getComponentType() 31 { 32 return "org.alfresco.faces.ModeList"; 33 } 34 35 38 public String getRendererType() 39 { 40 return "org.alfresco.faces.ModeListRenderer"; 41 } 42 43 46 protected void setProperties(UIComponent component) 47 { 48 super.setProperties(component); 49 setActionProperty((UICommand)component, this.action); 50 setActionListenerProperty((UICommand)component, this.actionListener); 51 setStringProperty(component, "labelStyle", this.labelStyle); 52 setStringProperty(component, "labelStyleClass", this.labelStyleClass); 53 setStringProperty(component, "itemStyle", this.itemStyle); 54 setStringProperty(component, "itemStyleClass", this.itemStyleClass); 55 setStringProperty(component, "disabledStyle", this.disabledStyle); 56 setStringProperty(component, "disabledStyleClass", this.disabledStyleClass); 57 setStringProperty(component, "itemLinkStyle", this.itemLinkStyle); 58 setStringProperty(component, "itemLinkStyleClass", this.itemLinkStyleClass); 59 setStringProperty(component, "selectedStyle", this.selectedStyle); 60 setStringProperty(component, "selectedStyleClass", this.selectedStyleClass); 61 setStringProperty(component, "selectedLinkStyle", this.selectedLinkStyle); 62 setStringProperty(component, "selectedLinkStyleClass", this.selectedLinkStyleClass); 63 setStringProperty(component, "selectedImage", this.selectedImage); 64 setIntProperty(component, "itemSpacing", this.itemSpacing); 65 setIntProperty(component, "iconColumnWidth", this.iconColumnWidth); 66 setIntProperty(component, "width", this.width); 67 setStringProperty(component, "menuImage", this.menuImage); 68 setBooleanProperty(component, "menu", this.menu); 69 setBooleanProperty(component, "horizontal", this.horizontal); 70 setBooleanProperty(component, "disabled", this.disabled); 71 setStringProperty(component, "label", this.label); 72 setStringProperty(component, "value", this.value); 73 } 74 75 78 public void release() 79 { 80 super.release(); 81 this.labelStyle = null; 82 this.labelStyleClass = null; 83 this.itemStyle = null; 84 this.itemStyleClass = null; 85 this.itemLinkStyle = null; 86 this.itemLinkStyleClass = null; 87 this.disabledStyle = null; 88 this.disabledStyleClass = null; 89 this.selectedStyle = null; 90 this.selectedStyleClass = null; 91 this.selectedLinkStyle = null; 92 this.selectedLinkStyleClass = null; 93 this.selectedImage = null; 94 this.itemSpacing = null; 95 this.iconColumnWidth = null; 96 this.horizontal = null; 97 this.width = null; 98 this.label = null; 99 this.action = null; 100 this.actionListener = null; 101 this.value = null; 102 this.disabled = null; 103 } 104 105 110 public void setItemSpacing(String itemSpacing) 111 { 112 this.itemSpacing = itemSpacing; 113 } 114 115 120 public void setIconColumnWidth(String iconColumnWidth) 121 { 122 this.iconColumnWidth = iconColumnWidth; 123 } 124 125 130 public void setLabel(String label) 131 { 132 this.label = label; 133 } 134 135 140 public void setAction(String action) 141 { 142 this.action = action; 143 } 144 145 150 public void setActionListener(String actionListener) 151 { 152 this.actionListener = actionListener; 153 } 154 155 160 public void setValue(String value) 161 { 162 this.value = value; 163 } 164 165 170 public void setWidth(String width) 171 { 172 this.width = width; 173 } 174 175 180 public void setHorizontal(String horizontal) 181 { 182 this.horizontal = horizontal; 183 } 184 185 190 public void setLabelStyle(String labelStyle) 191 { 192 this.labelStyle = labelStyle; 193 } 194 195 200 public void setLabelStyleClass(String labelStyleClass) 201 { 202 this.labelStyleClass = labelStyleClass; 203 } 204 205 210 public void setItemStyle(String itemStyle) 211 { 212 this.itemStyle = itemStyle; 213 } 214 215 220 public void setItemStyleClass(String itemStyleClass) 221 { 222 this.itemStyleClass = itemStyleClass; 223 } 224 225 230 public void setItemLinkStyle(String itemLinkStyle) 231 { 232 this.itemLinkStyle = itemLinkStyle; 233 } 234 235 240 public void setItemLinkStyleClass(String itemLinkStyleClass) 241 { 242 this.itemLinkStyleClass = itemLinkStyleClass; 243 } 244 245 250 public void setSelectedStyle(String selectedStyle) 251 { 252 this.selectedStyle = selectedStyle; 253 } 254 255 260 public void setSelectedStyleClass(String selectedStyleClass) 261 { 262 this.selectedStyleClass = selectedStyleClass; 263 } 264 265 270 public void setSelectedLinkStyle(String selectedLinkStyle) 271 { 272 this.selectedLinkStyle = selectedLinkStyle; 273 } 274 275 280 public void setSelectedLinkStyleClass(String selectedLinkStyleClass) 281 { 282 this.selectedLinkStyleClass = selectedLinkStyleClass; 283 } 284 285 290 public void setSelectedImage(String selectedImage) 291 { 292 this.selectedImage = selectedImage; 293 } 294 295 300 public void setDisabled(String disabled) 301 { 302 this.disabled = disabled; 303 } 304 305 310 public void setDisabledStyle(String disabledStyle) 311 { 312 this.disabledStyle = disabledStyle; 313 } 314 315 320 public void setDisabledStyleClass(String disabledStyleClass) 321 { 322 this.disabledStyleClass = disabledStyleClass; 323 } 324 325 330 public void setMenu(String menu) 331 { 332 this.menu = menu; 333 } 334 335 340 public void setMenuImage(String menuImage) 341 { 342 this.menuImage = menuImage; 343 } 344 345 346 347 private String menu; 348 349 350 private String menuImage; 351 352 353 private String disabledStyle; 354 355 356 private String disabledStyleClass; 357 358 359 private String selectedImage; 360 361 362 private String labelStyle; 363 364 365 private String labelStyleClass; 366 367 368 private String itemStyle; 369 370 371 private String itemStyleClass; 372 373 374 private String itemLinkStyle; 375 376 377 private String itemLinkStyleClass; 378 379 380 private String selectedStyle; 381 382 383 private String selectedStyleClass; 384 385 386 private String selectedLinkStyle; 387 388 389 private String selectedLinkStyleClass; 390 391 392 private String horizontal; 393 394 395 private String width; 396 397 398 private String itemSpacing; 399 400 401 private String iconColumnWidth; 402 403 404 private String label; 405 406 407 private String action; 408 409 410 private String actionListener; 411 412 413 private String value; 414 415 416 private String disabled; 417 } 418 | Popular Tags |