public class NPropertyDescriptor extends NMemberDescriptor
| Modifier and Type | Class and Description |
|---|---|
static class |
NPropertyDescriptor.StdValueCollection
Represents a collection of standard property values.
|
NObject.FromHandle, NObject.NObjectCallback, NObject.NObjectPropertyChangedCallbackchangedCallback, changingCallback, FLAG_REF_RET, propertyChangedCallback, stateChangedCallback| Modifier | Constructor and Description |
|---|---|
protected |
NPropertyDescriptor(HNObject handle,
boolean claimHandle) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValueChangeListener(NObject component,
ChangeListener listener)
Adds a "Value Changed" event listener to the component.
|
PropertyDescriptor |
asPropertyDescriptor(NObject obj) |
boolean |
canResetValue(NObject component)
Checks whether the value of the specified component can be reset.
|
Object |
getDefaultValue()
Retrieves the default value of the current property.
|
String |
getFormat()
Retrieves the format string of the current property decriptor.
|
Object |
getMaxValue()
Retrieves the maximum value of the current property.
|
Object |
getMinValue()
Retrieves the minimum value of the current property.
|
NType |
getPropertyType()
Retrieves the type of the current property.
|
NPropertyDescriptor.StdValueCollection |
getStdValues()
Retrieves a collection of standard value for the current property.
|
Object |
getValue(NObject component)
Gets the current value of the property on a component.
|
<E> E |
getValue(NObject component,
Class<E> cls)
Gets the current value of the property on a component.
|
static NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
void |
removeValueChangeListener(NObject component,
ChangeListener listener)
Removes a "Value Changed" event listener from the component.
|
void |
resetValue(NObject component)
Resets the value of the specified component.
|
<E> void |
setValue(NObject component,
Class<E> cls,
E value)
Sets the value of the component to a different value.
|
void |
setValue(NObject component,
Object value)
Sets the value of the component to a different value.
|
getComponentTypegetAttributes, getNameaddListener, addPropertyChangeListener, captureProperties, claimHandle, clone, compareTo, copyProperties, dispose, disposeArray, equals, fromHandle, fromHandle, fromObject, getFlags, getHandle, getNativeType, getOwner, getProperty, getProperty, getSize, getSize, getSizeMany, getSizeMany, hashCode, invoke, invoke, invoke, isDisposed, nObjectCallbackNativeTypeOf, nObjectPropertyChangedCallbackNativeTypeOf, ref, removeListener, removePropertyChangeListener, reset, resetProperty, save, save, save, save, save, save, save, save, save, save, save, save, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, setFlags, setProperty, setProperty, toHandle, toObject, toString, toString, unref, unrefArray, unrefElementscheck, dispose, finalizeprotected NPropertyDescriptor(HNObject handle, boolean claimHandle)
public static NType nativeTypeOf()
public final NType getPropertyType()
public final String getFormat()
public final Object getDefaultValue()
public final Object getMinValue()
public final Object getMaxValue()
public final NPropertyDescriptor.StdValueCollection getStdValues()
public final Object getValue(NObject component)
component - The component.public final <E> E getValue(NObject component, Class<E> cls)
component - The component.cls - The type of the property.public final void setValue(NObject component, Object value)
component - The component.value - The new property value.public final <E> void setValue(NObject component, Class<E> cls, E value)
component - The component.cls - The type of the property.value - The new property value.public final boolean canResetValue(NObject component)
component - The component to be reset.public final void resetValue(NObject component)
component - The component to be reset.public final PropertyDescriptor asPropertyDescriptor(NObject obj) throws IntrospectionException
IntrospectionExceptionpublic void addValueChangeListener(NObject component, ChangeListener listener)
component - The component.listener - The event listener to be added.public void removeValueChangeListener(NObject component, ChangeListener listener)
component - The component.listener - The event listener to be removed.Copyright © 2016 Neurotechnology. All rights reserved.