public final class ViewActivationController extends DMXAbstractController
dataMap, modelChangeListenersList
Constructor and Description |
---|
ViewActivationController()
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(Object... params)
Sets the ID of the view to be activated.
|
String |
getNextViewId()
Returns ID of the view that should be activated/shown.
|
protected void |
updateDataMapFromFields()
This method is called before model is updated.
|
void |
updateFromModel(Map<String,Object> modelData)
This method will update controller data with current data from model.
|
addModelChangeListener, getControllerDataMap, getControllerDataNames, getMapping, notifyDataChanged, removeModelChangeListener, updateModel
public String getNextViewId()
execute()
method.getNextViewId
in interface DMXController
getNextViewId
in class DMXAbstractController
protected void updateDataMapFromFields()
DMXAbstractController
This method is called before model is updated. Implementations should use this method as extension point to update with values of fields from this class which represent values of model data.
Example usage:
private int myInt;
................
protected void updateDataMapFromFields(){
dataMap.put("myIntMapping", myInt);
}
updateDataMapFromFields
in class DMXAbstractController
public void updateFromModel(Map<String,Object> modelData)
DMXController
modelData
- model datapublic void execute(Object... params) throws ExecutionException
params
- view ID must be the first parameterExecutionException
- if an error occursCopyright © 2012-2014 Vektor Software. All Rights Reserved.