Class UIBuilderManager

java.lang.Object
com.iizigo.link.ui.UIBuilderManager

public class UIBuilderManager extends Object
The UI builder manager holding all possible UI builders.
Author:
Christopher Mindus
  • Method Details

    • getInstance

      public static UIBuilderManager getInstance()
      Gets the instance of the UI builder manager.
    • getTargetContainer

      public IEUIContainer getTargetContainer(LinkData data)
      Returns the target container for the link data.
      Returns:
      The container, or null for none.
    • canBuild

      public boolean canBuild(LinkData data, IAdaptable source)
      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.
      source - The source for the building operation.
      Returns:
      true if the builder supports building with the data.
    • addBuilderOperations

      public void addBuilderOperations(LinkData data, IAdaptable source, Collection<ILinkOperation> linkOps)
      Gets the link operation for the UI building.
      Parameters:
      data - The link data.
      source - The source for the building operation.
      linkOps - The link operations to add to.