public static final class PropertySupport.Name extends PropertySupport<String>
PropertySupport.Name.setValue(java.lang.String)
and PropertySupport.Name.getValue()
to Node.setName(java.lang.String)
and FeatureDescriptor.getName()
.PropertySupport.Name, PropertySupport.ReadOnly<T>, PropertySupport.ReadWrite<T>, PropertySupport.Reflection<T>, PropertySupport.WriteOnly<T>
Constructor and Description |
---|
Name(Node node)
Create the name property for a node with the standard name and hint.
|
Name(Node node,
String propName,
String hint)
Create the name property for a node.
|
Modifier and Type | Method and Description |
---|---|
String |
getValue()
Get the value.
|
void |
setValue(String val)
Set the value.
|
canRead, canWrite, readOnly, readWrite, withDisplayName, withShortDescription, writeOnly
equals, getHtmlDisplayName, getPropertyEditor, getValueType, hashCode, isDefaultValue, restoreDefaultValue, supportsDefaultValue
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue, toString
public Name(Node node)
node
- the nodepublic String getValue() throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
Node.Property
getValue
in class Node.Property<String>
IllegalAccessException
- cannot access the called methodInvocationTargetException
- an exception during invocationIllegalArgumentException
public void setValue(String val) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
Node.Property
setValue
in class Node.Property<String>
val
- the new value of the propertyIllegalAccessException
- cannot access the called methodIllegalArgumentException
- wrong argumentInvocationTargetException
- an exception during invocation