See: Description
Class | Description |
---|---|
ClasspathProperty |
Operator serving property of type NbClasspath
|
ColorProperty |
Operator serving property of type Color
|
DimensionProperty |
Operator serving property of type Dimension
|
FileProperty |
Operator serving property of type File
|
FontProperty |
Operator serving property of type Font
|
PointProperty |
Operator serving property of type Point
|
ProcessDescriptorProperty |
Operator serving property of type ProcessDescriptor
|
Property |
Handles properties in IDE property sheets.
|
PropertySheetOperator |
Handles org.openide.explorer.propertysheet.PropertySheet which
represents IDE property sheet TopComponent.
|
RectangleProperty |
Operator serving property of type Rectangle
|
StringArrayProperty |
Operator serving property of type String[]
|
StringProperty |
Operator serving property of type String
|
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, ...).
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
.