Interface IUIBuilderFromVS<VS_COMP extends VSComponent>

All Superinterfaces:
IUIBuilder
All Known Implementing Classes:
ButtonBuilder, ComboBoxBuilder, MenuItemBuilder, TextAreaBuilder, TextBuilder

public interface IUIBuilderFromVS<VS_COMP extends VSComponent> extends IUIBuilder
The interface used for UI builders from VirtualSpace.
Author:
Christopher Mindus
  • Method Details

    • getVSComponentClass

      Class<VS_COMP> getVSComponentClass()
      Returns the source VS component class.
      Returns:
      The VS component class.
    • canBuild

      default boolean canBuild(IEUIContainer container, 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.

      Specified by:
      canBuild in interface IUIBuilder
      Parameters:
      container - The target container.
      source - The adaptable source.
      Returns:
      true if the builder supports building with the data.
    • addSubOperations

      default void addSubOperations(IEUIContainer container, IAdaptable source, Collection<UIBuilderSubOperation> subOps)
      Adds the operation node(s) for presentation in the link wizard main page. This method is called only if the builder supports the adaptable component.
      Specified by:
      addSubOperations in interface IUIBuilder
      Parameters:
      container - The container.
      source - The adaptable source.
      subOps - The build sub-operations.
    • addSubOperations

      void addSubOperations(IEUIContainer container, VS_COMP comp, Collection<UIBuilderSubOperation> subOps)
      Adds the operation(s) for the VS component builder operation. This method is only called when verified that this operation really can be built.
      Parameters:
      container - The container.
      comp - The VS component.
      subOps - The build sub-operations.