Reference Source
public class | source

SignUpPresenter

Extends:

* → SignUpPresenter

Class for the SignUp presenter and view

Constructor Summary

Public Constructor
public

Creates an instance of LoginPresenter

Member Summary

Public Members
public
public

checkInput(username: Object, password: Object): *

Called after user click the login button, before presenter sending data to the login model Check if the input is valid

public
public

Gets the data from the model and returns it to the caller.

public

If the view or presenter is destroyed, unsubscribe the presenter from the model.

public

onUpdated(newData: Object): *

Called when the model is updated with new data.

public
public

update(newData: Object): *

Updates the bike model with new data.

public

view: *

Public Constructors

public constructor(view: Object) source

Creates an instance of LoginPresenter

Params:

NameTypeAttributeDescription
view Object

An instance of a view class

Public Members

public callback: * source

public checkInput(username: Object, password: Object): * source

Called after user click the login button, before presenter sending data to the login model Check if the input is valid

public defaultCallback: * source

public getData: Object: * source

Gets the data from the model and returns it to the caller.

Return:

Object

Data from the model.

public onDestroy: * source

If the view or presenter is destroyed, unsubscribe the presenter from the model.

public onUpdated(newData: Object): * source

Called when the model is updated with new data. Refreshes the state of the view. Method is supplied with the data to add. Better way to refresh the state?

public setCallback: * source

public update(newData: Object): * source

Updates the bike model with new data.

public view: * source