When an attribute is edited via the createEditor
action
described in section 8.2, the editor have
popup properties (like Cancel
, New
, Edit
, ...).
You can customize this popup using the customEditorPopup
facility. The default implementation is a class method coded
in XObject and the signature is
def customEditorPopup(cls, xattribute, parent, popup, xobject).
customEditorPopup
method
on the xattribute object. The default implementation is coded
in XAttribute
def customEditorPopup(self, cls, parent, popup, xobject):
self
is now the xattribute object. Once again, the
default implementation call the customEditorPopup
method
on the xtype object contained in the xattribute
def customEditorPopup(self, xattribute, cls, parent, popup, xobject)
self
is now the xtype object. The default implementation
do nothing. So, you have to re-implement it if you want to customize
the behaviour of the popup editor.