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/05 19:10:49 UTC
[jira] Resolved: (PIVOT-553) Add support for named styles
[ https://issues.apache.org/jira/browse/PIVOT-553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Greg Brown resolved PIVOT-553.
------------------------------
Resolution: Fixed
Named style support has been added via enhanced include support in BXMLSerializer. It is now possible to include a JSON source file containing style definitions and reference those styles in BXML:
<Window title="Named Styles Test" maximized="true"
xmlns:bxml="http://pivot.apache.org/bxml"
xmlns="org.apache.pivot.wtk">
<bxml:define>
<bxml:include bxml:id="testStyles" src="test_styles.json"/>
</bxml:define>
<Label text="Bold Green Label" styles="$testStyles.boldGreenLabel"/>
</Window>
test_styles.json:
{ boldGreenLabel: {
font: {bold: true},
color: "#00aa00"
}
}
> Add support for named styles
> ----------------------------
>
> Key: PIVOT-553
> URL: https://issues.apache.org/jira/browse/PIVOT-553
> Project: Pivot
> Issue Type: New Feature
> Components: wtk
> Reporter: Greg Brown
> Assignee: Greg Brown
> Fix For: 2.0
>
>
> These would provide support for CSS-like classes (though dynamic updates to the style would most likely not be reflected in components that refer to them).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.