METHOD AND APPARATUS FOR EFFICIENT CUSTOMIZATION OF A USER INTERFACE LIBRARY
A method comprises applying a set of common device-specific definitions for a user interface of a device; using application-specific definitions to over-ride select common definitions, the application-specific definitions being applicable to one or more applications on the device; and applying widget-type-specific definitions, each of the widget-type-specific definitions being applicable to one or more applications corresponding to a widget type. In one embodiment, the definitions are stored in a shared memory.
1 . A method, comprising:
applying a set of common device-specific definitions for a user interface of a device;
using application-specific definitions to over-ride select common definitions, the application-specific definitions being applicable to one or more applications on the device; and
applying widget-type-specific definitions, each of the widget-type-specific definitions being applicable to one or more applications corresponding to a widget type.
2 . The method of claim 1 , wherein the common definitions are retrieved from a memory portion shared by two or more applications of the device.
3 . The method of claim 1 , wherein applying the widget-type-specific definitions comprises:
creating one or more lists of definitions for each of one or more widget classes; and
associating an application of the device with one or more of the lists of definitions based on one or more widget classes of the application.
4 . The method of claim 1 , wherein the set of common device-specific definitions and the application-specific definitions includes cascade style sheets.
5 . The method of claim 4 , wherein the cascade style sheets form layer stacks for one or more concerns associated with the user interface of the device.
6 . The method of claim 1 , wherein the device is a mobile device.
7 . An apparatus, comprising:
at least one processor; and
at least one memory including computer program code, the at least one memory and the computer program code configured to, with the at least one processor, cause the apparatus to perform at least the following:
apply a set of common device-specific definitions for a user interface of a device;
use application-specific definitions to over-ride select common definitions, the application-specific definitions being applicable to one or more applications on the device; and
apply widget-type-specific definitions, each of the widget-type-specific definitions being applicable to one or more applications corresponding to a widget type.
8 . The apparatus of claim 7 , wherein the common definitions are retrieved from a memory portion shared by two or more applications of the device.
9 . The apparatus of claim 7 , wherein applying the widget-type-specific definitions comprises:
creating one or more lists of definitions for each of one or more widget classes; and
associating an application of the device with one or more of the lists of definitions based on one or more widget classes of the application.
10 . The apparatus of claim 7 , wherein the set of common device-specific definitions and the application-specific definitions includes cascade style sheets.
11 . The apparatus of claim 10 , wherein the cascade style sheets form layer stacks for one or more concerns associated with the user interface of the device.
12 . The apparatus of claim 7 , wherein the device is a mobile device.
13 . A computer-readable memory including computer executable instructions, said computer executable instructions, when executed by a processor, cause an apparatus to perform the following:
apply a set of common device-specific definitions for a user interface of a device;
use application-specific definitions to over-ride select common definitions, the application-specific definitions being applicable to one or more applications on the device; and
apply widget-type-specific definitions, each of the widget-type-specific definitions being applicable to one or more applications corresponding to a widget type.
14 . The computer-readable memory of claim 13 , wherein the common definitions are retrieved from a memory portion shared by two or more applications of the device.
15 . The computer-readable memory of claim 13 , wherein applying the widget-type-specific definitions comprises:
creating one or more lists of definitions for each of one or more widget classes; and
associating an application of the device with one or more of the lists of definitions based on one or more widget classes of the application.
16 . The computer-readable memory of claim 13 , wherein the set of common device-specific definitions and the application-specific definitions includes cascade style sheets.
17 . The computer-readable memory of claim 16 , wherein the cascade style sheets form layer stacks for one or more concerns associated with the user interface of the device.
18 . The computer-readable memory of claim 13 , wherein the device is a mobile device.