com.nokia.mid.theme
Interface Theme


public interface Theme

Theme contains information on a native theme. See ThemeManager for ways to get an instance of Theme.


Field Summary
static int COLOR_BACKGROUND
           
static int COLOR_BORDER
           
static int COLOR_FOREGROUND
           
static int COLOR_HIGHLIGHT_BACKGROUND
           
static int COLOR_HIGHLIGHT_BORDER
           
static int COLOR_HIGHLIGHT_FOREGROUND
           
static int COLOR_LINK_NORMAL
           
static int COLOR_LINK_PRESSED
           
static int COLOR_LINK_VISITED
           
static int COLOR_MAX
           
static int COLOR_TITLEBAR_BACKGROUND
           
static int COLOR_TITLEBAR_FOREGROUND
           
static int IMAGE_ACCOUNT_MANAGE
           
static int IMAGE_ACCOUNT_SWITCH
           
static int IMAGE_ALBUMS
           
static int IMAGE_ATTACH
           
static int IMAGE_CALENDAR_AGENDA
           
static int IMAGE_CALENDAR_DAY
           
static int IMAGE_CALENDAR_MONTH
           
static int IMAGE_CALENDAR_TODAY
           
static int IMAGE_CAMERA
           
static int IMAGE_CANCEL
           
static int IMAGE_CONFIRM
           
static int IMAGE_CONTRAST_HIGH
           
static int IMAGE_CONTRAST_LOW
           
static int IMAGE_CREATE
           
static int IMAGE_DELETE
           
static int IMAGE_EDIT
           
static int IMAGE_FAVORITE_LIST
           
static int IMAGE_FAVORITE_OFF
           
static int IMAGE_FAVORITE_ON
           
static int IMAGE_FLIP_HORIZONTAL
           
static int IMAGE_FLIP_VERTICAL
           
static int IMAGE_FORWARD
           
static int IMAGE_GALLERY
           
static int IMAGE_HOME
           
static int IMAGE_INFORMATION
           
static int IMAGE_LIGHT_HIGH
           
static int IMAGE_LIGHT_LOW
           
static int IMAGE_LIKE_OFF
           
static int IMAGE_LIKE_ON
           
static int IMAGE_LIST
           
static int IMAGE_MAX
           
static int IMAGE_MEMORY
           
static int IMAGE_MUTE
           
static int IMAGE_NEXT
           
static int IMAGE_PAUSE
           
static int IMAGE_PLAY
           
static int IMAGE_PREVIOUS
           
static int IMAGE_RECORD
           
static int IMAGE_REPEAT_ALL
           
static int IMAGE_REPEAT_OFF
           
static int IMAGE_REPEAT_ONE
           
static int IMAGE_REPLY
           
static int IMAGE_ROTATE_LEFT
           
static int IMAGE_ROTATE_RIGHT
           
static int IMAGE_SAVE
           
static int IMAGE_SDCARD
           
static int IMAGE_SEND
           
static int IMAGE_SEND_MESSAGE
           
static int IMAGE_SHARE
           
static int IMAGE_SHUFFLE
           
static int IMAGE_SMILEY
           
static int IMAGE_SPEAKER
           
static int IMAGE_STOP
           
static int IMAGE_STORE
           
static int IMAGE_SYNCHRONIZE
           
static int IMAGE_WINDOWS
           
 
Method Summary
 int getColor(int colorId)
          Get a color from this Theme
 Image getImage(int imageId)
          Get an image from this Theme.
 java.lang.String getName()
          Get the Name of this Theme
 

Field Detail

COLOR_BACKGROUND

static final int COLOR_BACKGROUND
See Also:
Constant Field Values

COLOR_FOREGROUND

static final int COLOR_FOREGROUND
See Also:
Constant Field Values

COLOR_BORDER

static final int COLOR_BORDER
See Also:
Constant Field Values

COLOR_HIGHLIGHT_FOREGROUND

static final int COLOR_HIGHLIGHT_FOREGROUND
See Also:
Constant Field Values

COLOR_HIGHLIGHT_BACKGROUND

