|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttcl.lang.CommandTrace
public class CommandTrace
This CommandTrace class is used to trace command rename and deletion
Field Summary | |
---|---|
protected String |
callbackCmd
Command to call when trace is fired |
static int |
DELETE
Indicates a CommandTrace that will execute on a command deletion |
static int |
RENAME
Indicates a CommandTrace that will execute on a command rename |
protected int |
type
The type of trace, either DELETE or RENAME |
Constructor Summary | |
---|---|
CommandTrace(Interp interp,
int type,
TclObject callbackCmd)
Create a new CommandTrace |
Method Summary | |
---|---|
String |
getCallbackCmd()
|
int |
getType()
|
void |
trace(Interp interp,
int type,
String oldname,
String newname)
Call the callback function for this CommandTrace if it matches type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DELETE
public static final int RENAME
protected String callbackCmd
protected int type
Constructor Detail |
---|
public CommandTrace(Interp interp, int type, TclObject callbackCmd)
type
- either DELETE or RENAMEcallbackCmd
- command to execute when firedMethod Detail |
---|
public int getType()
public String getCallbackCmd()
public void trace(Interp interp, int type, String oldname, String newname)
type
- type of trace being executed (DELETE or RENAME)oldname
- old name of command being renamed or deletednewname
- new name of command being renamed; ignored for DELETE type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |