Reference Source
public class | source

LoginPresenter

Extends:

* → LoginPresenter

Class for the Login presenter and view

Constructor Summary

Public Constructor
public

Creates an instance of LoginPresenter

Member Summary

Public Members
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

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(message: Object): *

Called when the model finished checking with username and password.

public

update(newData: Object): *

Updates the login model with new data.

public

updateF: *

public

updateT: *

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 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 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(message: Object): * source

Called when the model finished checking with username and password. Refreshes the state of the view.

public update(newData: Object): * source

Updates the login model with new data.

public updateF: * source

public updateT: * source

public view: * source