com.filenet.wcm.apps.server.presentation.ui
Class DateTimeHeader

java.lang.Object
  extended bycom.filenet.wcm.toolkit.server.base.WcmDpContainer
      extended bycom.filenet.wcm.toolkit.server.base.WcmModule
          extended bycom.filenet.wcm.toolkit.server.base.GlobalEventModule
              extended bycom.filenet.wcm.toolkit.server.base.WcmUiModule
                  extended bycom.filenet.wcm.toolkit.server.ui.WcmJSPModule
                      extended bycom.filenet.wcm.apps.server.presentation.ui.DateTimeHeader
All Implemented Interfaces:
com.filenet.wcm.toolkit.server.base.WcmModuleInterface, com.filenet.wcm.toolkit.server.base.WcmUiModuleInterface

public class DateTimeHeader
extends com.filenet.wcm.toolkit.server.ui.WcmJSPModule


Field Summary
static java.lang.String CSS_FORMAT
           
static java.lang.String JSCALENDAR
           
static java.lang.String JSCALENDAR_LOCATION
           
static java.lang.String JSCALENDAR_SETUP
           
static java.lang.String JSCALENDAR_UTILS
           
protected  java.util.Locale locale
           
protected  java.lang.String[] style
           
 
Fields inherited from class com.filenet.wcm.toolkit.server.base.WcmModule
NAME_DELIMITER
 
Constructor Summary
DateTimeHeader()
           
 
Method Summary
 java.util.Locale getLocale()
          Get the current configured locale.
 java.lang.String[] getStyle()
          Get the CSS style value being used.
 void initialize()
           
 void setLocale(java.util.Locale locale)
          Set the locale to use for date formatting.
 void setStyle(java.lang.String style)
          Specify an alternative style from the default.
 
Methods inherited from class com.filenet.wcm.toolkit.server.ui.WcmJSPModule
getCurrentModule, render
 
Methods inherited from class com.filenet.wcm.toolkit.server.base.WcmUiModule
getActive, getBasePath, getBaseUrl, getBaseURLBuilder, getControllerEventUrl, getControllerEventUrl, getEventFormFields, getEventFormFields, getEventFormTag, getEventFormTag, getEventUrl, getEventUrl, getEventUrl, getEventUrl, getFormName, getFormSubmitUrl, getFormSubmitUrl, getGlobalEventUrl, getGlobalEventUrl, getPageUrl, getPageUrl, getPageUrl, getPageUrl, getUiParent, peekEvent, renderJSP, routeEvent, routeEvent, serverSideInclude, serverSideInclude, setActive, setJSP
 
Methods inherited from class com.filenet.wcm.toolkit.server.base.GlobalEventModule
onStartPage, subscribeGlobalEvent
 
Methods inherited from class com.filenet.wcm.toolkit.server.base.WcmModule
addChild, addChild, addChild, cleanup, debugTrace, getClassProperty, getClassProperty, getClassPropertyKeys, getConfiguration, getController, getDataStore, getModuleProperty, getModuleProperty, getModuleProperty, getModuleProperty, getModulePropertyKeys, getName, getParent, getWindowProperty, getWindowProperty, persist, queryDataProvider, setClassProperty, setClassProperty, setController, setModuleProperty, setModuleProperty, setName, setParent, setPortletParent, setWindowProperty
 
Methods inherited from class com.filenet.wcm.toolkit.server.base.WcmDpContainer
addDataProvider, addDataProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.filenet.wcm.toolkit.server.base.WcmUiModuleInterface
onStartPage
 
Methods inherited from interface com.filenet.wcm.toolkit.server.base.WcmModuleInterface
addDataProvider, cleanup, getDataStore, getModuleProperty, getName, getParent, persist, queryDataProvider, setController, setModuleProperty, setName, setParent
 

Field Detail

JSCALENDAR_LOCATION

public static final java.lang.String JSCALENDAR_LOCATION
See Also:
Constant Field Values

CSS_FORMAT

public static final java.lang.String CSS_FORMAT
See Also:
Constant Field Values

JSCALENDAR

public static final java.lang.String JSCALENDAR
See Also:
Constant Field Values

JSCALENDAR_SETUP

public static final java.lang.String JSCALENDAR_SETUP
See Also:
Constant Field Values

JSCALENDAR_UTILS

public static final java.lang.String JSCALENDAR_UTILS
See Also:
Constant Field Values

locale

protected java.util.Locale locale

style

protected java.lang.String[] style
Constructor Detail

DateTimeHeader

public DateTimeHeader()
Method Detail

setLocale

public void setLocale(java.util.Locale locale)
Set the locale to use for date formatting. If unspecified, the default server locale is used.

Parameters:
locale -

getLocale

public java.util.Locale getLocale()
Get the current configured locale.

Returns:

setStyle

public void setStyle(java.lang.String style)
Specify an alternative style from the default. Possible values are: "system", "blue", "green", "brown", "win2k-1", "win2k-2", "win2k-cold-1" or "win2k-cold-2". If unspecified, "system" is used.

Parameters:
style -

getStyle

public java.lang.String[] getStyle()
Get the CSS style value being used.

Returns:
String[1] where the value of the only entry is the CSS style name being used.

initialize

public void initialize()
                throws java.lang.Exception
Throws:
java.lang.Exception


© Copyright IBM Corp. 2002, 2007. All Rights Reserved.