1 17 package org.alfresco.web.ui.common.tag; 18 19 import javax.faces.component.UIComponent; 20 21 30 public class InputDatePickerTag extends HtmlComponentTag 31 { 32 35 public String getComponentType() 36 { 37 return "javax.faces.Input"; 40 } 41 42 45 public String getRendererType() 46 { 47 return "org.alfresco.faces.DatePickerRenderer"; 50 } 51 52 55 public void release() 56 { 57 super.release(); 58 this.startYear = null; 59 this.yearCount = null; 60 this.value = null; 61 this.showTime = null; 62 this.disabled = null; 63 } 64 65 68 protected void setProperties(UIComponent component) 69 { 70 super.setProperties(component); 71 72 setIntProperty(component, "startYear", this.startYear); 74 setIntProperty(component, "yearCount", this.yearCount); 75 setStringProperty(component, "value", this.value); 76 setBooleanProperty(component, "showTime", this.showTime); 77 setBooleanProperty(component, "disabled", this.disabled); 78 } 79 80 85 public void setValue(String value) 86 { 87 this.value = value; 88 } 89 90 95 public void setStartYear(String startYear) 96 { 97 this.startYear = startYear; 98 } 99 100 105 public void setYearCount(String yearCount) 106 { 107 this.yearCount = yearCount; 108 } 109 110 115 public void setShowTime(String showTime) 116 { 117 this.showTime = showTime; 118 } 119 120 125 public void setDisabled(String disabled) 126 { 127 this.disabled = disabled; 128 } 129 130 private String startYear = null; 131 private String yearCount = null; 132 private String value = null; 133 private String showTime = null; 134 private String disabled = null; 135 } 136 | Popular Tags |