java.lang.Object
org.praxislive.base.AbstractComponent
org.praxislive.base.AbstractContainer
org.praxislive.base.AbstractContainer.Delegate
- All Implemented Interfaces:
org.praxislive.core.Component,org.praxislive.core.Container,org.praxislive.core.Lookup.Provider
- Enclosing class:
AbstractContainer
Delegate base class to be used inside a wrapper class implementing
Container. The abstract methods must be implemented to return the
information from the wrapper, or in the case of
notifyChild(org.praxislive.core.Component) call through to
Component.parentNotify(org.praxislive.core.Container) with the
wrapper.-
Nested Class Summary
Nested classes/interfaces inherited from class org.praxislive.base.AbstractContainer
AbstractContainer.AddChildControl, AbstractContainer.ChildrenControl, AbstractContainer.ConnectControl, AbstractContainer.ConnectionsControl, AbstractContainer.Delegate, AbstractContainer.DisconnectControl, AbstractContainer.RemoveChildControl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.praxislive.core.ComponentAddressabstract org.praxislive.core.Lookupprotected abstract voidnotifyChild(org.praxislive.core.Component child) Notify the child of its addition to the container by calling through toComponent.parentNotify(org.praxislive.core.Container)with the wrapper instance.Methods inherited from class org.praxislive.base.AbstractContainer
addChild, children, connect, disconnect, getAddress, getChild, getChildID, getType, hierarchyChanged, recordChildType, removeChild, write, writeChildren, writeConnectionsMethods inherited from class org.praxislive.base.AbstractComponent
disconnectAll, findService, getControl, getParent, getPort, parentNotify, registerControl, registerPort, unregisterControl, unregisterPort, writeMeta, writeTypeAndInfoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.praxislive.core.Component
getControl, getInfo, getParent, getPort, parentNotify
-
Constructor Details
-
Delegate
public Delegate()
-
-
Method Details
-
getLookup
public abstract org.praxislive.core.Lookup getLookup()- Specified by:
getLookupin interfaceorg.praxislive.core.Lookup.Provider- Overrides:
getLookupin classAbstractContainer
-
getAddress
protected abstract org.praxislive.core.ComponentAddress getAddress()- Overrides:
getAddressin classAbstractComponent
-
notifyChild
protected abstract void notifyChild(org.praxislive.core.Component child) throws org.praxislive.core.VetoException Notify the child of its addition to the container by calling through toComponent.parentNotify(org.praxislive.core.Container)with the wrapper instance.- Overrides:
notifyChildin classAbstractContainer- Parameters:
child- child being notified- Throws:
org.praxislive.core.VetoException- if child vetoes being added
-