1 32 33 package it.businesslogic.ireport.gui.locale; 34 import it.businesslogic.ireport.util.I18n; 35 import java.util.TimeZone ; 36 37 41 public class TimeZoneWrapper { 42 43 private TimeZone timeZone = null; 44 45 46 public TimeZoneWrapper(TimeZone timeZone) { 47 this.timeZone = timeZone; 48 } 49 50 public TimeZone getTimeZone() { 51 return timeZone; 52 } 53 54 public void setTimeZone(TimeZone timeZone) { 55 this.timeZone = timeZone; 56 } 57 58 public String toString() 59 { 60 if (timeZone != null) 61 { 62 return timeZone.getID() + " (" + timeZone.getDisplayName(I18n.getCurrentLocale()) + ")"; 63 } 64 return "Null time zone"; 65 } 66 67 } 68 | Popular Tags |