Package org.praxislive.ide.model
Interface ContainerProxy
- All Superinterfaces:
ComponentProxy,org.openide.util.Lookup.Provider,Proxy
- All Known Implementing Classes:
PXRContainerProxy,PXRRootProxy
A proxy of a PraxisCORE container.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of children property.static final StringName of connections property.static final StringName of supported types property.Fields inherited from interface org.praxislive.ide.model.ComponentProxy
INFO -
Method Summary
Modifier and TypeMethodDescriptionCompletionStage<? extends ComponentProxy> Add a child component to the underlying container.children()Stream of all child IDs.CompletionStage<org.praxislive.core.Connection> connect(org.praxislive.core.Connection connection) Create a connection between two child component ports.Stream<org.praxislive.core.Connection> Stream of connections.disconnect(org.praxislive.core.Connection connection) Break a connection between two child component ports.Get the proxy for the given child.removeChild(String id) Remove a child from the underlying container.List<org.praxislive.core.ComponentType> List of supported child types.Methods inherited from interface org.praxislive.ide.model.ComponentProxy
getAddress, getID, getInfo, getParent, getProperty, getType, sendMethods inherited from interface org.openide.util.Lookup.Provider
getLookupMethods inherited from interface org.praxislive.ide.model.Proxy
addPropertyChangeListener, getNodeDelegate, removePropertyChangeListener
-
Field Details
-
CHILDREN
Name of children property. Used in property change events.- See Also:
-
CONNECTIONS
Name of connections property. Used in property change events.- See Also:
-
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 IDtype- component type- Returns:
- completion stage of added child
-
removeChild
Remove a child from the underlying container.- Parameters:
id- child ID- Returns:
- completion stage
-
getChild
Get the proxy for the given child.- Parameters:
id- child ID- Returns:
-
children
Stream of all child IDs.- Returns:
- childs IDs
-
connect
Create a connection between two child component ports.- Parameters:
connection- connection description- Returns:
- completion stage of added connection
-
disconnect
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
-