|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.ui.component.ButtonFieldFactory
public class ButtonFieldFactory
Assists in creation of ButtonField instances using information contained within Command instances.
Method Summary | ||
---|---|---|
ButtonField |
create(Command command)
Creates a button and sets its Command and associated context. |
|
ButtonField |
create(Command command,
Object context)
Creates a button and sets its Command and associated context. |
|
static ButtonFieldFactory |
getInstance()
Returns ButtonFieldFactory singleton instance. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public ButtonField create(Command command)
CommandMetadata.BITMAP_ICON
String Sets icon using resource name
(CommandMetadata.PREDEFINED_ICON
int Sets icon using int constant defined in Bitmap
(CommandMetadata.THEMED_ICON
String Sets icon using theme tag
(CommandMetadata.ALIGNMENT
String Sets internal alignment of button and / or image. Valid values: "left", "hcenter", "right", "top", "vcenter", "bottom".
(CommandMetadata.LABEL
String Sets button label
(CommandMetadata.LABEL_ORIENTATION
String Sets label orientation if there is an icon. Valid values: "left", "right"
If any invalid value retrieved from CommandMetadata will be ignored.
Method never returns null. If command is null then ButtonField will be created with null command.
command
- Command instance to use for Button
public ButtonField create(Command command, Object context)
CommandMetadata.BITMAP_ICON
String Sets icon using resource name
(CommandMetadata.PREDEFINED_ICON
int Sets icon using int constant defined in Bitmap
(CommandMetadata.THEMED_ICON
String Sets icon using theme tag
(CommandMetadata.ALIGNMENT
String Sets internal alignment of button and / or image. Valid values: "left", "hcenter", "right", "top", "vcenter", "bottom".
(CommandMetadata.LABEL
String Sets button label
(CommandMetadata.LABEL_ORIENTATION
String Sets label orientation if there is an icon. Valid values: "left", "right"
If any invalid value retrieved from CommandMetadata will be ignored.
Method never returns null. If command and / or context is null then ButtonField will be created with null command and / or context.
command
- Command instance to use for Buttoncontext
- Command context
public static ButtonFieldFactory getInstance()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal