Skip navigation links
org.netbeans.modules.jellytools.platform/3 3.30

Package org.netbeans.jellytools.properties

Provides a set of classes for setting properties.

See: Description

Package org.netbeans.jellytools.properties Description

Provides a set of classes for setting properties.

In the IDE properties settings happens through so called property sheets. Property sheet (PropertySheetOperator) can be docked to any other window. Property sheet consists of JTable with properties and optional description area. The table has two columns showing property name and property value. Properties are grouped to logical categories which can be collapsed or expanded when properties are sorted by category. It is also possible to sort properties alphabetically (Sort by Name). Property value can be changed by inline editors (text field for string values, check box for boolean values - Property.setValue(String) and combo box for list values - Property.setValue(int)) or by custom editors where they are available (Property.openEditor()).

You can extend Property, if you want to create your specific property. Some common properties are already created in this package (ColorProperty, PointProperty, ...).

Properties can be used the following way:
        PropertySheetOperator pso = new PropertySheetOperator("Properties of MyClass");
        Property p = new Property(pso, "Name");
        System.out.println("\nProperty name="+p.getName());
        System.out.println("\nProperty value="+p.getValue());
        p.setValue("ANewValue");
        // set a new value by index where it is applicable
        //p.setValue(2);
        // open custom editor where it is applicable
        //p.openEditor();
Common custom editors are grouped in package editors.

Skip navigation links
org.netbeans.modules.jellytools.platform/3 3.30

Built on April 20 2018.  |  Portions Copyright 1997-2018 Oracle. All rights reserved.