public class JFXRootView extends Object implements com.vektorsoft.demux.core.mva.DMXView
This class represents root view of JavaFX application. All views added to application are rooted in this view.
This view does not have any data associated, but merely serves as a container for other views. When multiple subviews are added to this views,they will be stacked on top of each other, with the last view being on top. Views are stacked in Z-order, so that only last added view is visible.
It is possible to control the placement of the views by specifying view placement constraint. This constraint is positive integer. The higher the value, the higher view will be in Z-order. Thus, view with the highest placement constraint value will be on top.
Modifier and Type | Field and Description |
---|---|
static String |
JFX_ROOT_VIEW_ID
View ID of the root view.
|
Constructor and Description |
---|
JFXRootView(javafx.stage.Stage stage)
Create new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addChildView(com.vektorsoft.demux.core.mva.DMXView child) |
void |
constructUI() |
String |
getParentViewId() |
Set<String> |
getViewDataIds() |
String |
getViewId() |
Object |
getViewUI() |
void |
render() |
void |
setViewActive(String id,
boolean state) |
void |
updateFromModel(Map<String,Object> dataMap) |
Object |
viewPlacementConstraint() |
public static final String JFX_ROOT_VIEW_ID
public JFXRootView(javafx.stage.Stage stage)
stage
- JavaFX stagepublic void render()
render
in interface com.vektorsoft.demux.core.mva.DMXView
public String getViewId()
getViewId
in interface com.vektorsoft.demux.core.mva.DMXView
public String getParentViewId()
getParentViewId
in interface com.vektorsoft.demux.core.mva.DMXView
public Object viewPlacementConstraint()
viewPlacementConstraint
in interface com.vektorsoft.demux.core.mva.DMXView
public void addChildView(com.vektorsoft.demux.core.mva.DMXView child)
addChildView
in interface com.vektorsoft.demux.core.mva.DMXView
public Set<String> getViewDataIds()
getViewDataIds
in interface com.vektorsoft.demux.core.mva.DMXView
public void updateFromModel(Map<String,Object> dataMap)
updateFromModel
in interface com.vektorsoft.demux.core.mva.DMXView
public Object getViewUI()
getViewUI
in interface com.vektorsoft.demux.core.mva.DMXView
public void constructUI()
constructUI
in interface com.vektorsoft.demux.core.mva.DMXView
public void setViewActive(String id, boolean state)
setViewActive
in interface com.vektorsoft.demux.core.mva.DMXView
Copyright © 2012-2014 Vektor Software. All Rights Reserved.