public class PropertyField
extends PropertyPanel
PropertiesAction, and therefore has the same behavior and
representation as those property panels.
It is based on org.openide.explorer.propertysheet.PropertyPanel| Modifier and Type | Class and Description |
|---|---|
protected class |
PropertyField.BeanPropertyChangeListener
helper class that updates the PropertyField when the value gets updated in the
Bean while the PropertyField is open
It can handle both Beans that do and those that don't inherit from BeanSupport.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
PREF_CUSTOM_EDITOR
Constant defining preferences in displaying of value.
|
static int |
PREF_INPUT_STATE
Constant defining preferences in displaying of value.
|
static int |
PREF_READ_ONLY
Constant defining preferences in displaying of value.
|
| Modifier | Constructor and Description |
|---|---|
|
PropertyField(GPNode node,
java.lang.String propName)
Constructor that creates a PropertyField from a node and a property Name,
|
|
PropertyField(GPNode node,
java.lang.String propName,
int preferences)
Constructor that creates a PropertyField from a node and a property Name, with preferences
|
protected |
PropertyField(PropertyModel model,
java.lang.Object bean,
java.lang.String propName,
int preferences) |
| Modifier and Type | Method and Description |
|---|---|
protected static Node.Property |
getNodeProperty(Node.PropertySet[] psArr,
java.lang.String propName)
helper method, finds the Node.Property for the indicated propName
|
public static final int PREF_READ_ONLY
public static final int PREF_CUSTOM_EDITOR
public static final int PREF_INPUT_STATE
public PropertyField(GPNode node, java.lang.String propName)
node - the GPNode to which the property belongspropName - the property name of this fieldpublic PropertyField(GPNode node, java.lang.String propName, int preferences)
node - the GPNode to which the property belongspropName - the property name of this fieldpreferences - one or more of PREF_CUSTOM_EDITOR, PREF_INPUT_STATE,
or PREF_READ_ONLYprotected PropertyField(PropertyModel model,
java.lang.Object bean,
java.lang.String propName,
int preferences)
model - preferences - protected static Node.Property getNodeProperty(Node.PropertySet[] psArr,
java.lang.String propName)
psArr - the Node.Property[] normally used to create a Property Sheet for a nodepropName - the name of the property requestedjava.lang.IllegalArgumentException - if the property is not found