Module component.Responder

Functions

Responder:acceptsFirstResponder () Overridden by subclasses.
Responder:becomeFirstResponder () Overridden by subclasses.
Responder:init () Initializes the Responder object.
Responder:keyDown (theEvent) The context and other responders sends a key down event to this responder by calling this method.
Responder:keyUp (theEvent) The context and other responders sends a key up event to this responder by calling this method.
Responder:load (lib) Loads the Responder class, automatically called when it's required by LoveUI
Responder:mouseDown (theEvent) The context and other responders sends a mouse down event to this responder by calling this method.
Responder:mouseUp (theEvent) The context and other responders sends a mouse up event to this responder by calling this method.
Responder:resignFirstResponder () Overridden by subclasses.
Responder:setNextResponder (aResponder) This is an internal LoveUI method to insert responder into the responder chaing.


Functions

Responder:acceptsFirstResponder ()
Overridden by subclasses. Returns true when the view can be focused by mouse clicks, tab, etc, return false if not.

Return value:

boolean
Responder:becomeFirstResponder ()
Overridden by subclasses. This method is called when the responder is becoming the first responder. return false to refuse to be the first responder. return true to accept

Return value:

boolean
Responder:init ()
Initializes the Responder object.

Return value:

Responder
Responder:keyDown (theEvent)
The context and other responders sends a key down event to this responder by calling this method. Overridden by subclasses The default implementation simply passes this message to the next responder.

Parameters

  • theEvent: Event
Responder:keyUp (theEvent)
The context and other responders sends a key up event to this responder by calling this method. Overridden by subclasses The default implementation simply passes this message to the next responder.

Parameters

  • theEvent: Event
Responder:load (lib)
Loads the Responder class, automatically called when it's required by LoveUI

Parameters

  • lib: table

Return value:

class
Responder:mouseDown (theEvent)
The context and other responders sends a mouse down event to this responder by calling this method. Overridden by subclasses The default implementation simply passes this message to the next responder.

Parameters

  • theEvent: Event
Responder:mouseUp (theEvent)
The context and other responders sends a mouse up event to this responder by calling this method. Overridden by subclasses The default implementation simply passes this message to the next responder.

Parameters

  • theEvent: Event
Responder:resignFirstResponder ()
Overridden by subclasses. This method is called when the responder is asked to lose its first responder status. return false to refuse to lose it. return true to accept

Return value:

boolean
Responder:setNextResponder (aResponder)
This is an internal LoveUI method to insert responder into the responder chaing. Do not override.

Parameters

  • aResponder: Responder

Valid XHTML 1.0!