Class IMapNodeComposite

Direct Known Subclasses:
MindMap, Project, ProjectExplorer

public abstract class IMapNodeComposite
extends IMapNode
Composite design pattern unit. Allowed to have children.
  • Constructor Details

    • IMapNodeComposite

      public IMapNodeComposite​(String nodeName)
  • Method Details

    • getChildren

      public Set<IMapNode> getChildren()
    • setChildren

      public void setChildren​(Set<IMapNode> children)
    • addChild

      public void addChild​(IMapNode child)
      Adds a child to the node.
      Parameters:
      child - Child to be added.
    • removeChild

      public void removeChild​(IMapNode child)
      Removes a child from the node.
      Parameters:
      child - Child to be removed.
    • receive

      public void receive​(Object message)
      Description copied from class: IObserver
      Receive data update from publisher. Default implementation, should be overridden.
      Overrides:
      receive in class IMapNode
      Parameters:
      message - Data sent by publisher.