|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.ui.Field
net.rim.device.api.ui.Manager
net.rim.device.api.ui.container.DialogFieldManager
public class DialogFieldManager
A field manager used for laying out Dialog and Status screens.
Behaviour
This manager handles an icon, a message, and a special area which can hold a
list of user-specified custom fields. To manage the list of fields in its
user area, this manager employs a simple vertical field manager.
This manager lays out its icon in the top left corner, and its message label in the top left corner. The rich text field object containing the message label specifies the formatting and alignment of the label.
This manager lays out the subordinate field manager controlling the user field area below its icon and label. The task of laying out the user fields is delegated to the subordinate field manager.
Field Summary |
---|
Fields inherited from class net.rim.device.api.ui.Manager |
---|
BOTTOMMOST, DOWNWARD, HORIZONTAL_SCROLL, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_MASK, HORIZONTAL_SCROLL_MASK, LEAVE_BLANK_SPACE, LEFTMOST, LEFTWARD, NO_HORIZONTAL_SCROLL, NO_HORIZONTAL_SCROLLBAR, NO_SCROLL_RESET, NO_VERTICAL_SCROLL, NO_VERTICAL_SCROLLBAR, QUANTA_FONT, RIGHTMOST, RIGHTWARD, TOPMOST, UPWARD, VERTICAL_SCROLL, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_MASK, VERTICAL_SCROLL_MASK |
Constructor Summary | ||
---|---|---|
DialogFieldManager()
Constructs a dialog field manager. |
||
DialogFieldManager(long style)
Constructs a dialog field manager with provided style. |
||
DialogFieldManager(long style,
long messageStyle)
Constructs a dialog field manager with provided style. |
Method Summary | ||
---|---|---|
void |
addCustomField(Field f)
Adds a user field to this manager. |
|
void |
deleteCustomField(Field field)
Deletes a user field from this manager. |
|
void |
deleteCustomFields()
Deletes all user fields from this manager. |
|
Field |
getCustomField(int index)
Retrieves one of this manager's user fields. |
|
Manager |
getCustomManager()
Retrieves the manager for this manager's user field area. |
|
void |
insertCustomField(Field f,
int index)
Inserts a user field to this manager. |
|
protected int |
moveFocus(int amount,
int status,
int time)
Invoked by the framework to move focus within this manager. |
|
void |
setIcon(BitmapField icon)
Adds or removes this manager's icon. |
|
void |
setMessage(RichTextField label)
Sets this manager's title. |
|
protected void |
sublayout(int width,
int height)
Lays out this manager's contents. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DialogFieldManager()
Use this method to build a dialog field manager with no scrolling style.
public DialogFieldManager(long style)
Use this method to build a dialog field manager with the specified scrolling style.
style
- Scrolling style for this manager (can be
Manager.VERTICAL_SCROLL
or
Manager.VERTICAL_SCROLLBAR
).public DialogFieldManager(long style, long messageStyle)
Use this method to build a dialog field manager with the specified scrolling style.
style
- Scrolling style for this manager (can be
Manager.VERTICAL_SCROLL
or
Manager.VERTICAL_SCROLLBAR
).messageStyle
- Scrolling style for this manager used for the message portion (can be
Manager.VERTICAL_SCROLL
or
Manager.VERTICAL_SCROLLBAR
).Method Detail |
---|
public void addCustomField(Field f)
f
- Field to add to this manager.public void deleteCustomField(Field field)
field
- Field to delete from this manager.public void deleteCustomFields()
public Field getCustomField(int index)
index
- Position of field within this manager's user field list.public Manager getCustomManager()
This dialog field manager uses another manager to control its user field area; use this method to retrieve that manager.
public void insertCustomField(Field f, int index)
f
- Field to add to this manager.index
- Position of field within this manager's user field list.protected int moveFocus(int amount, int status, int time)
moveFocus
in class Manager
amount
- If positive, move focus forward this many index positions;
if negative, move focus backwards this many index positions.status
- Trackwheel event modifiers.time
- Number of milliseconds since the device was turned on.
public void setIcon(BitmapField icon)
icon
- Icon to add, or null to remove this manager's icon.public void setMessage(RichTextField label)
label
- Formatted string to use as this manager's title.protected void sublayout(int width, int height)
This system invokes this method to prompt this manager to lay out its contents. Note that dialog field manager will in turn prompt its user field manager to layout any extra fields in its user field area.
sublayout
in class Manager
width
- Horizontal space available to this manager.height
- Vertical space available to this manager.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2010 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. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.