Implements toolbar disabling.

This commit is contained in:
Paulo Veiga
2011-10-04 01:16:29 -03:00
parent b7bbe2c0b7
commit 9185883d30
24 changed files with 919 additions and 275 deletions

View File

@@ -929,35 +929,12 @@ mindplot.Topic = new Class({
var model = this.getModel();
var isConnected = model.isConnected();
// Check consitency...
// Check consistency...
if ((isConnected && !line) || (!isConnected && line)) {
// $assert(false,'Illegal state exception.');
}
},
/**
* type:
* onfocus
*/
addEvent : function(type, listener) {
// Translate to web 2d events ...
if (type == 'onfocus') {
type = 'mousedown';
}
var shape = this.get2DElement();
shape.addEvent(type, listener);
},
removeEvent : function(type, listener) {
// Translate to web 2d events ...
if (type == 'onfocus') {
type = 'mousedown';
}
var shape = this.get2DElement();
shape.removeEvent(type, listener);
},
_setSize : function(size) {
$assert(size, "size can not be null");