#NEWLINE# def addCallback( self , callback , eventType = None , * args ) : #NEWLINE# #INDENT# if ( eventType is None ) : #NEWLINE# #INDENT# eventType = callback . _eventType #NEWLINE# #UNINDENT# if issubclass ( eventType , BlurEvent ) : #NEWLINE# #INDENT# self . registerCallback ( BlurEvent , callback , BlurEvent . EVENT_ID , * args ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if issubclass ( eventType , FocusEvent ) : #NEWLINE# #INDENT# self . registerCallback ( FocusEvent , self , FocusEvent . EVENT_ID , * args ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if issubclass ( eventType , TextChangeEvent ) : #NEWLINE# #INDENT# self . registerCallback ( TextChangeEvent , callback , ITextChangeListener . EVENT_ID , * args ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# super ( AbstractTextField , self ) . addCallback ( callback , eventType , * args )