to top
Android APIs
public class

DateKeyListener

extends NumberKeyListener
java.lang.Object
   ↳ android.text.method.MetaKeyKeyListener
     ↳ android.text.method.BaseKeyListener
       ↳ android.text.method.NumberKeyListener
         ↳ android.text.method.DateKeyListener

Class Overview

For entering dates in a text field.

As for all implementations of KeyListener, this class is only concerned with hardware keyboards. Software input methods have no obligation to trigger the methods in this class.

Summary

[Expand]
Inherited Constants
From class android.text.method.MetaKeyKeyListener
Fields
public static final char[] CHARACTERS The characters that are used.
Public Constructors

? Examples
DateKeyListener()
Public Methods

? Examples
int getInputType()

? Examples
static DateKeyListener getInstance()
Protected Methods
char[] getAcceptedChars()
You can say which characters you can accept.
[Expand]
Inherited Methods
From class android.text.method.NumberKeyListener
From class android.text.method.BaseKeyListener
From class android.text.method.MetaKeyKeyListener
From class java.lang.Object
From interface android.text.InputFilter
From interface android.text.method.KeyListener

Fields

public static final char[] CHARACTERS

Added in API level 1

The characters that are used.

Public Constructors

public DateKeyListener ()

Added in API level 1

Public Methods

public int getInputType ()

Added in API level 3

public static DateKeyListener getInstance ()

Added in API level 1

Protected Methods

protected char[] getAcceptedChars ()

Added in API level 1

You can say which characters you can accept.

No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.