|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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.container.VerticalFieldManager
|
+--net.rim.blackberry.api.bbm.platform.ui.chat.container.BasicReplyFieldManager
A reply field that can to be added to your chat screen as is.
It uses ReplyField, SmileyButton, and ReplyFieldManager to arrange the fields.
This field can be toggled (collapsed and not collapsed).
| Field Summary | ||
protected boolean |
_isCollapsed
If the state is collapsed, this field is not showing. |
|
protected ReplyField |
_replyField
Reply field |
|
protected SmileyButton |
_smileyButton
Smiley button |
|
| Constructor Summary | ||
BasicReplyFieldManager(ReplyField replyField,
SmileyButton smileyButton)
Creates an instance of the field. |
||
| Method Summary | ||
protected Manager |
createReplyFieldAndSmileyButtonManager()
Returns a new instance of the manager that will contain the reply field and the smiley button. |
|
protected Field |
createReplyFieldContainer()
Creates a default look for the reply field. |
|
protected Manager |
createReplyFieldScroller()
Returns a new instance of the manager that contains the reply field. |
|
protected Field |
createReplyFieldTopBorder()
Returns a new instance of a field that will appear above the reply field acting as a separator from the fields above. |
|
protected Field |
createSmileyButtonContainer()
Returns the smiley button as it was provided. |
|
ReplyField |
getReplyField()
Returns the reply field used for entering text. |
|
SmileyButton |
getSmileyButton()
Returns the smiley button. |
|
Field |
getToggleField()
Returns this. |
|
boolean |
isCollapsed()
The field is hidden if the state is collapsed. |
|
void |
paint(Graphics graphics)
Paints itself only if the state is not collapsed. |
|
void |
toggle()
Changes the state. |
|
| Field Detail |
protected boolean _isCollapsed
| Constructor Detail |
public BasicReplyFieldManager(ReplyField replyField, SmileyButton smileyButton)
replyField - reply fieldsmileyButton - smiley buttonNullPointerException - if a null parameter is provided| Method Detail |
protected Manager createReplyFieldAndSmileyButtonManager()
ReplyFieldManager by default.
Override to customize your manager.protected Field createReplyFieldContainer()
protected Manager createReplyFieldScroller()
protected Field createReplyFieldTopBorder()
ThinSeparatorField is used.protected Field createSmileyButtonContainer()
public ReplyField getReplyField()
public SmileyButton getSmileyButton()
public boolean isCollapsed()
true if the field is hidden; false otherwiseToggleFieldProvider.isCollapsed()public void paint(Graphics graphics)
graphics - graphic contextpublic void toggle()
ToggleFieldProvider.toggle()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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.