This project has retired. For details please refer to its
Attic page .
PopupCalendar (Jetspeed 1 Enterprise Portal 1.6 API)
org.apache.jetspeed.modules.parameters
Class PopupCalendar
java.lang.Object
org.apache.turbine.modules.Assembler
org.apache.jetspeed.modules.parameters.ParameterPresentationStyle
org.apache.jetspeed.modules.parameters.VelocityParameterPresentationStyle
org.apache.jetspeed.modules.parameters.PopupCalendar
public class PopupCalendar extends VelocityParameterPresentationStyle
Presentation method to show a date input field with a popup calendar. Calendar is accessed by clicking the icon
next to input field. For now, the only date format supported is mm/dd/yyyy. If value $today
is passed, the date in the input field will default to today's date.
Options:
$.style.formName
- form name where the control is displayed; default=DefaultCustomizer
$.style.format
- date format to use for return value; default=mm/dd/yyyy.
The date format can have three types of separators: hyphen(-), space( ), or slash(/), but must be consistent in their usage. E.g.
d/m/yyyy
The acceptable tokens are :
d - day
dd - day (padded with 0 if less than 10)
m - month (in numbers)
mm - month (in numbers, padded with 0 if less than 10)
mmm - month (in words)
yyyy - year
Version:
$Id: PopupCalendar.java,v 1.4 2005/01/18 17:08:45 morciuch Exp $
Author:
Mark Orciuch
Method Summary
void
buildContext (org.apache.turbine.util.RunData data,
java.lang.String name,
java.lang.String value,
java.util.Map parms,
org.apache.velocity.context.Context context)
Put custom objects in velocity context
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
logger
protected static final JetspeedLogger logger
Static initialization of the logger for this class
PARM_FORM_NAME
public static final java.lang.String PARM_FORM_NAME
See Also: Constant Field Values
PARM_FORMAT
public static final java.lang.String PARM_FORMAT
See Also: Constant Field Values
PARM_INPUT_FORMAT
public static final java.lang.String PARM_INPUT_FORMAT
See Also: Constant Field Values
PARM_LAYOUT
public static final java.lang.String PARM_LAYOUT
See Also: Constant Field Values
LAYOUT_LABEL
public static final java.lang.String LAYOUT_LABEL
See Also: Constant Field Values
LAYOUT_INPUT
public static final java.lang.String LAYOUT_INPUT
See Also: Constant Field Values
DEF_INPUT_FORMAT
public static final java.lang.String DEF_INPUT_FORMAT
See Also: Constant Field Values
PopupCalendar
public PopupCalendar ()
buildContext
public void buildContext (org.apache.turbine.util.RunData data,
java.lang.String name,
java.lang.String value,
java.util.Map parms,
org.apache.velocity.context.Context context)
Put custom objects in velocity context
Overrides: buildContext
in class VelocityParameterPresentationStyle
Parameters: data
- name
- value
- parms
- context
-
Returns: string
Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.