net.rim.device.api.ui.text
Class LowercaseTextFilter

java.lang.Object
  |
  +--net.rim.device.api.ui.text.TextFilter
        |
        +--net.rim.device.api.ui.text.LowercaseTextFilter

public class LowercaseTextFilter
extends TextFilter

Filters out characeters not usable in lower case text strings.

This filter translates all upper case alphabetic characters into their lower case equivalents.


Field Summary
 
Fields inherited from class net.rim.device.api.ui.text.TextFilter
ADN_SIM_PHONE, DEFAULT, DEFAULT_SMART_PHONE, EMAIL, FDN_SIM_PHONE, FILENAME, HEXADECIMAL, INTEGER, IP, LOWERCASE, NUMERIC, PHONE, PIN_ADDRESS, REAL_NUMERIC, SIM_PHONE, SMS_PHONE, STYLE_SHIFT, UPPERCASE, URL, VOICEMAIL_PHONE
 
Constructor Summary
LowercaseTextFilter()
          Constructs a new LowercaseTextFilter instance.
 
Method Summary
 char convert(char character, int status)
          Passes character through lower case text filter.
 boolean validate(char character)
          Determines if character is a lower case character.
 
Methods inherited from class net.rim.device.api.ui.text.TextFilter
convert, get, validate, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LowercaseTextFilter

public LowercaseTextFilter()
Constructs a new LowercaseTextFilter instance.
Method Detail

convert

public char convert(char character,
                    int status)
Passes character through lower case text filter.

Overrides:
convert in class TextFilter
Parameters:
character - Character to convert.
status - Modifier key status (ignored).
Returns:
The result retrieved from Character.toLowerCase(character).

validate

public boolean validate(char character)
Determines if character is a lower case character.

Overrides:
validate in class TextFilter
Parameters:
character - Character to test.
Returns:
True if the character is a lower case character; otherwise, false.



Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.