org.openmobileis.services.common
Class DateServiceUtil

java.lang.Object
  extended byorg.openmobileis.services.common.DateServiceUtil

public final class DateServiceUtil
extends java.lang.Object

Title: OpenMobileIS project source
Description:

Since:
JDK 1.1
Version:
1.0.
Author:
Philippe Delrieu

Constructor Summary
DateServiceUtil()
           
 
Method Summary
static SimpleHash getForTemplateInputDate(int selectedDay, int selectedMonth, int selectedYear, int selectedHours, int selectedMinutes, int selectedDuration)
          Return a simple hash containing 5 lists: dayList, monthList, yearList, hourList and minuteList set with the date giving by parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateServiceUtil

public DateServiceUtil()
Method Detail

getForTemplateInputDate

public static SimpleHash getForTemplateInputDate(int selectedDay,
                                                 int selectedMonth,
                                                 int selectedYear,
                                                 int selectedHours,
                                                 int selectedMinutes,
                                                 int selectedDuration)
Return a simple hash containing 5 lists: dayList, monthList, yearList, hourList and minuteList set with the date giving by parameters. Use these HTML/ template to show the result for day month year. To show current date : Calendar calendar = java.util.Calendar.getInstance(); SimpleHash startDate = Utils.getUtilsManager().getForTemplateInputDate( calendar.get(java.util.Calendar.DAY_OF_MONTH), calendar.get(java.util.Calendar.MONTH), calendar.get(java.util.Calendar.YEAR), calendar.get(java.util.Calendar.HOUR_OF_DAY), 0); templateData.put("startDate", startDate);



Copyright 2006 OpenMobileIS. All Rights Reserved.