Dear Magnolians
Unless I am missing something completely tree configuration has always
been a pain since all the configuration info is hardcoded in
configuration classes - quite powerful but not very flexible. Well,
here's a way to change this:
ConfigurableTreeConfiguration.java
It is a configuration class which reads the config info at runtime
(i.e. each time the tree is set up) and displays the tree accordingly.
- You need a new context menu item? No problem, just add such a config
node to the trees configuration.
- You would like to have an additional column with info displayed? Go
right ahead and add it to the trees config node.
- You want to see nodes of an other type in your tree? Sure... by now
you know the deal.
Since this also allows you to define actions (menu items, double-click
on icons) you can create really flexible trees. For instance the test
tree I created displays a hierarchy of three data node types and will
open the correct dialog depending on what icon you've double-clicked.
- You can read about it and download it here:
http://www.fastforward.ch/web/ff/dokumentation/entwickler/magnolia_configurable_tree.html
- It only works with Mangolia 4.1.1
- This file is distributed in the hope that it will be useful, but AS-
IS and WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or
NONINFRINGEMENT.
- If the Magnolia chiefs think that this is useful I would be happy to
contribute it officially to Magnolia
- If you find bugs, typos or have feedback, let me know.
-will
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------