Skip navigation links

Oracle© Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1.7.2)
E10684-10


oracle.adf.view.rich.util
Class DateCustomizer

java.lang.Object
  extended by oracle.adf.view.rich.util.DateCustomizer


public abstract class DateCustomizer
extends java.lang.Object

The DateCustomizer class allows customization of dates such as formatting dates to Strings.

Author:
The Oracle ADF Faces Team

Constructor Summary
DateCustomizer()
           

 

Method Summary
abstract  java.lang.String format(java.util.Date date, java.lang.String key, java.util.Locale locale, java.util.TimeZone tz)
          The format method formats a date based on a key.
 java.lang.String formatRange(java.util.Date startDate, java.util.Date endDate, java.lang.String key, java.util.Locale locale, java.util.TimeZone tz)
          The format method formats a date range based on a key.
 java.lang.String getInlineStyle(java.util.Date date, java.lang.String key, java.util.Locale locale, java.util.TimeZone tz)
          getInlineStyle() returns inline CSS styles to be applied to a portion of the Calendar.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

DateCustomizer

public DateCustomizer()

Method Detail

format

public abstract java.lang.String format(java.util.Date date,
                                        java.lang.String key,
                                        java.util.Locale locale,
                                        java.util.TimeZone tz)
The format method formats a date based on a key.

The format method of a hypothetical subclass of DateFormatter might do the following with the date December 25, 2008:

Parameters:
date - the date to format
key - the key that indicates what type of return value is expected.
locale - the current locale
tz - the current timezone
Returns:
the formatted string. Null is returned if the default string should be used. If an unknown key is passed in null is returned. An empty string is returned to clear the default string.

formatRange

public java.lang.String formatRange(java.util.Date startDate,
                                    java.util.Date endDate,
                                    java.lang.String key,
                                    java.util.Locale locale,
                                    java.util.TimeZone tz)
The format method formats a date range based on a key.

The format method of a hypothetical subclass of DateFormatter might do the following with the start date December 25, 2008 and end date January 1, 2009:

Parameters:
startDate - the date to format
endDate - the date to format
key - the key that indicates what type of return value is expected.
locale - the current locale
tz - the current timezone
Returns:
the formatted string. Null is returned if the default string should be used. If an unknown key is passed in null is returned. An empty string is returned to clear the default string.

getInlineStyle

public java.lang.String getInlineStyle(java.util.Date date,
                                       java.lang.String key,
                                       java.util.Locale locale,
                                       java.util.TimeZone tz)
getInlineStyle() returns inline CSS styles to be applied to a portion of the Calendar. The getInlineStyle method of a hypothetical subclass of DateFormatter might do the following with the date December 25 2013:
Parameters:
date - Date to format
key - Indicates the section of the calendar being styled. See the tagdoc for list of keys.
locale - Current locale
tz - Current timezone
Returns:
CSS which can be applied to the style attribute, for the section of the Calendar specified by key. Null is returned if the default string should be used.

Skip navigation links

Oracle© Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1.7.2)
E10684-10


Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.