Project Wonder 2.0

er.extensions
Class ERXTimestampFormatter

java.lang.Object
  extended byjava.text.Format
      extended bycom.webobjects.foundation.NSTimestampFormatter
          extended byer.extensions.ERXTimestampFormatter
All Implemented Interfaces:
Cloneable, Serializable

public class ERXTimestampFormatter
extends NSTimestampFormatter

Provides localization to timestamp formatters.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.text.Format
Format.Field
 
Field Summary
static String DEFAULT_PATTERN
          The default pattern used in the UI
protected static String DefaultKey
           
 
Fields inherited from class com.webobjects.foundation.NSTimestampFormatter
_CLASS
 
Constructor Summary
ERXTimestampFormatter()
           
ERXTimestampFormatter(String arg0)
           
ERXTimestampFormatter(String arg0, DateFormatSymbols arg1)
           
 
Method Summary
static NSTimestampFormatter dateFormatterForPattern(String pattern)
          Returns a shared instance for the specified pattern.
static Format defaultDateFormatterForObject(Object object)
          The default pattern used by WOString and friends when no pattern is set.
static void setDateFormatterForPattern(NSTimestampFormatter formatter, String pattern)
          Sets a shared instance for the specified pattern.
 
Methods inherited from class com.webobjects.foundation.NSTimestampFormatter
_getDefaultZoneStrings, defaultDateFormatSymbols, defaultFormatTimeZone, defaultParseTimeZone, format, parseObject, parseObjectInUTC, pattern, setDefaultFormatTimeZone, setDefaultParseTimeZone, setPattern, toString
 
Methods inherited from class java.text.Format
clone, format, formatToCharacterIterator, parseObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DefaultKey

protected static final String DefaultKey
See Also:
Constant Field Values

DEFAULT_PATTERN

public static String DEFAULT_PATTERN
The default pattern used in the UI

Constructor Detail

ERXTimestampFormatter

public ERXTimestampFormatter()

ERXTimestampFormatter

public ERXTimestampFormatter(String arg0)
Parameters:
arg0 -

ERXTimestampFormatter

public ERXTimestampFormatter(String arg0,
                             DateFormatSymbols arg1)
Parameters:
arg0 -
arg1 -
Method Detail

defaultDateFormatterForObject

public static Format defaultDateFormatterForObject(Object object)
The default pattern used by WOString and friends when no pattern is set. Looks like this only for compatibility's sake.

Parameters:
object -
Returns:

dateFormatterForPattern

public static NSTimestampFormatter dateFormatterForPattern(String pattern)
Returns a shared instance for the specified pattern.

Returns:
shared instance of formatter

setDateFormatterForPattern

public static void setDateFormatterForPattern(NSTimestampFormatter formatter,
                                              String pattern)
Sets a shared instance for the specified pattern.

Returns:
shared instance of formatter

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.