net.rim.device.api.ui.text
Class HexadecimalTextFilter
java.lang.Object
|
+--net.rim.device.api.ui.text.TextFilter
|
+--net.rim.device.api.ui.text.HexadecimalTextFilter
- public class HexadecimalTextFilter
- extends TextFilter
Filters out characters not usable in hexadecimal text strings.
This filter translates all characters but those valid in hexadecimal text
strings (upper and lower case 'A' through 'F' and all digits).
|
Method Summary |
char |
convert(char character,
int status)
Passes character through hexadecimal text filter.
|
boolean |
validate(char character)
Determines if character is a valid hexadecimal string character.
|
HexadecimalTextFilter
public HexadecimalTextFilter()
- Constructs a new HexadecimalTextFilter instance.
convert
public char convert(char character,
int status)
- Passes character through hexadecimal text filter.
- Overrides:
convert in class TextFilter
- Parameters:
character - Character to translate.- Returns:
- If you provide a valid hexadecimal character, this method passes
it through unaltered; otherwise, this method passes back the value
retrieved from
Keypad.getAltedChar(character). - Since:
- JDE 3.6
validate
public boolean validate(char character)
- Determines if character is a valid hexadecimal string character.
- Overrides:
validate in class TextFilter
- Parameters:
character - Character to test.- Returns:
- True if the character is valid for hexadecimal strings;
otherwise, false.
- Since:
- JDE 3.6
Copyright 1999-2002 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.