Package org.praxislive.ide.properties
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAn editor that can delegate to other underlying editors.static interfaceAn extension of PropertyEditor for PraxisProperty instances.static interfaceAn editor that can set a value from a Pcl command. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanWrite()protected PraxisProperty.Editorvoiddispose()Dispose of this object.abstract TgetValue()booleanisActiveEditor(PropertyEditor editor) Checks if the provided editor is the active editor for this property, unwrappingPraxisProperty.DelegateEditorif necessary.voidvoidSet the property value with response callback.Methods inherited from class org.openide.nodes.Node.Property
canRead, equals, getHtmlDisplayName, getValueType, hashCode, isDefaultValue, restoreDefaultValue, supportsDefaultValueMethods inherited from class java.beans.FeatureDescriptor
getDisplayName, getName, getShortDescription, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.praxislive.ide.core.api.Disposable
close
-
Constructor Details
-
PraxisProperty
Create a property for the given Value type.- Parameters:
type- value type
-
-
Method Details
-
getPropertyEditor
- Overrides:
getPropertyEditorin classorg.openide.nodes.Node.Property<T extends org.praxislive.core.Value>
-
isActiveEditor
Checks if the provided editor is the active editor for this property, unwrappingPraxisProperty.DelegateEditorif necessary.- Parameters:
editor- property editor- Returns:
- is active editor
-
createEditor
-
setValue
- Specified by:
setValuein classorg.openide.nodes.Node.Property<T extends org.praxislive.core.Value>
-
setValue
Set the property value with response callback.- Parameters:
value- new valuecallback- response callback
-
canWrite
public boolean canWrite()- Specified by:
canWritein classorg.openide.nodes.Node.Property<T extends org.praxislive.core.Value>
-
getValue
- Specified by:
getValuein classorg.openide.nodes.Node.Property<T extends org.praxislive.core.Value>
-
getValue
- Overrides:
getValuein classFeatureDescriptor
-
attributeNames
- Overrides:
attributeNamesin classFeatureDescriptor
-
dispose
public void dispose()Description copied from interface:DisposableDispose of this object.- Specified by:
disposein interfaceDisposable
-