public class DMXAndroidViewManager
extends com.vektorsoft.demux.core.mva.AbstractViewManager
DMXViewManager
for
Android platform. This implementation should be able to handle registering
views with activities in a manner consistent with the rest of the framework.Modifier and Type | Field and Description |
---|---|
static String |
DMX_ANDROID_ROOT_VIEW
Name of the root view.
|
Constructor and Description |
---|
DMXAndroidViewManager(DMXMainActivity activity,
com.vektorsoft.demux.core.mva.DMXDefaultAdapter adapter)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
blockGui(boolean state,
com.vektorsoft.demux.core.task.GUIBlockingScope scope,
String... ids) |
DMXAndroidDialogFactory |
getDialogFactory() |
void |
handleLocaleChange() |
protected void |
processDeferredViews(String parentId,
Set<String> childrenIds) |
void |
registerEventHandler(com.vektorsoft.demux.core.mva.DMXEventRegistrationHandler handler) |
com.vektorsoft.demux.core.mva.DMXView |
registerView(Class clazz) |
void |
registerView(com.vektorsoft.demux.core.mva.DMXView view) |
void |
selectView(String viewId,
Map<String,Object> params)
Selects active view for display.
|
void |
setViewExtensionCallback(String viewId,
com.vektorsoft.demux.core.extension.DMXExtensionCallback callback) |
void |
updateView(String viewId,
Map<String,Object> dataValues) |
void |
updateViewData(Map<String,Object> dataMap) |
public static final String DMX_ANDROID_ROOT_VIEW
public DMXAndroidViewManager(DMXMainActivity activity, com.vektorsoft.demux.core.mva.DMXDefaultAdapter adapter)
activity
- main activityadapter
- adapter instanceprotected void processDeferredViews(String parentId, Set<String> childrenIds)
processDeferredViews
in class com.vektorsoft.demux.core.mva.AbstractViewManager
public void selectView(String viewId, Map<String,Object> params)
Selects active view for display. If view is a dialog, it will be displayed within popup window.
Parameter params
controls the way view will be displayed. The following values are taken into account
by this implementation:
DMXViewManager.PARAM_PROGRESS_DIALOG
, with values DMXViewManager.VAL_DLG_SHOW
or DMXViewManager.VAL_DLG_CLOSE
.
If VAL_DLG_SHOW
is specified, dialog will be displayed. Otherwise, it will be closed.viewId
- view IDparams
- optional parametersDMXViewManager.selectView(java.lang.String, java.util.Map)
public final void registerView(com.vektorsoft.demux.core.mva.DMXView view)
registerView
in interface com.vektorsoft.demux.core.mva.DMXViewManager
registerView
in class com.vektorsoft.demux.core.mva.AbstractViewManager
public com.vektorsoft.demux.core.mva.DMXView registerView(Class clazz)
registerView
in interface com.vektorsoft.demux.core.mva.DMXViewManager
registerView
in class com.vektorsoft.demux.core.mva.AbstractViewManager
public void handleLocaleChange()
public void blockGui(boolean state, com.vektorsoft.demux.core.task.GUIBlockingScope scope, String... ids)
public DMXAndroidDialogFactory getDialogFactory()
public void setViewExtensionCallback(String viewId, com.vektorsoft.demux.core.extension.DMXExtensionCallback callback)
public void registerEventHandler(com.vektorsoft.demux.core.mva.DMXEventRegistrationHandler handler)
Copyright © 2012-2014 Vektor Software. All Rights Reserved.