You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "Tim (JIRA)" <ji...@apache.org> on 2009/02/25 16:49:56 UTC

[JIRA] Created: (CLK-494) Per Node Icon for Tree

Per Node Icon for Tree
----------------------

                 Key: CLK-494
                 URL: http://issues.apache.org/click/browse/CLK-494
             Project: Click
          Issue Type: New Feature
          Components: extras
            Reporter: Tim
            Priority: Minor


Add ability to the Tree to have a different icon per node.  This way, a developer could change the icon for a node depending on their needs.  An example where this would be useful is if you are using the tree to allow the user to build and publish a book.  If a page in the book is not published you might want to have a custom graphic that reflects that the page is not published, which is different than the default graphic for a node.  In this scenario, the default graphic would still be needed for published pages.

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


[JIRA] Resolved: (CLK-494) Per Node Icon for Tree

Posted by "Bob Schellink (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/click/browse/CLK-494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bob Schellink resolved CLK-494.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.0
         Assignee: Bob Schellink

Thanks Tim, checked into trunk.

> Per Node Icon for Tree
> ----------------------
>
>                 Key: CLK-494
>                 URL: http://issues.apache.org/click/browse/CLK-494
>             Project: Click
>          Issue Type: New Feature
>          Components: extras
>            Reporter: Tim Hooper
>            Assignee: Bob Schellink
>            Priority: Minor
>             Fix For: 2.1.0
>
>         Attachments: Tree.java, TreeNode.java
>
>
> Add ability to the Tree to have a different icon per node.  This way, a developer could change the icon for a node depending on their needs.  An example where this would be useful is if you are using the tree to allow the user to build and publish a book.  If a page in the book is not published you might want to have a custom graphic that reflects that the page is not published, which is different than the default graphic for a node.  In this scenario, the default graphic would still be needed for published pages.

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


[JIRA] Updated: (CLK-494) Per Node Icon for Tree

Posted by "Tim Hooper (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/click/browse/CLK-494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Hooper updated CLK-494:
---------------------------

    Attachment: Tree.java

modified renderIcon so that if the TreeNode has the icon field set, that icon is displayed instead of the default icon.

> Per Node Icon for Tree
> ----------------------
>
>                 Key: CLK-494
>                 URL: http://issues.apache.org/click/browse/CLK-494
>             Project: Click
>          Issue Type: New Feature
>          Components: extras
>            Reporter: Tim Hooper
>            Priority: Minor
>         Attachments: Tree.java, TreeNode.java
>
>
> Add ability to the Tree to have a different icon per node.  This way, a developer could change the icon for a node depending on their needs.  An example where this would be useful is if you are using the tree to allow the user to build and publish a book.  If a page in the book is not published you might want to have a custom graphic that reflects that the page is not published, which is different than the default graphic for a node.  In this scenario, the default graphic would still be needed for published pages.

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


[JIRA] Updated: (CLK-494) Per Node Icon for Tree

Posted by "Tim Hooper (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/click/browse/CLK-494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Hooper updated CLK-494:
---------------------------

    Attachment: TreeNode.java

Added the String icon field to hold a location for an icon for the TreeNode.

> Per Node Icon for Tree
> ----------------------
>
>                 Key: CLK-494
>                 URL: http://issues.apache.org/click/browse/CLK-494
>             Project: Click
>          Issue Type: New Feature
>          Components: extras
>            Reporter: Tim Hooper
>            Priority: Minor
>         Attachments: Tree.java, TreeNode.java
>
>
> Add ability to the Tree to have a different icon per node.  This way, a developer could change the icon for a node depending on their needs.  An example where this would be useful is if you are using the tree to allow the user to build and publish a book.  If a page in the book is not published you might want to have a custom graphic that reflects that the page is not published, which is different than the default graphic for a node.  In this scenario, the default graphic would still be needed for published pages.

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