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

java.lang.Object
  |
  +--net.rim.device.api.ui.Field
        |
        +--net.rim.device.api.ui.ScrollView
              |
              +--net.rim.device.api.ui.Manager
                    |
                    +--net.rim.device.api.ui.Screen
                          |
                          +--net.rim.device.api.ui.container.PopupScreen
                                |
                                +--net.rim.blackberry.api.bbm.platform.ui.chat.component.SmileyScreen
All Implemented Interfaces:
AdjustmentListener, FieldChangeListener, FieldVisibleRectChangeListener, FocusChangeListener, IComponent, InputMethodListener, TextInputDialog

public final class SmileyScreen
extends PopupScreen
implements FieldChangeListener, FocusChangeListener, TextInputDialog

Displays the smileys in a popup dialog. To show this dialog use show(ActiveAutoTextEditField target).

Since:
BBM SDK 1.0

Field Summary
protected  SmileyDescriptionField _description
          Smiley description field.
 
Constructor Summary
SmileyScreen()
          Creates an instance of the screen.
 
Method Summary
 void fieldChanged(Field field, int context)
          Appends the chosen smiley to the text field.
 void focusChanged(Field field, int eventType)
          Sets the smiley description.
 SmileyDescriptionField getSmileyDescriptionField()
          Returns the smiley description field.
 void insert(ActiveAutoTextEditField text)
          Sets the provided field as the input field for each smiley button.
protected  boolean keyChar(char key, int status, int time)
          Closes the screen if escape is pressed.
 void setOverlapping()
          Makes the screen overlap the keyboard.
 void show(ActiveAutoTextEditField target)
          Invokes insert(ActiveAutoTextEditField target) and remembers to show the keyboard if it was already visible.
 

Field Detail


_description

protected SmileyDescriptionField _description
Smiley description field.
Since:
BBM SDK 1.0
Constructor Detail

SmileyScreen

public SmileyScreen()
Creates an instance of the screen.
Since:
BBM SDK 1.0
Method Detail

fieldChanged

public void fieldChanged(Field field,
                         int context)
Appends the chosen smiley to the text field.
Since:
BBM SDK 1.0
See Also:
FieldChangeListener#fieldChanged(Field field, int context)

focusChanged

public void focusChanged(Field field,
                         int eventType)
Sets the smiley description.
Since:
BBM SDK 1.0
See Also:
FocusChangeListener#focusChanged(Field field, int eventType)

getSmileyDescriptionField

public SmileyDescriptionField getSmileyDescriptionField()
Returns the smiley description field.
Returns:
smiley description field
Since:
BBM SDK 1.0

insert

public void insert(ActiveAutoTextEditField text)
Sets the provided field as the input field for each smiley button. Pushes this screen on the stack of the current UiApplication.
Parameters:
text - text field
Since:
BBM SDK 1.0

keyChar

protected boolean keyChar(char key,
                          int status,
                          int time)
Closes the screen if escape is pressed.
Since:
BBM SDK 1.0
See Also:
Screen#keyChar(char key, int status, int time)

setOverlapping

public void setOverlapping()
Makes the screen overlap the keyboard. Calls #setOverlapping(boolean on).
Since:
BBM SDK 1.0

show

public void show(ActiveAutoTextEditField target)
Invokes insert(ActiveAutoTextEditField target) and remembers to show the keyboard if it was already visible.
Parameters:
target - where the smiley will be inserted
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.