Package xal.extension.widgets.beaneditor
Class EditableProperty
java.lang.Object
xal.extension.widgets.beaneditor.EditableProperty
- Direct Known Subclasses:
EditablePropertyContainer
base class for a editable property
-
Field Summary
FieldsModifier and TypeFieldDescriptionarray of classes for which the property can be edited directlyprotected final Stringproperty nameprotected final Stringpath to this propertyprotected final PropertyDescriptorproperty descriptorprotected final Objecttarget object which is assigned the property -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEditableProperty(String pathPrefix, Object target, PropertyDescriptor descriptor) ConstructorprotectedEditableProperty(String pathPrefix, String name, Object target, PropertyDescriptor descriptor) Constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic EditablePropertyContainergetInstanceWithRoot(String name, Object root) Get an instance starting at the root objectgetName()name of the propertygetPath()Get the path to this propertyprotected static PropertyDescriptor[]getPropertyDescriptors(Object target) Class<?>Get the property typegetUnits()Get the unitsgetValue()Get the value for this propertyabstract booleandetermine whether the property is a containerabstract booleandetermine whether the property is a primitiveabstract voidset the valuetoString()Get a string representation of this property
-
Field Details
-
EDITABLE_PROPERTY_TYPES
array of classes for which the property can be edited directly -
name
property name -
path
path to this property -
target
target object which is assigned the property -
propertyDescriptor
property descriptor
-
-
Constructor Details
-
EditableProperty
protected EditableProperty(String pathPrefix, String name, Object target, PropertyDescriptor descriptor) Constructor -
EditableProperty
Constructor
-
-
Method Details
-
getInstanceWithRoot
Get an instance starting at the root object -
getName
name of the property -
getPath
Get the path to this property -
getPropertyType
Get the property type -
getValue
Get the value for this property -
setValue
set the value -
getUnits
Get the units -
isContainer
public abstract boolean isContainer()determine whether the property is a container -
isPrimitive
public abstract boolean isPrimitive()determine whether the property is a primitive -
getPropertyDescriptors
-
toString
Get a string representation of this property
-