[英]how to delete a connection in draw2d?
I want to know how I delete a connection in draw2d. 我想知道如何删除draw2d中的连接。 I tried disconnect() method but dose not seems to be work. 我试过disconnect()方法,但似乎无法正常工作。 This is my code 这是我的代码
menu.appendMenuItem(new draw2d.MenuItem("Disconnect", null, function() {
//draw2d.Connection.workflow.removeFigure(draw2d.Connection.prototype);
var cmd = new draw2d.CommandDelete(oThis);
oThis.workflow.getCommandStack().excute(cmd);
}));
here oThis is of type "draw2d.Connection". 在这里,这是“ draw2d.Connection”类型。 please help. 请帮忙。
Did you ever open the firebug error console? 您是否曾经打开过Firebug错误控制台?
PLEASE check this before you create every day a lot of messages 在每天创建大量邮件之前,请检查此内容
Replace "excute" with "execute" and everythingis working well. 将“执行”替换为“执行”,一切正常。
...sorry for this ....butIhaveread your other postings and I think you didn' try to solve your problems first by open the examples,jsdoc or the error console. ...对此感到抱歉....但是我已经阅读了其他文章,我认为您没有尝试通过打开示例,jsdoc或错误控制台来尝试解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.