/* * $Id: Month.java,v 1.2 2004/11/02 08:46:30 laddi Exp $ * Created on 14.10.2004 * * Copyright (C) 2004 Idega Software hf. All Rights Reserved. * * This software is the proprietary information of Idega hf. * Use is subject to license terms. */ package com.idega.idegaweb.widget.date; import com.idega.idegaweb.widget.Widget; import com.idega.presentation.IWContext; import com.idega.presentation.PresentationObject; import com.idega.presentation.text.Text; import com.idega.util.IWCalendar; /** * Shows the month of the year as a Text object. Uses localized names for the month names. * * Last modified: 14.10.2004 14:06:53 by laddi * * @author <a href="mailto:laddi@idega.com">laddi</a> * @version $Revision: 1.2 $ */ public class Month extends Widget { /* (non-Javadoc) * @see com.idega.idegaweb.widget.Widget#getWidget(com.idega.presentation.IWContext) */ protected PresentationObject getWidget(IWContext iwc) { IWCalendar calendar = new IWCalendar(getLocale()); Text text = new Text(calendar.getMonthName(calendar.getMonth())); return text; } }