public class

SCChangePassController

extends SCBaseController<T extends IViewHolder>
implements IChangePassController
java.lang.Object
   ↳ com.c2call.sdk.pub.gui.core.controller.SCBaseController<T extends com.c2call.sdk.pub.gui.core.controller.IViewHolder>
     ↳ com.c2call.sdk.pub.gui.changepassword.controller.SCChangePassController

Summary

Public Constructors
SCChangePassController(View view, SCViewDescription viewDescription)
Public Methods
boolean isInputValid()
Checks whether the input is correct
void onButtonSaveClick(View v)
Called if the save button was clicked.
void onCreate(Activity context, SCActivityResultDispatcher resultDispatcher)
This should be called when your Activity is created.
void onEditNewPassChanged(TextView v, Editable text)
Called if the text of the new passwoard changed
void onEditOldPassChanged(TextView v, Editable text)
Called if the text of the old passwoard changed
void onEditRetypePassChanged(TextView v, Editable text)
Called if the text of the retyped passwoard changed
void save()
Save the new password
Protected Methods
void onBindViewHolder(IChangePassViewHolder vh)
IChangePassViewHolder onCreateViewHolder(View v, SCViewDescription vd)
void onInputInvalid()
void onInputValid()
void onInputValidityChanged()
void onValidateInput()
[Expand]
Inherited Methods
From class com.c2call.sdk.pub.gui.core.controller.SCBaseController
From class java.lang.Object
From interface android.view.View.OnAttachStateChangeListener
From interface com.c2call.sdk.pub.gui.changepassword.controller.IChangePassController
From interface com.c2call.sdk.pub.gui.core.common.IActivityResultListener
From interface com.c2call.sdk.pub.gui.core.controller.IController

Public Constructors

public SCChangePassController (View view, SCViewDescription viewDescription)

Public Methods

public boolean isInputValid ()

Checks whether the input is correct

Returns
  • whether the input is correct

public void onButtonSaveClick (View v)

Called if the save button was clicked.

Parameters
v the button that was clicked

public void onCreate (Activity context, SCActivityResultDispatcher resultDispatcher)

This should be called when your Activity is created. Typically in onCreate(...) of the surrounding Activiy.

Parameters
context the surrounding activity
resultDispatcher a result dispatcher that is used by the controller

public void onEditNewPassChanged (TextView v, Editable text)

Called if the text of the new passwoard changed

Parameters
v the TextView that changed
text the new text

public void onEditOldPassChanged (TextView v, Editable text)

Called if the text of the old passwoard changed

Parameters
v the TextView that changed
text the new text

public void onEditRetypePassChanged (TextView v, Editable text)

Called if the text of the retyped passwoard changed

Parameters
v the TextView that changed
text the new text

public void save ()

Save the new password

Protected Methods

protected void onBindViewHolder (IChangePassViewHolder vh)

protected IChangePassViewHolder onCreateViewHolder (View v, SCViewDescription vd)

protected void onInputInvalid ()

protected void onInputValid ()

protected void onInputValidityChanged ()

protected void onValidateInput ()