static final int COLOR_HIGHLIGHT_BACKGROUND
See Also:
Constant Field Values

COLOR_HIGHLIGHT_BORDER

static final int COLOR_HIGHLIGHT_BORDER
See Also:
Constant Field Values

COLOR_LINK_NORMAL

static final int COLOR_LINK_NORMAL
See Also:
Constant Field Values

COLOR_LINK_PRESSED

static final int COLOR_LINK_PRESSED
See Also:
Constant Field Values

COLOR_LINK_VISITED

static final int COLOR_LINK_VISITED
See Also:
Constant Field Values

COLOR_TITLEBAR_FOREGROUND

static final int COLOR_TITLEBAR_FOREGROUND
See Also:
Constant Field Values

COLOR_TITLEBAR_BACKGROUND

static final int COLOR_TITLEBAR_BACKGROUND
See Also:
Constant Field Values

COLOR_MAX

static final int COLOR_MAX
See Also:
Constant Field Values

IMAGE_RECORD

static final int IMAGE_RECORD
See Also:
Constant Field Values

IMAGE_STOP

static final int IMAGE_STOP
See Also:
Constant Field Values

IMAGE_MUTE

static final int IMAGE_MUTE
See Also:
Constant Field Values

IMAGE_SPEAKER

static final int IMAGE_SPEAKER
See Also:
Constant Field Values

IMAGE_PREVIOUS

static final int IMAGE_PREVIOUS
See Also:
Constant Field Values

IMAGE_NEXT

static final int IMAGE_NEXT
See Also:
Constant Field Values

IMAGE_SHUFFLE

static final int IMAGE_SHUFFLE
See Also:
Constant Field Values

IMAGE_REPEAT_ONE

static final int IMAGE_REPEAT_ONE
See Also:
Constant Field Values

IMAGE_REPEAT_OFF

static final int IMAGE_REPEAT_OFF
See Also:
Constant Field Values

IMAGE_REPEAT_ALL

static final int IMAGE_REPEAT_ALL
See Also:
Constant Field Values

IMAGE_PLAY

static final int IMAGE_PLAY
See Also:
Constant Field Values

IMAGE_PAUSE

static final int IMAGE_PAUSE
See Also:
Constant Field Values

IMAGE_CONTRAST_HIGH

static final int IMAGE_CONTRAST_HIGH
See Also:
Constant Field Values

IMAGE_CONTRAST_LOW

static final int IMAGE_CONTRAST_LOW
See Also:
Constant Field Values

IMAGE_LIGHT_HIGH

static final int IMAGE_LIGHT_HIGH
See Also:
Constant Field Values

IMAGE_LIGHT_LOW

static final int IMAGE_LIGHT_LOW
See Also:
Constant Field Values

IMAGE_FLIP_HORIZONTAL

static final int IMAGE_FLIP_HORIZONTAL
See Also:
Constant Field Values

IMAGE_FLIP_VERTICAL

static final int IMAGE_FLIP_VERTICAL
See Also:
Constant Field Values

IMAGE_ROTATE_RIGHT

static final int IMAGE_ROTATE_RIGHT
See Also:
Constant Field Values

IMAGE_ROTATE_LEFT

static final int IMAGE_ROTATE_LEFT
See Also:
Constant Field Values

IMAGE_CANCEL

static final int IMAGE_CANCEL
See Also:
Constant Field Values

IMAGE_SYNCHRONIZE

static final int IMAGE_SYNCHRONIZE
See Also:
Constant Field Values

IMAGE_SEND

static final int IMAGE_SEND
See Also:
Constant Field Values

IMAGE_LIKE_ON

static final int IMAGE_LIKE_ON
See Also:
Constant Field Values

IMAGE_LIKE_OFF

static final int IMAGE_LIKE_OFF
See Also:
Constant Field Values

IMAGE_SMILEY

static final int IMAGE_SMILEY
See Also:
Constant Field Values

IMAGE_SEND_MESSAGE

static final int IMAGE_SEND_MESSAGE
See Also:
Constant Field Values

IMAGE_CONFIRM

