public class ControllerImpl extends Object implements Controller
| Constructor and Description |
|---|
ControllerImpl()
Instantiates a new ControllerImpl.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
convertForDisplay(String attributeName,
Object input)
Converts value before sending it to the view.
|
Object |
convertForStorage(String attributeName,
Object input)
Converts value before sending it to the model.
|
Model |
getMasterModel()
Gets the master model.
|
View |
getMasterView()
Gets the master view.
|
void |
init()
Binds model and view.
|
void |
init(Model model,
ControllerAdapter controllerAdapter)
Inits the given model using given controllerAdapter.
|
boolean |
isEnabled()
Checks if controller is enabled.
|
boolean |
isInitializing()
Checks if controller is in process of initialization.
|
void |
registerModel(Model model)
Registers model.
|
void |
registerView(View view)
Registers view.
|
void |
setEnabled(boolean enabled)
Sets the enabled flag.
|
void |
setMasterModel(Model model)
Sets the master model.
|
void |
setMasterView(View view)
Sets the master view.
|
void |
unRegisterModel(Model model)
Un registers model.
|
void |
unRegisterView(View view)
Un registers view.
|
public Object convertForDisplay(String attributeName,
Object input)
ControllerconvertForDisplay in interface ControllerattributeName - the attribute nameinput - the value to convertpublic Object convertForStorage(String attributeName,
Object input)
ControllerconvertForStorage in interface ControllerattributeName - the attribute nameinput - the value to convertpublic Model getMasterModel()
ControllergetMasterModel in interface Controllerpublic View getMasterView()
ControllergetMasterView in interface Controllerpublic void init()
Controllerinit in interface Controllerpublic void init(Model model, ControllerAdapter controllerAdapter)
Controllerinit in interface Controllermodel - the modelcontrollerAdapter - the controller adapterpublic boolean isEnabled()
ControllerisEnabled in interface Controllerpublic boolean isInitializing()
ControllerisInitializing in interface Controllerpublic void registerModel(Model model)
ControllerregisterModel in interface Controllermodel - the modelpublic void registerView(View view)
ControllerregisterView in interface Controllerview - the viewpublic void setEnabled(boolean enabled)
ControllersetEnabled in interface Controllerenabled - the new enabled flagpublic void setMasterModel(Model model)
ControllersetMasterModel in interface Controllermodel - the new master modelpublic void setMasterView(View view)
ControllersetMasterView in interface Controllerview - the new master viewpublic void unRegisterModel(Model model)
ControllerunRegisterModel in interface Controllermodel - the modelpublic void unRegisterView(View view)
ControllerunRegisterView in interface Controllerview - the viewCopyright © 2010-2020 Toolsverse. All Rights Reserved.