public interface DMXView
Modifier and Type | Method and Description |
---|---|
void |
addChildView(DMXView child)
Adds specified view as a child of this view.
|
void |
constructUI()
This method should be used for initial creation of user interface.
|
String |
getParentViewId()
Returns ID of parent view of this view.
|
Set<String> |
getViewDataIds()
Returns IDs of model data objects that are associated with this view.
|
String |
getViewId()
Returns this view ID.
|
Object |
getViewUI()
Returns an object that represents actual UI presentation of this view.
|
void |
render()
Renders this view for display.
|
void |
setViewActive(String id,
boolean state)
Activates or deactivates the view which is the child of this view, based on the value of parameter
state . |
void |
updateFromModel(Map<String,Object> dataMap)
Update this view with data from model.
|
Object |
viewPlacementConstraint()
Returns an object that represents layout constraint which should be
respected when placing this view.
|
void render()
String getViewId()
String getParentViewId()
void setViewActive(String id, boolean state)
Activates or deactivates the view which is the child of this view, based on the value of parameter
state
. When view is active, it means it is visible and has
precedence over other view in the same position. For example, if views are
stacked in vertical order, active view is placed on the top of the view hierarchy.
id
- ID of the child view to activate or deactivatestate
- if true
, activate view. Otherwise, deactivate itObject viewPlacementConstraint()
void addChildView(DMXView child)
child
- view to add as a childSet<String> getViewDataIds()
void updateFromModel(Map<String,Object> dataMap)
dataMap
- model data mapObject getViewUI()
void constructUI()
This method should be used for initial creation of user interface. It will be invoked from view manager to initially create UI. In order to maintain platform compatibility, it will be invoked on UI thread of the underlying platform.
Important: Implementing classes should use this method exclusively for initial UI construction.
Copyright © 2012-2014 Vektor Software. All Rights Reserved.