static final int IMAGE_CONFIRM
See Also:
Constant Field Values

IMAGE_FAVORITE_ON

static final int IMAGE_FAVORITE_ON
See Also:
Constant Field Values

IMAGE_FAVORITE_OFF

static final int IMAGE_FAVORITE_OFF
See Also:
Constant Field Values

IMAGE_SHARE

static final int IMAGE_SHARE
See Also:
Constant Field Values

IMAGE_SAVE

static final int IMAGE_SAVE
See Also:
Constant Field Values

IMAGE_REPLY

static final int IMAGE_REPLY
See Also:
Constant Field Values

IMAGE_FORWARD

static final int IMAGE_FORWARD
See Also:
Constant Field Values

IMAGE_DELETE

static final int IMAGE_DELETE
See Also:
Constant Field Values

IMAGE_EDIT

static final int IMAGE_EDIT
See Also:
Constant Field Values

IMAGE_CREATE

static final int IMAGE_CREATE
See Also:
Constant Field Values

IMAGE_ATTACH

static final int IMAGE_ATTACH
See Also:
Constant Field Values

IMAGE_LIST

static final int IMAGE_LIST
See Also:
Constant Field Values

IMAGE_FAVORITE_LIST

static final int IMAGE_FAVORITE_LIST
See Also:
Constant Field Values

IMAGE_CALENDAR_TODAY

static final int IMAGE_CALENDAR_TODAY
See Also:
Constant Field Values

IMAGE_HOME

static final int IMAGE_HOME
See Also:
Constant Field Values

IMAGE_INFORMATION

static final int IMAGE_INFORMATION
See Also:
Constant Field Values

IMAGE_GALLERY

static final int IMAGE_GALLERY
See Also:
Constant Field Values

IMAGE_ACCOUNT_MANAGE

static final int IMAGE_ACCOUNT_MANAGE
See Also:
Constant Field Values

IMAGE_SDCARD

static final int IMAGE_SDCARD
See Also:
Constant Field Values

IMAGE_MEMORY

static final int IMAGE_MEMORY
See Also:
Constant Field Values

IMAGE_WINDOWS

static final int IMAGE_WINDOWS
See Also:
Constant Field Values

IMAGE_CALENDAR_AGENDA

static final int IMAGE_CALENDAR_AGENDA
See Also:
Constant Field Values

IMAGE_ALBUMS

static final int IMAGE_ALBUMS
See Also:
Constant Field Values

IMAGE_CALENDAR_MONTH

static final int IMAGE_CALENDAR_MONTH
See Also:
Constant Field Values

IMAGE_CALENDAR_DAY

static final int IMAGE_CALENDAR_DAY
See Also:
Constant Field Values

IMAGE_ACCOUNT_SWITCH

static final int IMAGE_ACCOUNT_SWITCH
See Also:
Constant Field Values

IMAGE_STORE

static final int IMAGE_STORE
See Also:
Constant Field Values

IMAGE_CAMERA

static final int IMAGE_CAMERA
See Also:
Constant Field Values

IMAGE_MAX

static final int IMAGE_MAX
See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()
Get the Name of this Theme


getColor

int getColor(int colorId)
             throws ThemeException,
                    java.lang.IllegalArgumentException
Get a color from this Theme

Parameters:
colorId - The id of the color to get. colorId is one of the COLOR_* constants defined in this interface.
Returns:
The integer encoded color, in the form 0xRRGGBB
Throws:
ThemeException
java.lang.IllegalArgumentException - When the colorId is invalid

getImage

Image getImage(int imageId)
               throws ThemeException,
                      java.lang.IllegalArgumentException,
                      java.lang.SecurityException
Get an image from this Theme. The MIDlet needs to be manufacturer or operator signed.

Parameters:
imageId - The id of the image to get. imageId is one of the IMAGE_* constants defined in this interface.
Returns:
The requested image, or NULL if the imageId is invalid.
Throws:
ThemeException
java.lang.IllegalArgumentException - When the imageId is invalid
java.lang.SecurityException - When the MIDlet isn't properly signed