Class zwt.control.PartController
Extends
zwt.Object.
A part controller is used to control a part on the page by regrouping actions related to this part.
Defined in: PartController.js.
Constructor Attributes | Constructor Name and Description |
---|---|
zwt.control.PartController(zwt_ui_Part_part)
Construct a part controller.
|
Method Attributes | Method Name and Description |
---|---|
getModel()
Return the controller's model.
|
|
getPart()
Return the controller's part.
|
|
Return the part controller event manager attached to the part.
|
|
init()
Called when the part is initialized.
|
|
onEvent(zwt_control_PartControllerEvent_event)
Dispatch the specified event to the appropriate event manager.
|
|
setModel(zwt_model_Model_model)
Set the controller's model.
|
Class Detail
zwt.control.PartController(zwt_ui_Part_part)
Construct a part controller.
Author: Jeremy KUHN.
Author: Jeremy KUHN.
- Parameters:
- {zwt.ui.Part} zwt_ui_Part_part
- The part to attached to the controller
Method Detail
{zwt.model.Model}
getModel()
Return the controller's model.
- Returns:
- the controller's model
{zwt.ui.Part}
getPart()
Return the controller's part.
- Returns:
- the controller's part.
{zwt.control.PartControllerEventManager}
getPartControllerEventManager()
Return the part controller event manager attached to the part.
- Returns:
- The part controller event manager
init()
Called when the part is initialized. Basically this method should be used to build the controller's part.
A Part controller listener must also be attached to this controller in this method in order to catch the initialization event which is triggered after this method ends.
onEvent(zwt_control_PartControllerEvent_event)
Dispatch the specified event to the appropriate event manager.
- Parameters:
- {zwt.control.PartControllerEvent} zwt_control_PartControllerEvent_event
- The event to dispatch
setModel(zwt_model_Model_model)
Set the controller's model. This will send a MODEL_SET event to the listeners attached to the controller.
- Parameters:
- {zwt.model.Model} zwt_model_Model_model
- the model to set