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.
Method Summary |
int |
getColor(int colorId)
Get a color from this Theme |
javax.microedition.lcdui.Image |
getImage(int imageId)
Get an image from this Theme. |
java.lang.String |
getName()
Get the Name of this Theme |
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
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
javax.microedition.lcdui.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
Copyright © 2012 Nokia Corporation. All rights reserved.
Nokia is registered trademark of Nokia Corporation. Java and all Java-based marks are trademarks or registered trademarks of Oracle Corporation. Other product and company names mentioned herein may be trademarks or trade names of their respective owners. This document is confidential information of Nokia Corporation.
Disclaimer
The information in this document is provided "as is," with no warranties whatsoever, including any warranty of merchantability, fitness for any particular purpose, or any warranty otherwise arising out of any proposal, specification, or sample. Furthermore, information provided in this document is preliminary, and may be changed substantially prior to final release.
Nokia Corporation disclaims all liability, including liability for infringement of any proprietary rights, relating to this document and implementation of any information presented in this document.
Nokia Corporation retains the right to make changes to this document at any time, without notice.
License
Subject to above disclaimer, a license is hereby granted to use this documentation solely under existing Limited License Agreement and non-disclosure agreement between the companies for the agreed application development for Series 40 Nokia phones. No other licenses e.g. to any intellectual property rights are granted herein. Any use of the screen shots of this documentation, including any icons thereof, is subject to Nokia's prior written approval.