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/06/29 20:54:49 UTC

[jira] Created: (PIVOT-553) Add support for named styles

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
             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.


[jira] Issue Comment Edited: (PIVOT-553) Add support for named styles

Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12885274#action_12885274 ] 

Greg Brown edited comment on PIVOT-553 at 7/5/10 1:30 PM:
----------------------------------------------------------

Note that this update enables the use of CSS to define named styles in the future, via a possible (but as yet unimplemented) CSSSerializer class:

boldGreenLabel: {
    font: Verdana BOLD 11;
    color: #00aa00;
    background-color: #eeeeee;
}


      was (Author: gbrown):
    Note that it may be possible to use CSS to define named styles in the future, via a possible (but as yet unimplemented) CSSSerializer class:

boldGreenLabel: {
    font: Verdana BOLD 11;
    color: #00aa00;
    background-color: #eeeeee;
}

  
> 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.


[jira] Assigned: (PIVOT-553) Add support for named styles

Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Greg Brown reassigned PIVOT-553:
--------------------------------

    Assignee: Greg Brown

> 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.


[jira] Commented: (PIVOT-553) Add support for named styles

Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12885274#action_12885274 ] 

Greg Brown commented on PIVOT-553:
----------------------------------

Note that it may be possible to use CSS to define named styles in the future, via a possible (but as yet unimplemented) CSSSerializer class:

boldGreenLabel: {
    font: Verdana BOLD 11;
    color: #00aa00;
    background-color: #eeeeee;
}


> 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.


[jira] Commented: (PIVOT-553) Add support for named styles

Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12889652#action_12889652 ] 

Greg Brown commented on PIVOT-553:
----------------------------------

The solution described above was not sufficient. It did not support the definition of styles that should be applied to all instances of a type, nor did it support the application of both named styles as well as instance-specific styles. An updated solution has been committed that adds support for these features.


> 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.


[jira] Resolved: (PIVOT-553) Add support for named styles

Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
     [ 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.