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 String
property nameprotected final String
path to this propertyprotected final PropertyDescriptor
property descriptorprotected final Object
target object which is assigned the property -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
EditableProperty
(String pathPrefix, Object target, PropertyDescriptor descriptor) Constructorprotected
EditableProperty
(String pathPrefix, String name, Object target, PropertyDescriptor descriptor) Constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic EditablePropertyContainer
getInstanceWithRoot
(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 boolean
determine whether the property is a containerabstract boolean
determine whether the property is a primitiveabstract void
set 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
-