Class VSTableAdapter

    • Constructor Detail

      • VSTableAdapter

        public VSTableAdapter()
    • Method Detail

      • onResolved

        public void onResolved​(VSRelativeReference<?> reference,
                               VSTable table)
        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 IVSTableListener
        Parameters:
        reference - The VSRelativeReference instance holding the reference.
        table - The target reference.
      • onBroken

        public void onBroken​(VSRelativeReference<?> reference,
                             VSTable table)
        Called when the property reference has been broken, i.e. unresolved.
        Specified by:
        onBroken in interface IVSTableListener
        Parameters:
        reference - The VSRelativeReference instance holding the reference.
        table - 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.
      • onSingleSelectionChanged

        public void onSingleSelectionChanged​(VSTable table,
                                             int index)
        Called when the single selection changes.
        Specified by:
        onSingleSelectionChanged in interface IVSTableListener
        Parameters:
        table - The table.
        index - The row index, -1 if table is unselected.
      • onRowAdded

        public void onRowAdded​(VSRow row,
                               int index)
        Called when a row is added.
        Specified by:
        onRowAdded in interface IVSTableListener
        Parameters:
        row - The row.
        index - The index.
      • onRowRemoved

        public void onRowRemoved​(VSRow row,
                                 int index)
        Called when a row is removed.
        Specified by:
        onRowRemoved in interface IVSTableListener
        Parameters:
        row - The row.
        index - The index.
      • onCellValueChanged

        public void onCellValueChanged​(VSField cell,
                                       Value value,
                                       GProp<?> trigger,
                                       IPostEventProcessing postProcessing)
        Called when the cell value is set.
        Specified by:
        onCellValueChanged in interface IVSTableListener
        Parameters:
        cell - 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.