|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wolfram.jlink.MathListener
com.wolfram.jlink.MathComponentListener
public class MathComponentListener
This class lets you trigger a call into Mathematica on the occurrence of a particular event. Like all the MathXXXListener classes, it is intended to be used primarily from Mathematica, although it can be used from Java code as well.
In response to a ComponentEvent, objects of this class send to Mathematica:
userCode[theComponentEvent]
userFunc is specified as a string, either a function name or an expression
(like a pure function "foo[#]&"), via the setHandler() method.
| Constructor Summary | |
|---|---|
MathComponentListener()
The constructor that is called from Mathematica. |
|
MathComponentListener(KernelLink ml)
You must use this constructor when using this class in a Java program, because you need to specify the KernelLink that will be used. |
|
MathComponentListener(java.lang.String[][] handlers)
This form of the constructor lets you skip having to make a series of setHandler() calls. |
|
| Method Summary | |
|---|---|
void |
componentHidden(java.awt.event.ComponentEvent e)
|
void |
componentMoved(java.awt.event.ComponentEvent e)
|
void |
componentResized(java.awt.event.ComponentEvent e)
|
void |
componentShown(java.awt.event.ComponentEvent e)
|
| Methods inherited from class com.wolfram.jlink.MathListener |
|---|
callMathHandler, callVoidMathHandler, getHandler, getLink, setHandler |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MathComponentListener()
public MathComponentListener(KernelLink ml)
ml - The link to which computations will be sent when ComponentEvents arrive.public MathComponentListener(java.lang.String[][] handlers)
handlers - An array of {meth, func} pairs associating methods in the ComponentListener
interface with Mathematica functions.| Method Detail |
|---|
public void componentHidden(java.awt.event.ComponentEvent e)
componentHidden in interface java.awt.event.ComponentListenerpublic void componentMoved(java.awt.event.ComponentEvent e)
componentMoved in interface java.awt.event.ComponentListenerpublic void componentResized(java.awt.event.ComponentEvent e)
componentResized in interface java.awt.event.ComponentListenerpublic void componentShown(java.awt.event.ComponentEvent e)
componentShown in interface java.awt.event.ComponentListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||