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 Objecttarget for child propertiesFields inherited from class xal.extension.widgets.beaneditor.EditableProperty
EDITABLE_PROPERTY_TYPES, name, path, propertyDescriptor, target -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEditablePropertyContainer(String pathPrefix, Object target, PropertyDescriptor descriptor, Object childTarget, Set<Object> ancestors) ConstructorprotectedEditablePropertyContainer(String pathPrefix, Object target, PropertyDescriptor descriptor, Set<Object> ancestors) ConstructorprotectedEditablePropertyContainer(String pathPrefix, String name, Object target, PropertyDescriptor descriptor, Object childTarget, Set<Object> ancestors) Primary Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGenerate the child properties this container's child targetprotected voidgenerate the child properties if neededprotected voidgenerateChildPropertyForDescriptor(PropertyDescriptor descriptor) Generate the child properties starting at the specified descriptor for this container's child targetintget 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 EditablePropertyContainergetInstanceWithRoot(String name, Object rootObject) Create an instance with the specified root Objectbooleandetermine whether the property is a containerbooleanisEmpty()determine whether this container has any child propertiesbooleandetermine whether the property is a primitivevoidset 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:
isContainerin classEditableProperty
-
isPrimitive
public boolean isPrimitive()determine whether the property is a primitive- Specified by:
isPrimitivein classEditableProperty
-
setValue
set the value- Specified by:
setValuein 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:
toStringin classEditableProperty
-