h1.Manual
h2.CSS Integration
h3.Introduction
One mail goal of this Google Summer of Code (GSoC) project was to simplify the consistent styling of components within MT4j. To achieve this, I have implemented a subset of the functionality of Cascading Style Sheets (CSS) to style the different components.
h3.Supported Selectors
Currently, these selectors are supported:
h2.CSS Integration
h3.Introduction
One mail goal of this Google Summer of Code (GSoC) project was to simplify the consistent styling of components within MT4j. To achieve this, I have implemented a subset of the functionality of Cascading Style Sheets (CSS) to style the different components.
h3.Supported Selectors
Currently, these selectors are supported:
- E {....}: The Type selector. With this selector, you can select components of a specific class, yet not its subclasses, e.g. MTRecangle would support MTRectangles, yet not derived classes as MTTextAreas.
- .E {...} The Class selector. With this selector, you can select components of a class and all of its subclasses, e.g. .MTPolygon also selects MTRectangles.
- #E {...} The ID selector. This selector selects components with a specific CSSID. This CSSID can be set for every MTComponent using the setCSSID(String cssid) method.
As these selectors may overlap, the different types of selectors have different priorities. The ID Selector is the strongest, as it will usually fit to specific objects, followed by the Type selector and the Class selector.
