Class EditablePropertyContainer

java.lang.Object
xal.extension.widgets.beaneditor.EditableProperty
xal.extension.widgets.beaneditor.EditablePropertyContainer

public class EditablePropertyContainer extends EditableProperty
base class for a container of editable properties
  • Field Details

    • childTarget

      protected final Object childTarget
      target for child properties
    • childPrimitiveProperties

      protected List<xal.extension.widgets.beaneditor.EditablePrimitiveProperty> childPrimitiveProperties
      list of child primitive properties
    • childPropertyContainers

      protected List<EditablePropertyContainer> childPropertyContainers
      list of child property containers
  • Constructor Details

  • Method Details

    • getInstanceWithRoot

      public static EditablePropertyContainer getInstanceWithRoot(String name, Object rootObject)
      Create an instance with the specified root Object
    • isContainer

      public boolean isContainer()
      determine whether the property is a container
      Specified by:
      isContainer in class EditableProperty
    • isPrimitive

      public boolean isPrimitive()
      determine whether the property is a primitive
      Specified by:
      isPrimitive in class EditableProperty
    • setValue

      public void setValue(Object value)
      set the value
      Specified by:
      setValue in class EditableProperty
    • isEmpty

      public boolean isEmpty()
      determine whether this container has any child properties
    • getChildCount

      public int getChildCount()
      get the number of child properties
    • getChildProperties

      public List<EditableProperty> getChildProperties()
      Get the child properties
    • getChildPrimitiveProperties

      public List<xal.extension.widgets.beaneditor.EditablePrimitiveProperty> getChildPrimitiveProperties()
      Get the list of child primitive properties
    • getChildPropertyContainers

      public List<EditablePropertyContainer> 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

      protected void generateChildPropertyForDescriptor(PropertyDescriptor descriptor)
      Generate the child properties starting at the specified descriptor for this container's child target
    • toString

      public String toString()
      Get a string representation of this property
      Overrides:
      toString in class EditableProperty