public class CalendarUtils extends Object
Modifier and Type | Method and Description |
---|---|
static TimeZone |
calculateTimeZone(Object usertimeZone) |
static TimeZone |
calculateTimeZone(Object usertimeZone,
TimeZone defaultTimeZone) |
static String |
convertPattern(String pattern)
Converts a java date pattern to a jquery date pattern
|
static void |
encodeListValue(javax.faces.context.FacesContext context,
UICalendar uicalendar,
String optionName,
List<Object> values)
Write the value of Calendar options
|
static Date |
getObjectAsDate(javax.faces.context.FacesContext context,
UICalendar calendar,
Object value)
Try to convert the given value to
Date or return null if there is no appropriate converter for doing so. |
static String |
getTimeOnlyValueAsString(javax.faces.context.FacesContext context,
UICalendar calendar) |
static String |
getValue(javax.faces.context.FacesContext context,
UICalendar calendar,
Object value,
String pattern) |
static String |
getValueAsString(javax.faces.context.FacesContext context,
UICalendar calendar) |
static String |
getValueAsString(javax.faces.context.FacesContext context,
UICalendar calendar,
Object value) |
static String |
getValueAsString(javax.faces.context.FacesContext context,
UICalendar calendar,
Object value,
String pattern) |
public static final String getValueAsString(javax.faces.context.FacesContext context, UICalendar calendar)
public static Date getObjectAsDate(javax.faces.context.FacesContext context, UICalendar calendar, Object value)
Date
or return null
if there is no appropriate converter for doing so.context
- the faces contextcalendar
- the calendar componentvalue
- the value to convertDate
object or null
public static final String getValueAsString(javax.faces.context.FacesContext context, UICalendar calendar, Object value)
public static final String getTimeOnlyValueAsString(javax.faces.context.FacesContext context, UICalendar calendar)
public static final String getValueAsString(javax.faces.context.FacesContext context, UICalendar calendar, Object value, String pattern)
public static final String getValue(javax.faces.context.FacesContext context, UICalendar calendar, Object value, String pattern)
public static final String convertPattern(String pattern)
pattern
- Pattern to be convertedpublic static void encodeListValue(javax.faces.context.FacesContext context, UICalendar uicalendar, String optionName, List<Object> values) throws IOException
context
- uicalendar
- componentoptionName
- the name of an optionvalues
- the List values of an optionIOException
- if writer is nullCopyright © 2019. All rights reserved.