Package xal.extension.widgets.beaneditor
Class EditablePropertyContainer
java.lang.Object
xal.extension.widgets.beaneditor.EditableProperty
xal.extension.widgets.beaneditor.EditablePropertyContainer
base class for a container of editable properties
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<xal.extension.widgets.beaneditor.EditablePrimitiveProperty>
list of child primitive propertiesprotected List<EditablePropertyContainer>
list of child property containersprotected final Object
target for child propertiesFields inherited from class xal.extension.widgets.beaneditor.EditableProperty
EDITABLE_PROPERTY_TYPES, name, path, propertyDescriptor, target
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
EditablePropertyContainer
(String pathPrefix, Object target, PropertyDescriptor descriptor, Object childTarget, Set<Object> ancestors) Constructorprotected
EditablePropertyContainer
(String pathPrefix, Object target, PropertyDescriptor descriptor, Set<Object> ancestors) Constructorprotected
EditablePropertyContainer
(String pathPrefix, String name, Object target, PropertyDescriptor descriptor, Object childTarget, Set<Object> ancestors) Primary Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Generate the child properties this container's child targetprotected void
generate the child properties if neededprotected void
generateChildPropertyForDescriptor
(PropertyDescriptor descriptor) Generate the child properties starting at the specified descriptor for this container's child targetint
get the number of child propertiesList<xal.extension.widgets.beaneditor.EditablePrimitiveProperty>
Get the list of child primitive propertiesGet the child propertiesGet the list of child property containersstatic EditablePropertyContainer
getInstanceWithRoot
(String name, Object rootObject) Create an instance with the specified root Objectboolean
determine whether the property is a containerboolean
isEmpty()
determine whether this container has any child propertiesboolean
determine whether the property is a primitivevoid
set the valuetoString()
Get a string representation of this propertyMethods inherited from class xal.extension.widgets.beaneditor.EditableProperty
getName, getPath, getPropertyDescriptors, getPropertyType, getUnits, getValue
-
Field Details
-
childTarget
target for child properties -
childPrimitiveProperties
list of child primitive properties -
childPropertyContainers
list of child property containers
-
-
Constructor Details
-
EditablePropertyContainer
protected EditablePropertyContainer(String pathPrefix, String name, Object target, PropertyDescriptor descriptor, Object childTarget, Set<Object> ancestors) Primary Constructor -
EditablePropertyContainer
protected EditablePropertyContainer(String pathPrefix, Object target, PropertyDescriptor descriptor, Object childTarget, Set<Object> ancestors) Constructor -
EditablePropertyContainer
protected EditablePropertyContainer(String pathPrefix, Object target, PropertyDescriptor descriptor, Set<Object> ancestors) Constructor
-
-
Method Details
-
getInstanceWithRoot
Create an instance with the specified root Object -
isContainer
public boolean isContainer()determine whether the property is a container- Specified by:
isContainer
in classEditableProperty
-
isPrimitive
public boolean isPrimitive()determine whether the property is a primitive- Specified by:
isPrimitive
in classEditableProperty
-
setValue
set the value- Specified by:
setValue
in classEditableProperty
-
isEmpty
public boolean isEmpty()determine whether this container has any child properties -
getChildCount
public int getChildCount()get the number of child properties -
getChildProperties
Get the child properties -
getChildPrimitiveProperties
public List<xal.extension.widgets.beaneditor.EditablePrimitiveProperty> getChildPrimitiveProperties()Get the list of child primitive properties -
getChildPropertyContainers
Get the list of child property containers -
generateChildPropertiesIfNeeded
protected void generateChildPropertiesIfNeeded()generate the child properties if needed -
generateChildProperties
protected void generateChildProperties()Generate the child properties this container's child target -
generateChildPropertyForDescriptor
Generate the child properties starting at the specified descriptor for this container's child target -
toString
Get a string representation of this property- Overrides:
toString
in classEditableProperty
-