Class IMapNodeComposite
java.lang.Object
rs.edu.raf.dsw.rudok.app.observer.IObserver
rs.edu.raf.dsw.rudok.app.observer.IPublisherGlobal
rs.edu.raf.dsw.rudok.app.observer.IPublisher
rs.edu.raf.dsw.rudok.app.repository.IMapNode
rs.edu.raf.dsw.rudok.app.repository.IMapNodeComposite
- Direct Known Subclasses:
MindMap
,Project
,ProjectExplorer
public abstract class IMapNodeComposite extends IMapNode
Composite design pattern unit. Allowed to have children.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IMapNodeComposite.Message
Message for publishing. -
Field Summary
-
Constructor Summary
Constructors Constructor Description IMapNodeComposite(String nodeName)
-
Method Summary
Modifier and Type Method Description void
addChild(IMapNode child)
Adds a child to the node.Set<IMapNode>
getChildren()
void
receive(Object message)
Receive data update from publisher.void
removeChild(IMapNode child)
Removes a child from the node.void
setChildren(Set<IMapNode> children)
Methods inherited from class rs.edu.raf.dsw.rudok.app.repository.IMapNode
addParent, getNodeName, getParents, removeParent, setNodeName, setParents, toString
Methods inherited from class rs.edu.raf.dsw.rudok.app.observer.IPublisher
addObserver, getObservers, publish, removeObserver, setObservers
Methods inherited from class rs.edu.raf.dsw.rudok.app.observer.IPublisherGlobal
addObserverGlobal, getObserversGlobal, removeObserverGlobal
Methods inherited from class rs.edu.raf.dsw.rudok.app.observer.IObserver
addPublisher, getPublishers, removePublisher, setPublishers
-
Constructor Details
-
IMapNodeComposite
-
-
Method Details
-
getChildren
-
setChildren
-
addChild
Adds a child to the node.- Parameters:
child
- Child to be added.
-
removeChild
Removes a child from the node.- Parameters:
child
- Child to be removed.
-
receive
Description copied from class:IObserver
Receive data update from publisher. Default implementation, should be overridden.
-