Interactionoccured(interactionevent), Removeinteractionlistener(interactionlistener), Addinteractionlistener – MiG InfoCom MiG Calendar JavaBeans User Manual
Page 82: Interactionlistener, Interactionoccured, Removeinteractionlistener
![background image](https://www.manualsdir.com/files/798675/content/doc082.png)
(continued from last page)
cat
- The category to toggle the selected state on.
interactionOccured
public void interactionOccured(InteractionEvent e)
addInteractionListener
public void addInteractionListener(InteractionListener l)
Adds a listener that listens to
InteractionEvent
s. Interaction events are normally fired by the
Interaction/Interactor/AbstractInteractionBroker framework, used for instance by the
com.miginfocom.ashape.shapes.AShape
framework.
The interaction events that is fired is when the user presses a check or the label in the tree.
Parameters:
l
- The listener to add
See Also:
addInteractionListener
public void addInteractionListener(InteractionListener l,
boolean asWeakRef)
Adds a listener that listens to
InteractionEvent
s. Interaction events are normally fired by the
Interaction/Interactor/AbstractInteractionBroker framework, used for instance by the
com.miginfocom.ashape.shapes.AShape
framework.
The interaction events that is fired is when the user presses a check or the label in the tree.
Parameters:
l
- The listener to add
asWeakRef
- If the listener should be added wrapped in a
java.lang.ref.WeakReference
. This defers memory
leak problems since the garbage collector can collect the listener if it is only referenced from this list.
Note! This (weak reference) can not be used with listeners that doesn't have another real (a.k.a Strong) reference to it,
as for instance an annonymous inner class. If one such listener is added it will be removed almost immediately by the
garbage collector.
See Also:
removeInteractionListener
public void removeInteractionListener(InteractionListener l)
Removes the listener if it is added.
Parameters:
l
- The listener to remove. If
null
nothing happens.
Page 82 of 196
com.miginfocom.beans.CategoryTreeBean