Class cc.TextFieldDelegate

Class Summary
Constructor Attributes Constructor Name and Description
 
Text field delegate

Method Summary

Class Detail

cc.TextFieldDelegate()
Text field delegate

Method Detail

  • {Boolean} onDraw(sender)
    If doesn't want draw sender as default, return true.
    Parameters:
    {cc.TextFieldTTF} sender
    Returns:
    {Boolean}
  • {Boolean} onTextFieldAttachWithIME(sender)
    If the sender doesn't want to attach with IME, return true;
    Parameters:
    {cc.TextFieldTTF} sender
    Returns:
    {Boolean}
  • {Boolean} onTextFieldDeleteBackward(sender, delText, len)
    If the sender doesn't want to delete the delText, return true;
    Parameters:
    {cc.TextFieldTTF} sender
    {String} delText
    {Number} len
    Returns:
    {Boolean}
  • {Boolean} onTextFieldDetachWithIME(sender)
    If the sender doesn't want to detach with IME, return true;
    Parameters:
    {cc.TextFieldTTF} sender
    Returns:
    {Boolean}
  • {Boolean} onTextFieldInsertText(sender, text, len)
    If the sender doesn't want to insert the text, return true;
    Parameters:
    {cc.TextFieldTTF} sender
    {String} text
    {Number} len
    Returns:
    {Boolean}