|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.displayejs.AbstractInteractionSource
public abstract class AbstractInteractionSource
A base abstract class for objects that need to implement InteractionSource
Constructor Summary | |
---|---|
AbstractInteractionSource()
|
Method Summary | |
---|---|
void |
addListener(InteractionListener _listener)
Adds the specified interaction listener to receive interaction events to any of its targets from this source |
void |
invokeActions(InteractionEvent _event)
Invokes actions on all listeners with the prescribed event |
void |
removeAllListeners()
Removes all the interaction listeners |
void |
removeListener(InteractionListener _listener)
Removes the specified interaction listener |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opensourcephysics.displayejs.InteractionSource |
---|
isEnabled, isEnabled, setEnabled, setEnabled |
Constructor Detail |
---|
public AbstractInteractionSource()
Method Detail |
---|
public void addListener(InteractionListener _listener)
InteractionSource
addListener
in interface InteractionSource
InteractionListener
public void removeListener(InteractionListener _listener)
InteractionSource
removeListener
in interface InteractionSource
InteractionListener
public void removeAllListeners()
InteractionSource
removeAllListeners
in interface InteractionSource
public void invokeActions(InteractionEvent _event)
InteractionSource
invokeActions
in interface InteractionSource
InteractionEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |