Modeller.getEdittingAttribute


getEdittingAttribute()

Use in combination with setEditDialog or similar to override the default dialog used to edit an attribute. When the user has double clicked on an attribute, and the dialog is displayed, this function allows the user to determine which attribute is being editted. It is an error to call this function at any other time. Use isEdittingAttribute to determine whether or not an attribute is currently being editted. Note that this function will only return an attribute during dialog startup - as soon as the dialog is interactive, modeller will automatically reset. Therefore, if a dialog needs to know the value of this function some time later (for example in its handler for the OK button), the dialog must cache the value until then

Argumentsnone 
Return valueIFAttribute

See also setEditDialog setDoubleClickDialog insertContextMenuItem isEdittingAttribute

Back to Modeller

Back to Overview