tcl.pkg.java
Class UnsupportedJDetachCallCmd
java.lang.Object
tcl.pkg.java.UnsupportedJDetachCallCmd
- All Implemented Interfaces:
- Runnable, Command
public class UnsupportedJDetachCallCmd
- extends Object
- implements Command, Runnable
This command is the only means to safely call a blocking Java method like a
modal AWT dialog box. If you used java::call directly the entire application
would hang because the AWT blocks the calling thread in an AWT modal dialos
show() method. You would use this command in place of the java::call method
or a java instance method. It will invoke a static or instance Java method
using another thread so that the calling thread will not block. This command
is unsupported and undocumented so you should only need to use it if you run
into this problem.
Method Summary |
void |
cmdProc(Interp interp,
TclObject[] argv)
This method implements the functionality of the command. |
void |
run()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnsupportedJDetachCallCmd
public UnsupportedJDetachCallCmd()
cmdProc
public void cmdProc(Interp interp,
TclObject[] argv)
throws TclException
- Description copied from interface:
Command
- This method implements the functionality of the command. However, calling
it directly in application code will bypass execution traces. Instead,
commands should be called with WrappedCommand.invoke
- Specified by:
cmdProc
in interface Command
- Parameters:
interp
- The interpreter for setting the results and which contains the
contextargv
- the argument list for the command; objv[0[ is the command name
itself
- Throws:
TclException
- on any errors
run
public void run()
- Specified by:
run
in interface Runnable
Copyright © 2015. All rights reserved.