public interface Controller
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.
|
Object convertForDisplay(String attributeName, Object input)
attributeName
- the attribute nameinput
- the value to convertObject convertForStorage(String attributeName, Object input)
attributeName
- the attribute nameinput
- the value to convertModel getMasterModel()
View getMasterView()
void init()
void init(Model model, ControllerAdapter controllerAdapter)
model
- the modelcontrollerAdapter
- the controller adapterboolean isEnabled()
boolean isInitializing()
void registerModel(Model model)
model
- the modelvoid registerView(View view)
view
- the viewvoid setEnabled(boolean enabled)
enabled
- the new enabled flagvoid setMasterModel(Model model)
model
- the new master modelvoid setMasterView(View view)
view
- the new master viewvoid unRegisterModel(Model model)
model
- the modelvoid unRegisterView(View view)
view
- the viewCopyright © 2010-2020 Toolsverse. All Rights Reserved.