Class PVControlFactory

  • All Implemented Interfaces:
    PVControl

    public final class PVControlFactory
    extends Object
    implements PVControl
    Implementation of PVControl.
    Author:
    mrk
    • Constructor Detail

      • PVControlFactory

        public PVControlFactory()
    • Method Detail

      • create

        public static PVControl create()
        Create a PVControl.
        Returns:
        the newly created PVControl
      • attach

        public boolean attach​(PVField pvField)
        Description copied from interface: PVControl
        Attempt to attach to a control field. The field must either be an control field itself or the field must be named value and a control is found somewhere up the parent tree.
        Specified by:
        attach in interface PVControl
        Parameters:
        pvField - The field for which to find a control field,
        Returns:
        (false,true) if control field (not found, found).
      • detach

        public void detach()
        Description copied from interface: PVControl
        Remove attachment to control field.
        Specified by:
        detach in interface PVControl
      • isAttached

        public boolean isAttached()
        Description copied from interface: PVControl
        Is this attached to a control structure.
        Specified by:
        isAttached in interface PVControl
        Returns:
        (false,true) is (not, is) attached to a control structure
      • get

        public void get​(Control control)
        Description copied from interface: PVControl
        Get the control values from the attached control field and write to the specified Control.
        Specified by:
        get in interface PVControl
        Parameters:
        control - the Control to be updated
      • set

        public boolean set​(Control control)
        Description copied from interface: PVControl
        Set the control.
        Specified by:
        set in interface PVControl
        Parameters:
        control - the new value
        Returns:
        (false,true) if the control field is (immutable,updated)