public class JFXViewManager
extends com.vektorsoft.demux.core.mva.AbstractViewManager
DMXViewManager
used for JavaFX applications.Constructor and Description |
---|
JFXViewManager(javafx.stage.Stage stage,
com.vektorsoft.demux.core.mva.DMXDefaultAdapter adapter)
Creates new instance of this view manager.
|
Modifier and Type | Method and Description |
---|---|
void |
blockGui(boolean state,
com.vektorsoft.demux.core.task.GUIBlockingScope scope,
String... ids) |
JFXDialogFactory |
getDialogFactory() |
void |
handleLocaleChange()
This method will update GUI based on locale change.
|
protected void |
processDeferredViews(String parentId,
Set<String> childrenIds) |
void |
registerEventHandler(com.vektorsoft.demux.core.mva.DMXEventRegistrationHandler handler) |
void |
registerView(com.vektorsoft.demux.core.mva.DMXView view) |
void |
selectView(String viewId,
Map<String,Object> params)
Set the view with specified ID as currently active.
|
void |
setMenuService(JFXMenuService menuService)
Sets menu service for use with this view manager.
|
void |
setToolbarService(JFXToolbarService toolbarService)
Sets toolbar service for this view manager.
|
void |
setViewExtensionCallback(String viewId,
com.vektorsoft.demux.core.extension.DMXExtensionCallback callback) |
void |
updateView(String viewId,
Map dataValues) |
void |
updateViewData(Map<String,Object> dataMap) |
public JFXViewManager(javafx.stage.Stage stage, com.vektorsoft.demux.core.mva.DMXDefaultAdapter adapter)
stage
- JavaFX stageadapter
- adapter instancepublic void setMenuService(JFXMenuService menuService)
menuService
- menu service to setpublic void setToolbarService(JFXToolbarService toolbarService)
toolbarService
- toolbar servicepublic void selectView(String viewId, Map<String,Object> params)
Set the view with specified ID as currently active. This implementation uses JavaFX-specific operations for showing the view.
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.DMXViewManager.PARAM_DIALOG_TITLE
- if present, it's value will be used as dialog title DMXViewManager.PARAM_VIEW_STATE
- if present, it's value will be use as view state (true or false).viewId
- view IDparams
- parametersDMXViewManager.selectView(java.lang.String, java.util.Map)
public JFXDialogFactory getDialogFactory()
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
protected void processDeferredViews(String parentId, Set<String> childrenIds)
processDeferredViews
in class com.vektorsoft.demux.core.mva.AbstractViewManager
public void setViewExtensionCallback(String viewId, com.vektorsoft.demux.core.extension.DMXExtensionCallback callback)
public void registerEventHandler(com.vektorsoft.demux.core.mva.DMXEventRegistrationHandler handler)
public void handleLocaleChange()
public void blockGui(boolean state, com.vektorsoft.demux.core.task.GUIBlockingScope scope, String... ids)
Copyright © 2012-2014 Vektor Software. All Rights Reserved.