org.olat.core.gui.components.date
Class DateComponent

java.lang.Object
  extended by org.olat.core.gui.components.Component
      extended by org.olat.core.gui.components.date.DateComponent

public class DateComponent
extends Component

Description:
The date component can display a date using a little calendar symbol

Initial Date: 01.12.2009

Author:
gnaegi

Method Summary
 java.util.Date getDate()
          Get the current date
 ComponentRenderer getHTMLRendererSingleton()
           
 boolean isShowYear()
           
 void setDate(java.util.Date date)
          Set a new date to display
 void setShowYear(boolean showYear)
          Define if year should be displayed or not
 
Methods inherited from class org.olat.core.gui.components.Component
addListener, debuginfoGetListeners, dispatchRequest, getAndClearLatestFiredEvent, getComponentName, getDispatchID, getExtendedDebugInfo, getLatestDispatchedController, getListenerInfo, getParent, getSpanAsDomReplaceable, getTimestamp, getTranslator, isDirty, isDirtyForUser, isDomReplaceable, isEnabled, isVisible, setDirty, setDomReplaceable, setEnabled, setSpanAsDomReplaceable, setVisible, toString, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getHTMLRendererSingleton

public ComponentRenderer getHTMLRendererSingleton()
Specified by:
getHTMLRendererSingleton in class Component
See Also:
Component.getHTMLRendererSingleton()

setDate

public void setDate(java.util.Date date)
Set a new date to display

Parameters:
date -

getDate

public java.util.Date getDate()
Get the current date

Returns:

setShowYear

public void setShowYear(boolean showYear)
Define if year should be displayed or not

Parameters:
showYear -

isShowYear

public boolean isShowYear()
Returns:
true: display year; false: only display day and month