C H A P T E R  19

Properties

With the Properties window you can display the properties of a node in a simple way. This means you can display the properties of the data or of the action which is represented by this node (for more information see Chapter 12). Thus, you give the user the possibility to change it. A set of properties is managed by the Sheet class of the Nodes API. The AbstractNode class (usually the basis of a node) provides such a Sheet via the method getSheet(). To provide such a Sheet, you just have to overwrite the createSheet() method. Then, you can add your specific properties to this Sheet. I will provide an example to demonstrate how this works. You want to display the ID3 information of the just selected or activated MP3 ...

Get The Definitive Guide to NetBeans™ Platform 7 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.