KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > calipso > reportgenerator > common > ResolveMonth


1 package com.calipso.reportgenerator.common;
2
3 import java.util.Calendar JavaDoc;
4
5 /**
6  * Define el comportamiento para poder averiguar el valor del Mes
7  */

8 public class ResolveMonth extends DateExpressionResolver {
9
10   public ResolveMonth() {
11     super();
12   }
13
14   /**
15    * Devuelve el mes de la fecha previamente seteada
16    * @return String
17    */

18   public String JavaDoc doGetValue() {
19     return String.valueOf(getDateFormatter().getCalendar().get(Calendar.MONTH) + 1);
20   }
21 }
22
Popular Tags