Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0
    • Component/s: extras
    • Labels:
      None

      Description

      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.

      1. TreeNode.java
        19 kB
        Tim Hooper
      2. Tree.java
        100 kB
        Tim Hooper

        Activity

        Hide
        Bob Schellink added a comment -

        Thanks Tim, checked into trunk.

        Show
        Bob Schellink added a comment - Thanks Tim, checked into trunk.
        Hide
        Tim Hooper added a comment -

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

        Show
        Tim Hooper added a comment - Added the String icon field to hold a location for an icon for the TreeNode.
        Hide
        Tim Hooper added a comment -

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

        Show
        Tim Hooper added a comment - modified renderIcon so that if the TreeNode has the icon field set, that icon is displayed instead of the default icon.

          People

          • Assignee:
            Bob Schellink
            Reporter:
            Tim Hooper
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development