Interface ContainerProxy

All Superinterfaces:
ComponentProxy, org.openide.util.Lookup.Provider, Proxy

public interface ContainerProxy extends ComponentProxy
A proxy of a PraxisCORE container.
  • Field Details

    • CHILDREN

      static final String CHILDREN
      Name of children property. Used in property change events.
      See Also:
    • CONNECTIONS

      static final String CONNECTIONS
      Name of connections property. Used in property change events.
      See Also:
    • SUPPORTED_TYPES

      static final String SUPPORTED_TYPES
      Name of supported types property. Used in property change events.
      See Also:
  • Method Details

    • addChild

      CompletionStage<? extends ComponentProxy> addChild(String id, org.praxislive.core.ComponentType type)
      Add a child component to the underlying container.
      Parameters:
      id - child ID
      type - component type
      Returns:
      completion stage of added child
    • removeChild

      CompletionStage<?> removeChild(String id)
      Remove a child from the underlying container.
      Parameters:
      id - child ID
      Returns:
      completion stage
    • getChild

      ComponentProxy getChild(String id)
      Get the proxy for the given child.
      Parameters:
      id - child ID
      Returns:
    • children

      Stream<String> children()
      Stream of all child IDs.
      Returns:
      childs IDs
    • connect

      CompletionStage<org.praxislive.core.Connection> connect(org.praxislive.core.Connection connection)
      Create a connection between two child component ports.
      Parameters:
      connection - connection description
      Returns:
      completion stage of added connection
    • disconnect

      CompletionStage<?> disconnect(org.praxislive.core.Connection connection)
      Break a connection between two child component ports.
      Parameters:
      connection - connection description
      Returns:
      completion stage
    • connections

      Stream<org.praxislive.core.Connection> connections()
      Stream of connections.
      Returns:
      connection
    • supportedTypes

      List<org.praxislive.core.ComponentType> supportedTypes()
      List of supported child types.
      Returns:
      supported child types