You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Daniel Kuschny (JIRA)" <ji...@apache.org> on 2011/04/25 12:51:07 UTC

[jira] [Created] (PIVOT-736) Visible Property for ComponentSkin

Visible Property for ComponentSkin
----------------------------------

                 Key: PIVOT-736
                 URL: https://issues.apache.org/jira/browse/PIVOT-736
             Project: Pivot
          Issue Type: New Feature
          Components: wtk, wtk-terra
    Affects Versions: 2.0
            Reporter: Daniel Kuschny
            Priority: Minor
             Fix For: 2.0.1


It would be great if you could set the global visibility for components using a specific styleName.
An example usage would be for help boxes. If I apply the styleName "helpBox" to all BoxPanes which display some HelpText.

Now I create a ToggleButton/Checkbox "Show/Hide HelpBoxes" setting the global visibility property of this StyleName. Now all BoxPanes using this StyleName get shown or hidden.  

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (PIVOT-736) Visible Property for ComponentSkin

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

Sandro Martini resolved PIVOT-736.
----------------------------------

    Resolution: Not A Problem

As written in this thread, this i s not a problem, because:
Visibility isn't a style, so it can't be specified via a named style.


> Visible Property for ComponentSkin
> ----------------------------------
>
>                 Key: PIVOT-736
>                 URL: https://issues.apache.org/jira/browse/PIVOT-736
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk, wtk-terra
>    Affects Versions: 2.0
>            Reporter: Daniel Kuschny
>            Assignee: Greg Brown
>            Priority: Minor
>             Fix For: 2.0.1
>
>
> It would be great if you could set the global visibility for components using a specific styleName.
> An example usage would be for help boxes. If I apply the styleName "helpBox" to all BoxPanes which display some HelpText.
> Now I create a ToggleButton/Checkbox "Show/Hide HelpBoxes" setting the global visibility property of this StyleName. Now all BoxPanes using this StyleName get shown or hidden.  

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PIVOT-736) Visible Property for ComponentSkin

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

Sandro Martini commented on PIVOT-736:
--------------------------------------

Greg, this has to be closed as Won't Fix (or Not a Problem, or other similar) ?


> Visible Property for ComponentSkin
> ----------------------------------
>
>                 Key: PIVOT-736
>                 URL: https://issues.apache.org/jira/browse/PIVOT-736
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk, wtk-terra
>    Affects Versions: 2.0
>            Reporter: Daniel Kuschny
>            Priority: Minor
>
> It would be great if you could set the global visibility for components using a specific styleName.
> An example usage would be for help boxes. If I apply the styleName "helpBox" to all BoxPanes which display some HelpText.
> Now I create a ToggleButton/Checkbox "Show/Hide HelpBoxes" setting the global visibility property of this StyleName. Now all BoxPanes using this StyleName get shown or hidden.  

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (PIVOT-736) Visible Property for ComponentSkin

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

Sandro Martini updated PIVOT-736:
---------------------------------

    Fix Version/s: 2.0.1
         Assignee: Greg Brown

> Visible Property for ComponentSkin
> ----------------------------------
>
>                 Key: PIVOT-736
>                 URL: https://issues.apache.org/jira/browse/PIVOT-736
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk, wtk-terra
>    Affects Versions: 2.0
>            Reporter: Daniel Kuschny
>            Assignee: Greg Brown
>            Priority: Minor
>             Fix For: 2.0.1
>
>
> It would be great if you could set the global visibility for components using a specific styleName.
> An example usage would be for help boxes. If I apply the styleName "helpBox" to all BoxPanes which display some HelpText.
> Now I create a ToggleButton/Checkbox "Show/Hide HelpBoxes" setting the global visibility property of this StyleName. Now all BoxPanes using this StyleName get shown or hidden.  

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (PIVOT-736) Visible Property for ComponentSkin

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

Greg Brown updated PIVOT-736:
-----------------------------

    Fix Version/s:     (was: 2.0.1)

Visibility isn't a style, so it can't be specified via a named style. Also, named styles are not dynamically updated - they are only applied at component creation time. So you wouldn't be able to do this with a style anyway.

One way to handle this would be to set a name property on each "help box". Then you could iterate over the set of named components and set their "visible" flag as needed.



> Visible Property for ComponentSkin
> ----------------------------------
>
>                 Key: PIVOT-736
>                 URL: https://issues.apache.org/jira/browse/PIVOT-736
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk, wtk-terra
>    Affects Versions: 2.0
>            Reporter: Daniel Kuschny
>            Priority: Minor
>
> It would be great if you could set the global visibility for components using a specific styleName.
> An example usage would be for help boxes. If I apply the styleName "helpBox" to all BoxPanes which display some HelpText.
> Now I create a ToggleButton/Checkbox "Show/Hide HelpBoxes" setting the global visibility property of this StyleName. Now all BoxPanes using this StyleName get shown or hidden.  

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PIVOT-736) Visible Property for ComponentSkin

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

Greg Brown commented on PIVOT-736:
----------------------------------

Yeah, either one would be fine.


> Visible Property for ComponentSkin
> ----------------------------------
>
>                 Key: PIVOT-736
>                 URL: https://issues.apache.org/jira/browse/PIVOT-736
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk, wtk-terra
>    Affects Versions: 2.0
>            Reporter: Daniel Kuschny
>            Priority: Minor
>
> It would be great if you could set the global visibility for components using a specific styleName.
> An example usage would be for help boxes. If I apply the styleName "helpBox" to all BoxPanes which display some HelpText.
> Now I create a ToggleButton/Checkbox "Show/Hide HelpBoxes" setting the global visibility property of this StyleName. Now all BoxPanes using this StyleName get shown or hidden.  

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira