this.setLabel(label);\r
this.setIcon(icon); \r
this.menuClones = [];\r
+ this.callbacks = {};\r
},\r
\r
members :\r
this.addTooltip(button);\r
return button;\r
},\r
- \r
+ \r
+ registerCallback : function(callback, focusablePartId){\r
+ this.callbacks[focusablePartId] = callback;\r
+ },\r
+ getCallbacks : function(){\r
+ return this.callbacks;\r
+ },\r
+ removeCallback : function(focusablePartId){\r
+ if(this.callbacks[focusablePartId]){\r
+ delete this.callbacks[focusablePartId];\r
+ }\r
+ }, \r
+ \r
/**\r
* Special tricks using UserData to enable/disable listeners to avoid loops...\r
* @param button {qx.ui.core.Widget} toolbar Checkbox or menu Checkbox button.\r