public interface

IRegisterController

implements IController<T extends IViewHolder>
com.c2call.sdk.pub.gui.register.controller.IRegisterController
Known Indirect Subclasses

Class Overview

Interface for Register Controllers

Summary

Public Methods
abstract SCRegistrationData getData()
Gets registration data.
abstract void onButtonRegisterClicked(View v)
Called when the register Button was clicked
abstract void onChooseCountryClicked(View v)
Called when the choose country Button was clicked
abstract void onEditEmailChanged(TextView v, Editable text)
Called when the input for email changed
abstract void onEditFirstnameChanged(TextView v, Editable text)
Called when the input for first name changed
abstract void onEditLastnameChanged(TextView v, Editable text)
Called when the input for last name changed
abstract void onEditPasswordChanged(TextView v, Editable text)
Called when the input for password changed
abstract void onEditPasswordRetypeChanged(TextView v, Editable text)
Called when the input for retyp password changed
abstract void onInputInvalid()
Called if input was invalid after validation
abstract void onInputValid()
Called if input was valid after validation
abstract void onRegisterFailed(int error)
Called on register error.
abstract void onRegisterSuccess()
Called on register success
abstract boolean onValidateInput()
Called to validate the input.
abstract void register()
Submit the registration data
abstract void setData(SCRegistrationData data)
Sets registration data
abstract void setDecorator(IRegisterDecorator decorator)
Sets a new Decorator for this controller
[Expand]
Inherited Methods
From interface com.c2call.sdk.pub.gui.core.controller.IController

Public Methods

public abstract SCRegistrationData getData ()

Gets registration data.

Returns
  • the registration data

public abstract void onButtonRegisterClicked (View v)

Called when the register Button was clicked

Parameters
v the clicked button

public abstract void onChooseCountryClicked (View v)

Called when the choose country Button was clicked

Parameters
v the clicked Button

public abstract void onEditEmailChanged (TextView v, Editable text)

Called when the input for email changed

Parameters
v the changed input view
text the new text

public abstract void onEditFirstnameChanged (TextView v, Editable text)

Called when the input for first name changed

Parameters
v the changed input view
text the new text

public abstract void onEditLastnameChanged (TextView v, Editable text)

Called when the input for last name changed

Parameters
v the changed input view
text the new text

public abstract void onEditPasswordChanged (TextView v, Editable text)

Called when the input for password changed

Parameters
v the changed input view
text the new text

public abstract void onEditPasswordRetypeChanged (TextView v, Editable text)

Called when the input for retyp password changed

Parameters
v the changed input view
text the new text

public abstract void onInputInvalid ()

Called if input was invalid after validation

public abstract void onInputValid ()

Called if input was valid after validation

public abstract void onRegisterFailed (int error)

Called on register error.

Parameters
error the error code

public abstract void onRegisterSuccess ()

Called on register success

public abstract boolean onValidateInput ()

Called to validate the input.

Returns
  • true, if input is valid, false otherwise

public abstract void register ()

Submit the registration data

public abstract void setData (SCRegistrationData data)

Sets registration data

Parameters
data the registration data

public abstract void setDecorator (IRegisterDecorator decorator)

Sets a new Decorator for this controller

Parameters
decorator the new Decorator