Interface PVDisplay

  • All Known Implementing Classes:
    PVDisplayFactory

    public interface PVDisplay
    Interface for attaching a Display to a display structure.
    Author:
    mrk
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean attach​(PVField pvField)
      Attempt to attach to a display field.
      void detach()
      Remove attachment to display field.
      void get​(Display display)
      Get the display values from the attached display field and write to the specified Display.
      boolean isAttached()
      Is this attached to a display structure.
      boolean set​(Display display)
      Set the display.
    • Method Detail

      • attach

        boolean attach​(PVField pvField)
        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.
        Parameters:
        pvField - the field for which to find a display field
        Returns:
        (false,true) if display field (not found, found)
      • detach

        void detach()
        Remove attachment to display field.
      • isAttached

        boolean isAttached()
        Is this attached to a display structure.
        Returns:
        (false,true) is (not, is) attached to a display structure.
      • get

        void get​(Display display)
        Get the display values from the attached display field and write to the specified Display.
        Parameters:
        display - the Display to be updated
        Throws:
        IllegalStateException - if this PVDisplay not attached to a display field
      • set

        boolean set​(Display display)
        Set the display.
        Parameters:
        display - the new value
        Returns:
        (false,true) if the display field is (immutable,updated).