'Validates the widget value.
:param text: the text of the widget
@raises NotImplementedError: if the method is not redefined
It will called everytime the widget value changes.
The redefined method must return True if the text is valid.'

def validate(self, text):

    raise NotImplementedError
