public class PropertyAdapter
extends org.openide.nodes.PropertySupport.ReadWrite
| Modifier and Type | Class and Description |
|---|---|
static class |
PropertyAdapter.NamedAdapter
Automaticaly assign string identifier to the property.
|
org.openide.nodes.PropertySupport.Name, org.openide.nodes.PropertySupport.ReadOnly<T>, org.openide.nodes.PropertySupport.ReadWrite<T>, org.openide.nodes.PropertySupport.Reflection<T>, org.openide.nodes.PropertySupport.WriteOnly<T>| Modifier and Type | Field and Description |
|---|---|
protected cz.cuni.amis.introspection.Property |
property
Property represented by this adapter.
|
protected static int |
propertyId
Property counter used to make unique identifiers.
|
protected static String |
propertyPrefix
Prefix used to make unique identiiers.
|
protected String |
propId
Unigue identifier of this property.
|
| Constructor and Description |
|---|
PropertyAdapter(String propId,
cz.cuni.amis.introspection.Property property)
Creates a new instance of PropertyAdapter, with string property identifier equal to property name.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPropertyID() |
Object |
getValue() |
void |
setValue(Object object)
Sets new value of this property.
|
equals, getHtmlDisplayName, getPropertyEditor, getValueType, hashCode, isDefaultValue, restoreDefaultValue, supportsDefaultValueattributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue, toStringprotected static int propertyId
protected static final String propertyPrefix
protected cz.cuni.amis.introspection.Property property
protected String propId
public PropertyAdapter(String propId, cz.cuni.amis.introspection.Property property) throws cz.cuni.amis.introspection.IntrospectionException
propId - Unique ID of this property.property - Pogamut property to be adapted.cz.cuni.amis.introspection.IntrospectionExceptionpublic String getPropertyID()
public Object getValue() throws IllegalAccessException, InvocationTargetException
getValue in class org.openide.nodes.Node.PropertyIllegalAccessExceptionInvocationTargetExceptionpublic void setValue(Object object) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
setValue in class org.openide.nodes.Node.Propertyobject - New value.IllegalAccessExceptionIllegalArgumentExceptionInvocationTargetExceptionCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.