cz.cuni.amis.nb.pogamut.base.introspection
Class PropertyAdapter

Package class diagram package PropertyAdapter
java.lang.Object
  extended by java.beans.FeatureDescriptor
      extended by org.openide.nodes.Node.Property<T>
          extended by org.openide.nodes.PropertySupport<T>
              extended by org.openide.nodes.PropertySupport.ReadWrite
                  extended by cz.cuni.amis.nb.pogamut.base.introspection.PropertyAdapter
Direct Known Subclasses:
PropertyAdapter.NamedAdapter

public class PropertyAdapter
extends org.openide.nodes.PropertySupport.ReadWrite

Adapts Pogamut property to Netbeans property.

Author:
ik

Nested Class Summary
static class PropertyAdapter.NamedAdapter
          Automaticaly assign string identifier to the property.
 
Nested classes/interfaces inherited from class org.openide.nodes.PropertySupport
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>
 
Field Summary
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 Summary
PropertyAdapter(String propId, cz.cuni.amis.introspection.Property property)
          Creates a new instance of PropertyAdapter, with string property identifier equal to property name.
 
Method Summary
 String getPropertyID()
           
 Object getValue()
           
 void setValue(Object object)
          Sets new value of this property.
 
Methods inherited from class org.openide.nodes.PropertySupport
canRead, canWrite
 
Methods inherited from class org.openide.nodes.Node.Property
equals, getHtmlDisplayName, getPropertyEditor, getValueType, hashCode, isDefaultValue, restoreDefaultValue, supportsDefaultValue
 
Methods inherited from class java.beans.FeatureDescriptor
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyId

protected static int propertyId
Property counter used to make unique identifiers.


propertyPrefix

protected static final String propertyPrefix
Prefix used to make unique identiiers.

See Also:
Constant Field Values

property

protected cz.cuni.amis.introspection.Property property
Property represented by this adapter.


propId

protected String propId
Unigue identifier of this property.

Constructor Detail

PropertyAdapter

public PropertyAdapter(String propId,
                       cz.cuni.amis.introspection.Property property)
                throws cz.cuni.amis.introspection.IntrospectionException
Creates a new instance of PropertyAdapter, with string property identifier equal to property name.

Parameters:
propId - Unique ID of this property.
property - Pogamut property to be adapted.
Throws:
cz.cuni.amis.introspection.IntrospectionException
Method Detail

getPropertyID

public String getPropertyID()
Returns:
Unique ID of this property.

getValue

public Object getValue()
                throws IllegalAccessException,
                       InvocationTargetException
Specified by:
getValue in class org.openide.nodes.Node.Property
Returns:
Value of property.
Throws:
IllegalAccessException
InvocationTargetException

setValue

public void setValue(Object object)
              throws IllegalAccessException,
                     IllegalArgumentException,
                     InvocationTargetException
Sets new value of this property.

Specified by:
setValue in class org.openide.nodes.Node.Property
Parameters:
object - New value.
Throws:
IllegalAccessException
IllegalArgumentException
InvocationTargetException


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.