Class EditableProperty

java.lang.Object
xal.extension.widgets.beaneditor.EditableProperty
Direct Known Subclasses:
EditablePropertyContainer

public abstract class EditableProperty extends Object
base class for a editable property
  • Field Details

    • EDITABLE_PROPERTY_TYPES

      protected static final Set<Class<?>> EDITABLE_PROPERTY_TYPES
      array of classes for which the property can be edited directly
    • name

      protected final String name
      property name
    • path

      protected final String path
      path to this property
    • target

      protected final Object target
      target object which is assigned the property
    • propertyDescriptor

      protected final PropertyDescriptor propertyDescriptor
      property descriptor
  • Constructor Details

  • Method Details

    • getInstanceWithRoot

      public static EditablePropertyContainer getInstanceWithRoot(String name, Object root)
      Get an instance starting at the root object
    • getName

      public String getName()
      name of the property
    • getPath

      public String getPath()
      Get the path to this property
    • getPropertyType

      public Class<?> getPropertyType()
      Get the property type
    • getValue

      public Object getValue()
      Get the value for this property
    • setValue

      public abstract void setValue(Object value)
      set the value
    • getUnits

      public String 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

      protected static PropertyDescriptor[] getPropertyDescriptors(Object target)
    • toString

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