public class KahinaTreeBehavior extends KahinaBehavior<KahinaTree>
A version of KahinaBehavior
for defining the application-specific behavior of KahinaTree
s.
Implementations usually define the way a tree is constructed and how it reacts to incoming KahinaEvent
s.
A typical use case is LogicProgrammingTreeBehavior
for control flow tree in logic programming.
In an application, the user will usually want to inherit from this in order to define the behavior of tree components.
By default, each KahinaBehavior
implements the KahinaListener
interface, but it does not register itself with the event system.
For that purpose, implementations should use the kahina.getControl().registerListener
mechanism.
kahina, object
Constructor and Description |
---|
KahinaTreeBehavior(KahinaTree tree,
KahinaInstance kahina)
Class constructor specifying the controlled tree and the KahinaInstance that it is connected to.
|
processEvent
public KahinaTreeBehavior(KahinaTree tree, KahinaInstance kahina)
tree
- the KahinaTree the behavior of which is going to be controlled by the new instancekahina
- the KahinaInstance that this behavior will belong to and communicate with