All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.apple.alpha.core.DateFormatter

java.lang.Object
   |
   +----com.apple.alpha.core.NativeObject
           |
           +----com.apple.alpha.core.Formatter
                   |
                   +----com.apple.alpha.core.DateFormatter

public class DateFormatter
extends Formatter
This class wraps the Objective-C class NSDateFormatter.


Constructor Index

 o DateFormatter()
This default constructor is equivalent to Objective-C's [[NSDateFormatter alloc] init].
 o DateFormatter(boolean, int)
Protected constructor used by the bridge to wrap an Objective-C object.
 o DateFormatter(Coder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.
 o DateFormatter(String, boolean)
This constructor has the same effect as calling - initWithDateFormat:allowNaturalLanguage: on a newly allocated object.

Method Index

 o allowsNaturalLanguage()
A wrapper for the - allowsNaturalLanguage Objective-C instance method.
 o dateFormat()
A wrapper for the - dateFormat Objective-C instance method.

Constructors

 o DateFormatter
 protected DateFormatter(boolean shouldAllocate,
                         int objcObject)
Protected constructor used by the bridge to wrap an Objective-C object. It should never be invoked directly.

 o DateFormatter
 public DateFormatter()
This default constructor is equivalent to Objective-C's [[NSDateFormatter alloc] init].

 o DateFormatter
 public DateFormatter(Coder aDecoder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.

 o DateFormatter
 public DateFormatter(String format,
                      boolean flag)
This constructor has the same effect as calling - initWithDateFormat:allowNaturalLanguage: on a newly allocated object.

Methods

 o dateFormat
 public native String dateFormat()
A wrapper for the - dateFormat Objective-C instance method.

 o allowsNaturalLanguage
 public native boolean allowsNaturalLanguage()
A wrapper for the - allowsNaturalLanguage Objective-C instance method.


All Packages  Class Hierarchy  This Package  Previous  Next  Index