Inheritance of background color in a containment hierarchy of objects in a graphical user interface
First Claim
1. A system of software components, which can be invoked during runtime by an application program running under an operating system to display a parent and a child object, and wherein:
- if a background color of the child object is declared, the child object is displayed with the declared background color;
if the background color of the child object is not declared, and a background color is globally defined for the system of components, the child object is displayed with the globally defined background color; and
if the background color of the child object is not declared, and the background color setting is not globally defined for the system of components, the child object is displayed with the background color of the parent.
1 Assignment
0 Petitions
Accused Products
Abstract
A system and method are disclosed whereby the normal mechanism for color inheritance for the Swing application program interface (API) is altered to provide consistency with legacy Java applications in which the graphical user interface (GUI) is based on the abstract windowing toolkit (AWT) in legacy applications. According to the system and method disclosed herein, if the background color of a GUI object (such as a button) is explicitly declared, the object will be displayed with that color. Otherwise, the object inherits the background color defined by global settings in the Swing API. If no such settings are in effect, the object inherits the background color of its parent (as is the case in legacy AWT-based applications). This modification is available in an extension to Swing, referred to herein as AWTSwing.
35 Citations
15 Claims
-
1. A system of software components, which can be invoked during runtime by an application program running under an operating system to display a parent and a child object, and wherein:
-
if a background color of the child object is declared, the child object is displayed with the declared background color;
if the background color of the child object is not declared, and a background color is globally defined for the system of components, the child object is displayed with the globally defined background color; and
if the background color of the child object is not declared, and the background color setting is not globally defined for the system of components, the child object is displayed with the background color of the parent. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method for color inheritance between a parent and a child object, which are displayed using a system of software components within an operating system, the method comprising:
-
if a background color of the child object is declared, displaying the child object with the declared background color;
if the background color of the child object is not declared, and a background color is globally defined for the system of components, displaying the child object with the globally defined background color; and
if the background color of the child object is not declared, and the background color setting is not globally defined for the system of components, displaying the child object with the background color of the parent. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A computer-readable storage device, comprising:
-
a windows-based operating system;
a system of software components within the operating system;
a parent object and child object, both created at runtime by an application running under the operating system, wherein if a background color of the child object is declared when it is created, the child object is displayed with the declared background color;
if the background color of the child object is not declared when it is created, and a background color is globally defined for the system of components, the child object is displayed with the globally defined background color; and
if the background color of the child object is not declared when it is created, and the background color setting is not globally defined for the system of components, the child object is displayed with the background color of the parent.
-
Specification