Interface IVSFieldLinkEnabler

All Superinterfaces:
IAdaptable, IGProp<GProp<?>[]>, ILinkCapable, IPropCnr, IVSComponentListener, IVSComponentState, IVSFieldListener
All Known Implementing Classes:
EMUISwitch, EUICalendar, EUICheckBox, EUICheckedMenuItem, EUIComboBox, EUIDateTime, EUIGauge, EUIOutput, EUIProgress, EUIRadioButton, EUIRadioMenuItem, EUISlider, EUISpinner, EUIText, EUITextArea

public interface IVSFieldLinkEnabler extends ILinkCapable, IPropCnr, IVSFieldListener
The link enabler for a standard VSAction in VSFieldReference named Atom.VSFIELD or another name using getLinkVSFieldName(LinkData).
Author:
Christopher Mindus
  • Method Details

    • isVSFieldLinkCapable

      default boolean isVSFieldLinkCapable(LinkData data)
      Returns if this property container could potentially be link capable.

      This call is done many times during drag-drop and must be very fast and not cause too much garbage collection.

      Parameters:
      data - The link data.
      Returns:
      true if linkable with a VSField, false otherwise.
    • isLinkCapable

      default IStatus isLinkCapable(LinkData data)
      Returns if this property container could potentially be link capable.

      This call is done many times during drag-drop and must be very fast and not cause too much garbage collection.

      Specified by:
      isLinkCapable in interface ILinkCapable
      Parameters:
      data - The link data.
      Returns:
      The status of capability of the operation.
    • getLinkVSFieldName

      default Atom getLinkVSFieldName(LinkData data)
      Gets the atom for the linking. Override to support multiple or different names.
      Parameters:
      data - The link data.
      Returns:
      Default is Atom.VSFIELD.
    • addVSFieldLinkOperations

      default void addVSFieldLinkOperations(LinkData data, Collection<ILinkOperation> linkOps)
      Called when the drag-drop is to be performed (link or paste-link menu item). The link-capable instance fills in only what it handles.
      Parameters:
      data - The link data.
      linkOps - List of link operations is filled in when operations are found.
    • getLinkOperations

      default Collection<ILinkOperation> getLinkOperations(LinkData data)
      Called when the drag-drop is to be performed (link or paste-link menu item). The link-capable instance fills in only what it handles.
      Specified by:
      getLinkOperations in interface ILinkCapable
      Parameters:
      data - The link data.
      Returns:
      The list of operations required.