Tuesday August 12, 2008
OutlineView Sample
The Plugin Portal now provides a new sample demonstrating the new (NetBeans Platform 6.5) Explorer View called "OutlineView", which is a simpler and more powerful alternative to the NetBeans TreeTableView:
http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=12094
After downloading and installing the plugin, you will find the sample here:
After completing the wizard, you will have these sources:
Run the sample module and you will have a TopComponent with this content:
A new tutorial that will result in the above sample will be created this week. It will be based on these two resources:
So watch this space for the announcement of the new tutorial that relates to this subject. In the meantime, feel free to download the sample and inspect the sources and adapt them to your own scenarios.
Aug 12 2008, 08:55:54 AM PDT Permalink
To be more precise: FileTopComponent class implements ExplorerManager.Provider, but really it is useless since you do not use OutlineView, you use Outline, the pure Swing component beneath OutlineView (NB oriented view): so this is an example for Outline not for OutlineView.
Then it could reside in a pure JavaSE application project not in a NB module :)
Posted by matteodg on August 12, 2008 at 02:33 PM PDT #
Thanks, matteodg. Those bits confused me a bit, in retrospect. I'll have a look at it again as I work on the tutorial.
Posted by Geertjan on August 12, 2008 at 02:36 PM PDT #
Updated the sample to 1.2, which removes the ExplorerManager.
Posted by Geertjan on August 12, 2008 at 02:49 PM PDT #
Why do you name your sample "OutlineView Sample", if this is Outline sample. Don't confuse people.
Could you show real Outline sample?
Posted by petia on January 19, 2009 at 02:53 AM PST #


