net.rim.blackberry.api.bbm.platform.ui.chat.component
Class ReplyField

java.lang.Object
  |
  +--net.rim.device.api.ui.Field
        |
        +--net.rim.device.api.ui.component.TextField
              |
              +--net.rim.device.api.ui.component.BasicEditField
                    |
                    +--net.rim.device.api.ui.component.EditField
                          |
                          +--net.rim.device.api.ui.component.AutoTextEditField
                                |
                                +--net.rim.device.api.ui.component.ActiveAutoTextEditField
                                      |
                                      +--net.rim.blackberry.api.bbm.platform.ui.chat.component.ReplyField
All Implemented Interfaces:
ActiveRegionSupport.ActiveRegionFieldIf, CookieProvider, FieldLabelProvider, Formatter.TextRenderer, IComponent, IInputLocationRequests, InputMethodListener, InputMethodRequests, ITextInputStyle, Runnable

public final class ReplyField
extends ActiveAutoTextEditField

This field is used to compose messages with smiley support.

Since:
BBM SDK 1.0

Constructor Summary
ReplyField()
          Default reply field with getMaxChars() as the maximum number of characters and the 0 as the style bit.
ReplyField(int max, long style)
          Creates an instance of the reply field with provided parameters.
ReplyField(long style)
          Creates an instance of the reply field with getMaxChars() as the maximum number of characters.
 
Method Summary
 void clear()
          Clears the field with FieldChangeListener.PROGRAMMATIC flag.
static int getMaxChars()
          Returns the default maximum number of characters allowed in this field.
 String getText()
          Returns empty string if no text was entered into the field; otherwise, value contained in this field.
 boolean isEmpty()
          Returns true if no text was entered into the field and false otherwise.
 

Constructor Detail

ReplyField

public ReplyField()
Default reply field with getMaxChars() as the maximum number of characters and the 0 as the style bit.
Since:
BBM SDK 1.0

ReplyField

public ReplyField(int max,
                  long style)
Creates an instance of the reply field with provided parameters.
Parameters:
max - maximum number of characters.
style - style passed to the super (EDITABLE is included)
Since:
BBM SDK 1.0

ReplyField

public ReplyField(long style)
Creates an instance of the reply field with getMaxChars() as the maximum number of characters.
Parameters:
style - style passed to the super implementation
Since:
BBM SDK 1.0
Method Detail

clear

public void clear()
Clears the field with FieldChangeListener.PROGRAMMATIC flag.
Since:
BBM SDK 1.0

getMaxChars

public static int getMaxChars()
Returns the default maximum number of characters allowed in this field. Current default is 300.
Returns:
default maximum number of characters allowed in this field
Since:
BBM SDK 1.0

getText

public String getText()
Returns empty string if no text was entered into the field; otherwise, value contained in this field.
Returns:
empty string if no text was entered into the field; otherwise, value contained in this field
Since:
BBM SDK 1.0

isEmpty

public boolean isEmpty()
Returns true if no text was entered into the field and false otherwise.
Returns:
true if no text was entered into the field and false otherwise
Since:
BBM SDK 1.0



Copyright 1999- 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.