Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 2 (11.1.2.2.0)
E17488-03


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.

 

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.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 2 (11.1.2.2.0)
E17488-03


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