1 13 package org.jahia.views.engines.datepicker; 14 15 import java.util.Vector ; 16 17 public class DatePickerData 18 { 19 20 private Vector errors = new Vector (); 21 private long date = 0; 22 23 public DatePickerData(){ 24 } 25 26 public DatePickerData(long date){ 27 this.date = date; 28 } 29 30 public long getDate(){ 31 return this.date; 32 } 33 34 public void setDate(long date){ 35 this.date = date; 36 } 37 38 public void addError(String errorMsg){ 39 this.errors.add(errorMsg); 40 } 41 42 public Vector getErrors(){ 43 return this.errors; 44 } 45 46 public void resetErrors(){ 47 this.errors = new Vector (); 48 } 49 50 public boolean hasError(){ 51 return (this.errors.size()>0); 52 } 53 } | Popular Tags |