You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Greg Brown (JIRA)" <ji...@apache.org> on 2010/07/15 20:38:50 UTC

[jira] Resolved: (PIVOT-574) Add support for CSS-like type selectors

     [ https://issues.apache.org/jira/browse/PIVOT-574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Greg Brown resolved PIVOT-574.
------------------------------

    Resolution: Fixed

> Add support for CSS-like type selectors
> ---------------------------------------
>
>                 Key: PIVOT-574
>                 URL: https://issues.apache.org/jira/browse/PIVOT-574
>             Project: Pivot
>          Issue Type: New Feature
>            Reporter: Greg Brown
>            Priority: Minor
>             Fix For: 2.0
>
>
> This will allow developers to ensure that a consistent set of styles is applied to all instances of a particular component type. Component#setSkin() will be updated to apply a predefined set of styles to each component instance as it is created. For example, a developer could say that all PushButtons should have the "{font:'Arial-BOLD-24'}" style applied at creation time. 
> Type-specific styles will be defined in JSON files whose package and file name (with the exception of the extension) match the package and class name of the component to which they apply; e.g.:
> /org
>  /apache
>    /pivot
>      /wtk
>        PushButton.styles
> When the component is created, Component#setSkin() will look for a file with the same name as the component class, but with a .styles extension. If it finds one, it will apply the styles contained in the file to the new instance.
> Note the use of the .styles extension as opposed to .json. This is to disambiguate the style descriptor from any potential resource definitions associated with the class, since Resources currently use a .json extension.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.