public class PlantBlockManager extends java.lang.Object implements IUpdateableListener
TreeComposite
with a PlantComposite
. Any changes made to the
block should be reflected in the PlantComposite
.component
Constructor and Description |
---|
PlantBlockManager()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
PlantComposite |
getPlant()
Gets the current
plant connected to the MOOSE Component block. |
void |
setTree(TreeComposite tree)
Sets the current Components
tree . |
void |
update(IUpdateable component)
Implements IUpdateableListener.
|
public void setTree(TreeComposite tree)
tree
. TreeComposites corresponding
to valid PlantComponent
s should be found under this tree.tree
- The new tree of components.public PlantComposite getPlant()
plant
connected to the MOOSE Component block.plant
.public void update(IUpdateable component)
tree
updates. It looks for new and removed components and adds
or removes them from the plant
as necessary.update
in interface IUpdateableListener
component
- The component that was updated in some way.