Geertjan's Blog

  • April 14, 2010

iBatis Sample and NetBeans Platform Pic from Norway

Geertjan Wielenga
Product Manager
My small iBatis based sample application is really taking shape now. Apart from the cool PropertyPanel integration in the central editor area below, the other noteworthy thing is that all three of the windows are aware of changes to the underlying model. So, when either the Properties window or the editor are used to change a property, all the other windows are notified and appropriate events take place, such as the display name of the node in the viewer on the left getting updated. Despite the fact that all three windows come from different modules, of course.

I'm also discovering that BeanNode (properties support) + FilterNode (finetuning of BeanNode display) is a far more powerful combination than AbstractNode. And all along I've been using AbstractNode, until now. Plus, the SaveCookie has been integrated successfully. Now I simply need to hook in the standard iBatis code for saving objects to a database and then the "U" in "CRUD" is taken care of.

And here's a pic taken today of the group at the Institute of Marine Research in Bergen Norway on the course that Toni and I are delivering here (we're also in the pic somewhere). Behind the group, you see the amazing view over the Bergen harbor, as well as the mountains right behind it, that's visible from the top of the building and where the pic was taken (and where they have lunch, how cool is that):

Two NetBeans Platform applications they're drawing some inspiration from are the work done at Boeing (especially the JavaOne presentation from 2008 on that topic) and Puzzle GIS.

Join the discussion

Comments ( 5 )
  • Luca Friday, April 30, 2010

    Hello Geertjan,

    I'm trying to use PropertyPanel to achieve what it seems you already have here...

    I'm able to use the property panel to change the data on the nodes, and i'm also able to listen for changes.

    The thing that i really could not achieve, is managing multiselection.

    Could you succeed in letting your PropertyPanels (central form) to handle multiple selected nodea at once?

    BTW... Thanks for the precious help you give us with this blog!

  • Geertjan Wielenga Friday, April 30, 2010

    Hi Luca. What should happen in the PropertyPanels when multiple nodes are selected together?

  • guest Friday, April 30, 2010

    Well, the same thing that happens to a PropertySheet!

    When one select more than one node, the controls reflect the "multi selection" state. For example, if I have 2 nodes selected, and these nodes expose boolean properties, and the value of this properties is not the same, then the relative propertyPanel will contain a "grayed" check box.

    I tried to explore a bit the propertySheet in search of an hack, and I found that when multiple nodes are selected, the PropertySheet contains "ProxyProperties". But I cannot even imagine how to start looking for those...


  • Luca Wednesday, May 12, 2010

    Hello Geertjan,

    did you have a chance looking into this?

    I just need some directions... Where can I find documentation on this?

    If I could manage to achieve the result I hope, I'll write down a tutorial and submit it to you! I promise! :-)

  • Geertjan Wednesday, May 12, 2010

    Write to the mailing list dev@platform.netbeans.org. Thanks.

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.