com.filenet.wcm.apps.server.util
Class DateControlUtil
- java.lang.Object
com.filenet.wcm.apps.server.util.DateControlUtil
- public class DateControlUtil
- extends java.lang.Object
Nested Class Summary
| Modifier and Type | Class and Description |
|---|---|
|
DateControlUtil.DateInfo
Deprecated. Replaced by com.filenet.wcm.apps.server.presentation.util.DateTimeControlSettings
|
Constructor Summary
| Constructor and Description |
|---|
DateControlUtil()
|
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
getDateFormat(com.filenet.wcm.toolkit.server.base.WcmController controller)
get the date format from common preferences
|
|
getDateInfo(com.filenet.wcm.toolkit.server.base.WcmController controller)
Deprecated. Use getDateTimeControlSettings
|
|
getDateTimeControlSettings(com.filenet.wcm.toolkit.server.base.WcmController controller)
Gets an instance of DateTimeControlSettings representing the date/time settings based on the current
Workplace configuration.
|
|
getDateTimeControlSettings(com.filenet.wcm.toolkit.server.base.WcmController controller,java.util.Locale locale)
Gets an instance of DateTimeControlSettings representing the date/time settings based on the current
Workplace configuration.
|
|
getLocale(com.filenet.wcm.toolkit.server.base.WcmController controller)
Checks site preferences and returns the server default or client locale
|
|
getTimeFormat(com.filenet.wcm.toolkit.server.base.WcmController controller)
get the time format from common preferences
|
|
getTimeZone(com.filenet.wcm.toolkit.server.base.WcmController controller)
Checks site preferences and returns the server default or client locale
|
|
setXSLParameters(com.filenet.wcm.toolkit.server.base.WcmController controller,com.filenet.wcm.toolkit.server.ui.WcmXSLModule module,java.lang.String[] parameterNames)
Sets XSL parameters required for date/time display or calendar control.
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
DateControlUtil
- public DateControlUtil()
Method Detail
getTimeZone
- public static java.util.TimeZone getTimeZone( com.filenet.wcm.toolkit.server.base.WcmController controller)
- throws java.lang.Exception
Checks site preferences and returns the server default or client locale
Parameters:
controller - Returns:
Client or default locale
Throws:
java.lang.ExceptiongetLocale
- public static java.util.Locale getLocale( com.filenet.wcm.toolkit.server.base.WcmController controller)
- throws java.lang.Exception
Checks site preferences and returns the server default or client locale
Parameters:
controller - Returns:
Client or default locale
Throws:
java.lang.ExceptiongetDateFormat
- public static int getDateFormat( com.filenet.wcm.toolkit.server.base.WcmController controller)
- throws java.lang.Exception
get the date format from common preferences
Parameters:
controller - Returns:
Date Format
Throws:
java.lang.ExceptiongetTimeFormat
- public static int getTimeFormat( com.filenet.wcm.toolkit.server.base.WcmController controller)
- throws java.lang.Exception
get the time format from common preferences
Parameters:
controller - Returns:
Time Format
Throws:
java.lang.ExceptionsetXSLParameters
- public static void setXSLParameters( com.filenet.wcm.toolkit.server.base.WcmController controller,
- com.filenet.wcm.toolkit.server.ui.WcmXSLModule module,
- java.lang.String[] parameterNames)
- throws java.lang.Exception
Sets XSL parameters required for date/time display or calendar control. The XSL parameter names are
"locale", "timeZone", "dateFormat", "timeFormat".
Parameters:
controller - module - parameterNames - An array of four parameter names for locale, timeZone, dateFormat and timeFormat (in this order). If present, it will override the defaults. Throws:
java.lang.ExceptiongetDateInfo
- public static DateControlUtil.DateInfo getDateInfo( com.filenet.wcm.toolkit.server.base.WcmController controller)
- throws java.lang.Exception
Deprecated. Use getDateTimeControlSettings
Throws:
java.lang.ExceptiongetDateTimeControlSettings
- public static com.filenet.wcm.apps.server.presentation.util.DateTimeControlSettings getDateTimeControlSettings( com.filenet.wcm.toolkit.server.base.WcmController controller)
- throws java.lang.Exception
Gets an instance of DateTimeControlSettings representing the date/time settings based on the current
Workplace configuration.
Parameters:
controller - Returns:
Throws:
java.lang.ExceptiongetDateTimeControlSettings
- public static com.filenet.wcm.apps.server.presentation.util.DateTimeControlSettings getDateTimeControlSettings( com.filenet.wcm.toolkit.server.base.WcmController controller,
- java.util.Locale locale)
- throws java.lang.Exception
Gets an instance of DateTimeControlSettings representing the date/time settings based on the current
Workplace configuration.
Parameters:
controller - Returns:
Throws:
java.lang.Exception