Class VSFieldAdapter

    • Constructor Detail

      • VSFieldAdapter

        public VSFieldAdapter()
    • Method Detail

      • getBestVSFieldValueType

        public Value.Type getBestVSFieldValueType​(VSRelativeReference<?> reference)
        Requests the value type that would best suit the listener.
        Specified by:
        getBestVSFieldValueType in interface IVSFieldListener
        Parameters:
        reference - The VSRelativeReference instance holding the reference.
        Returns:
        null if none is available.
      • onResolved

        public void onResolved​(VSRelativeReference<?> reference,
                               VSField field)
        Called when the property reference has been resolved. UI components use this method to set its state according to the field.
        Specified by:
        onResolved in interface IVSFieldListener
        Parameters:
        reference - The VSRelativeReference instance holding the reference.
        field - The target reference.
      • onBroken

        public void onBroken​(VSRelativeReference<?> reference,
                             VSField field)
        Called when the property reference has been broken, i.e. unresolved.
        Specified by:
        onBroken in interface IVSFieldListener
        Parameters:
        reference - The VSRelativeReference instance holding the reference.
        field - The target reference.
      • onParentStateChanged

        public void onParentStateChanged​(IVSComponent parent,
                                         IVSComponentState.State state,
                                         boolean on)
        Called when the column changes state.
        Specified by:
        onParentStateChanged in interface IVSComponentListener
        Parameters:
        parent - The parent who's state was changed.
        state - The state change, possible values PARENT_ENABLED, PARENT_READONLY, PARENT_VISIBLE.
        on - New state.
      • onValueChanged

        public void onValueChanged​(VSField field,
                                   Value value,
                                   GProp<?> trigger,
                                   IPostEventProcessing postProcessing)
        Called when the field value is set.
        Specified by:
        onValueChanged in interface IVSFieldListener
        Parameters:
        field - The VS field.
        value - The value, never null, but value.isNull() could be true.
        trigger - The trigger property that may be null.
        postProcessing - Post-processing instance.