Style sheets contain collections of graphic
settings, such as color, font, or icon, which are used to render
objects and associated attributes in graphic components. Cascading
Style Sheets (CSS) provide a powerful mechanism for customizing
HTML rendering in a web browser. The CSS specification originates
from the World Wide Web Consortium (W3C) and has the status of a
W3C Recommendation.
The CSS mechanism is a great improvement over the
.Xdefault
resource mechanism of the X Window System. The basic idea remains
the same: matching a pattern and setting resource values. CSS are
intended for HTML rendering, matching HTML tags, and setting style
values. XML is also a CSS target, especially in the context of the
Scalable Vector Graphic (SVG) specification of W3C.
In Rogue Wave®
JViews
TGO, the CSS level 2 (
CSS2) Recommendation is transposed to the
Java™ language and used to set JavaBean™ properties in accordance
with the Java object hierarchy and state.
JViews TGO graphic
components use CSS chiefly for the following purposes:
To
define how each business object is to be displayed in the
graphic components.
To
define a setting specific to one graphic component, but
generalized within that component, such as the background color
of a view.
JViews TGO supplies a
large number of predefined ready-to-use CSS properties that apply
to both predefined and custom business classes, objects, and
attributes of these objects. Graphic components use these
properties to render data.
JViews
TGO provides default
property values for creating a default look
for data appearing across different graphic components.