Class AbstractContainer.Delegate

All Implemented Interfaces:
org.praxislive.core.Component, org.praxislive.core.Container, org.praxislive.core.Lookup.Provider
Enclosing class:
AbstractContainer

public abstract static class AbstractContainer.Delegate extends 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.
  • Constructor Details

    • Delegate

      public Delegate()
  • Method Details

    • getLookup

      public abstract org.praxislive.core.Lookup getLookup()
      Specified by:
      getLookup in interface org.praxislive.core.Lookup.Provider
      Overrides:
      getLookup in class AbstractContainer
    • getAddress

      protected abstract org.praxislive.core.ComponentAddress getAddress()
      Overrides:
      getAddress in class AbstractComponent
    • 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 to Component.parentNotify(org.praxislive.core.Container) with the wrapper instance.
      Overrides:
      notifyChild in class AbstractContainer
      Parameters:
      child - child being notified
      Throws:
      org.praxislive.core.VetoException - if child vetoes being added