Class PVDisplayFactory

  • All Implemented Interfaces:
    PVDisplay

    public final class PVDisplayFactory
    extends Object
    implements PVDisplay
    Implementation of PVDisplay.
    Author:
    mrk
    • Constructor Detail

      • PVDisplayFactory

        public PVDisplayFactory()
    • Method Detail

      • create

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

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

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

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

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

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