Difference between revisions of "Org.simantics.views"

From Developer Documents
Jump to navigation Jump to search
Line 3: Line 3:
 
== Basic concepts ==
 
== Basic concepts ==
  
A modelled view is defined as a hierarchy of parametrized '''controls'''. The model generates scene graph models defined in org.simantics.scenegraph. The created scene graphs can then be used to populate e.g. a SWT containers or PDF documents.
+
A modelled view is a structural model of '''controls'''. The model configuration can be evaluated to produce a scene graph as defined in org.simantics.scenegraph. A single view configuration can be evaluated into multiple different scene graphs with different node types (e.g. SWT, AWT, PDF, HTML). The evaluation is done in the context of org.simantics.db.layer0.variable.Variable.  
 
 
The hierarchy and properties of the modelled view is defined in the context of org.simantics.db.layer0.variable.Variable e.g. all modelled properties are evaluated using ReadGraph.getRelatedValue2 with a Variable context.
 
  
 
The properties of controls in a modelled view are often defined as functions of an external input assigned to the evaluation context e.g. a view can be defined to represent the current workspace selection.
 
The properties of controls in a modelled view are often defined as functions of an external input assigned to the evaluation context e.g. a view can be defined to represent the current workspace selection.

Revision as of 13:07, 24 October 2011

Modelled views are structural models of graphical user interfaces defined in org.simantics.views*

Basic concepts

A modelled view is a structural model of controls. The model configuration can be evaluated to produce a scene graph as defined in org.simantics.scenegraph. A single view configuration can be evaluated into multiple different scene graphs with different node types (e.g. SWT, AWT, PDF, HTML). The evaluation is done in the context of org.simantics.db.layer0.variable.Variable.

The properties of controls in a modelled view are often defined as functions of an external input assigned to the evaluation context e.g. a view can be defined to represent the current workspace selection.

In the control hierarchy, relative references can also be modelled e.g. an action can be applied on an output of a specific control.

It is also possible to declare a substructure of controls as a type such that some properties in the substructure are defined as functions of some interface properties declared in the type and defined in instances of that type.

Modelling

Implementation