def METHOD_NAME(self):
    """Updates the editor when the object trait changes externally to the
    editor.
    """
    new_value = self.str_value
    if (self.item.resizable is True) or (self.item.height != -1.0):
        if self.control.GetValue() != new_value:
            self.control.SetValue(new_value)
    elif self.control.GetLabel() != new_value:
        self.control.SetLabel(new_value)