This class is an Abstract class that will be inherit by all the views in the Application, and provided one method for set the Application.
| private | TrioMotor | application | |
| private | Function | init |
AbstractView() |
| public | setApplication(app:TrioMotor) |
private application:TrioMotor
The main Application. It allows us to communicate with the application and other Views (most of the time by calling different Connectors)
private init:Function
An abstract method that is called when the application has been set. This method has to be implemented by inheriting Classes
AbstractView()
public setApplication(app:TrioMotor):Void
Description: Sets the application and calls the init() method
Globals: It sets the application
Calls: init(): called when we finish setting the application
Is Called by: A parent Component usually in the init() or onLoad() Method.
Assumptions: Parent component will pass the application as a parameter
- Parameters
app (TrioMotor)- The Trio Motor Application.- Returns
- Void