Class FieldBoundPropertyListener

    • Field Detail

      • propertyName

        protected final java.lang.String propertyName
        Property name which we are bound to
      • fieldInstance

        protected final FieldInstance fieldInstance
        Field instance
    • Constructor Detail

      • FieldBoundPropertyListener

        public FieldBoundPropertyListener​(java.lang.Object instance,
                                          java.lang.String fieldName,
                                          java.lang.String propertyName)
        Constructs a FieldBoundPropertyListener.
        Parameters:
        instance - Instance object.
        fieldName - Field name.
        propertyName - Property to bind to.
        Throws:
        NullArgumentException - Property name is null.
      • FieldBoundPropertyListener

        public FieldBoundPropertyListener​(java.lang.Object instance,
                                          java.lang.String fieldName)
        Constructs a FieldBoundPropertyListener.

        Field name is used for property name.

        Parameters:
        instance - Instance object.
        fieldName - Field name.
    • Method Detail

      • getPropertyName

        public final java.lang.String getPropertyName()
        Get the property name which this listener is bound to.
        Returns:
        Property name.
      • filterValue

        public java.lang.String filterValue​(java.lang.String value)
        Filter the property value prior to coercing and binding to field.

        Allows instance to filter values prior to object coercion and field binding.

        Parameters:
        value - Property value.
        Returns:
        the filtered value
      • setFieldValue

        protected void setFieldValue​(java.lang.String value)
        Coerce and set specified value to field.
        Parameters:
        value - Field value.
        Throws:
        PropertyException - Failed to set field value.