... | ... | @@ -80,3 +80,62 @@ The proposed View Specification could look like the following: |
|
|
* Style=Spatial3D" refers to a specific Item Widget Factory. In this case this factory creates a Widget that is tied to a 3D Point Widget in the Spatial Views. If Style is nit specified then the Basic Item Widget Factory based on the Item Type is used. For example Name uses DefaultStringItemWdiget - Note that the Factory for generating the GUI for the View could override these defaults when processing its components
|
|
|
* Additional Information can now be specified - for example setting the length for the Name Item
|
|
|
* When an Item has the possibility of generating multiple widgets based on having children items or multiple values, there needs to be an option to control if a single or multiple widgets would be returned.
|
|
|
|
|
|
In the case of processing Group Items - it should be possible to indicate if its children should be returned so they could be placed in the parent's container widget:
|
|
|
|
|
|
```xml
|
|
|
<View Type="Instanced" Title="MyAtt">
|
|
|
<InstancedAttributes>
|
|
|
<Att Name="MyAtt" Type="MyStuff">
|
|
|
<Layout Type="Form">
|
|
|
<Item Name="name" Label="Name" Length="10" />
|
|
|
<Item Name="File"/>
|
|
|
<Item Name="Point" Style="Spatial3D" OptionPlacement="Widget" GroupValues="true"/>
|
|
|
<Item Name="Group1" GroupChildren="false">
|
|
|
<Layout Type="Form">
|
|
|
<Item Name="*"/>
|
|
|
</Layout>
|
|
|
</Item>
|
|
|
</Layout>
|
|
|
</Att>
|
|
|
</InstancedAttributes>
|
|
|
</View>
|
|
|
```
|
|
|
![Screen_Shot_2017-09-12_at_11.44.43_AMEDT](/uploads/548084fa530c0abea2769d54fdfac954/Screen_Shot_2017-09-12_at_11.44.43_AMEDT.png)
|
|
|
|
|
|
### Observations
|
|
|
* In this case the factory will return multiple widgets (one per child item)
|
|
|
|
|
|
The following is a use case containing items with units and discrete items with active children:
|
|
|
|
|
|
```xml
|
|
|
<View Type="Instanced" Title="MyAtt">
|
|
|
<InstancedAttributes>
|
|
|
<Att Name="MyAtt" Type="MyStuff">
|
|
|
<Layout Type="Form">
|
|
|
<Item Name="name" Label="Name" Length="10" />
|
|
|
<Item Name="File"/>
|
|
|
<Item Name="Point" Style="Spatial3D" OptionPlacement="Label" GroupValues="true"/>
|
|
|
<Item Name="Group1" GroupChildren="true">
|
|
|
<Layout Type="Form">
|
|
|
<Item Name="*"/>
|
|
|
</Layout>
|
|
|
</Item>
|
|
|
<Item Name="Temp" ShowUnits="true"/>
|
|
|
<Item Name="Start Time" GroupChildren="true" OmitChildrenLabel="true">
|
|
|
<Layout Type="Horizontal">
|
|
|
<Item Name="Value"/>
|
|
|
<Item Name="Units"/>
|
|
|
</Layout>
|
|
|
</Item>
|
|
|
<Item Name="Complex" SingleWidget="true">
|
|
|
<Layout Type="Form">
|
|
|
<Item Name="*"/>
|
|
|
</Layout>
|
|
|
</Item>
|
|
|
</Layout>
|
|
|
</Att>
|
|
|
</InstancedAttributes>
|
|
|
</View>
|
|
|
```
|
|
|
![Screen_Shot_2017-09-12_at_11.44.50_AMEDT](/uploads/e081cb93caa0b5a0e86100a57c51e08a/Screen_Shot_2017-09-12_at_11.44.50_AMEDT.png) |
|
|
\ No newline at end of file |