Class PraxisProperty<T extends org.praxislive.core.Value>

java.lang.Object
java.beans.FeatureDescriptor
org.openide.nodes.Node.Property<T>
org.praxislive.ide.properties.PraxisProperty<T>
Type Parameters:
T - value type
All Implemented Interfaces:
AutoCloseable, Disposable
Direct Known Subclasses:
BoundArgumentProperty

public abstract class PraxisProperty<T extends org.praxislive.core.Value> extends org.openide.nodes.Node.Property<T> implements Disposable
Node property supporting PraxisCORE values.
  • Constructor Details

    • PraxisProperty

      public PraxisProperty(Class<T> type)
      Create a property for the given Value type.
      Parameters:
      type - value type
  • Method Details

    • getPropertyEditor

      public PropertyEditor getPropertyEditor()
      Overrides:
      getPropertyEditor in class org.openide.nodes.Node.Property<T extends org.praxislive.core.Value>
    • isActiveEditor

      public boolean isActiveEditor(PropertyEditor editor)
      Checks if the provided editor is the active editor for this property, unwrapping PraxisProperty.DelegateEditor if necessary.
      Parameters:
      editor - property editor
      Returns:
      is active editor
    • createEditor

      protected PraxisProperty.Editor createEditor()
    • setValue

      public void setValue(T val)
      Specified by:
      setValue in class org.openide.nodes.Node.Property<T extends org.praxislive.core.Value>
    • setValue

      public void setValue(T value, Callback callback)
      Set the property value with response callback.
      Parameters:
      value - new value
      callback - response callback
    • canWrite

      public boolean canWrite()
      Specified by:
      canWrite in class org.openide.nodes.Node.Property<T extends org.praxislive.core.Value>
    • getValue

      public abstract T getValue()
      Specified by:
      getValue in class org.openide.nodes.Node.Property<T extends org.praxislive.core.Value>
    • getValue

      public Object getValue(String key)
      Overrides:
      getValue in class FeatureDescriptor
    • attributeNames

      public Enumeration<String> attributeNames()
      Overrides:
      attributeNames in class FeatureDescriptor
    • dispose

      public void dispose()
      Description copied from interface: Disposable
      Dispose of this object.
      Specified by:
      dispose in interface Disposable