1 L0 = <http://www.simantics.org/Layer0-1.1>
2 DOC = <http://www.simantics.org/Documentation-1.2>
3 SWT = <http://www.simantics.org/SWT-1.0>
4 DATA = <http://www.simantics.org/Datatypes-1.1>
5 PROPERTIES = <http://www.simantics.org/SWT-1.0/Properties>
6 LITERALS = <http://www.simantics.org/SWT-1.0/Literals>
7 FUNCTIONS = <http://www.simantics.org/SWT-1.0/Functions>
8 STR = <http://www.simantics.org/Structural-1.2>
10 SWT.connect : L0.Template
11 @template %parent %relation %connection %child
15 DOC.Relations.parent %connection
16 %connection : STR.Connection
18 SWT.defAttribute : L0.Template
19 @template %subject %range %valueType
20 %subject <R L0.HasProperty : PROPERTIES.ParameterType : DOC.Document.AttributeRelation : L0.FunctionalRelation
22 L0.RequiresValueType %valueType
24 attribute = COMPONENTS.attribute : L0.Template
25 @template %subject %relation %default
27 L0.Asserts _ : L0.Assertion
28 L0.HasPredicate %relation
32 COMPONENTS = SWT.Components : L0.Library
34 COMPONENTS.Component <T DOC.Components.PrimitiveComponent
36 >-- COMPONENTS.Component.background
37 @SWT.defAttribute DATA.RGB.Integer "(Integer,Integer,Integer)"
38 >-- COMPONENTS.Component.foreground
39 @SWT.defAttribute DATA.RGB.Integer "(Integer,Integer,Integer)"
40 >-- COMPONENTS.Component.font
41 @SWT.defAttribute DATA.Font "(String,Integer,String)"
42 >-- COMPONENTS.Component.multiLine
43 @SWT.defAttribute L0.Value "Boolean"
44 >-- COMPONENTS.Component.VScroll
45 @SWT.defAttribute L0.Value "Boolean"
46 >-- COMPONENTS.Component.HScroll
47 @SWT.defAttribute L0.Value "Boolean"
48 >-- COMPONENTS.Component.NoScroll
49 @SWT.defAttribute L0.Value "Boolean"
50 >-- COMPONENTS.Component.alignment
51 @SWT.defAttribute L0.Value "String"
53 @attribute COMPONENTS.Component.background
54 (255,255,255) : DATA.RGB.Integer
55 @attribute COMPONENTS.Component.foreground
56 (0,0,0) : DATA.RGB.Integer
57 @attribute COMPONENTS.Component.font
58 ("Arial",10,"Normal") : DATA.Font
59 @attribute COMPONENTS.Component.alignment "left"
61 COMPONENTS.GridComposite <T COMPONENTS.Component
63 >-- COMPONENTS.GridComposite.extendedMargins
64 @SWT.defAttribute LITERALS.Margins "(Integer,Integer,Integer,Integer)"
65 >-- COMPONENTS.GridComposite.numColumns
66 @SWT.defAttribute L0.Value "Integer"
68 @attribute COMPONENTS.GridComposite.extendedMargins
69 (0, 0, 0, 0) : LITERALS.Margins
70 @attribute COMPONENTS.GridComposite.numColumns
73 SWT.gridComposite : L0.Template
74 @template %instance %numColumns
75 %instance : COMPONENTS.GridComposite
76 COMPONENTS.GridComposite.numColumns %numColumns
78 COMPONENTS.ScrolledComposite <T COMPONENTS.Component
80 SWT.scrolledComposite : L0.Template
82 %instance : COMPONENTS.ScrolledComposite
84 COMPONENTS.GridCell <T COMPONENTS.Component
86 >-- COMPONENTS.GridCell.grabVertical
87 @SWT.defAttribute L0.Value "Boolean"
88 >-- COMPONENTS.GridCell.grabHorizontal
89 @SWT.defAttribute L0.Value "Boolean"
90 >-- COMPONENTS.GridCell.span
91 @SWT.defAttribute L0.Value "Integer"
93 @attribute COMPONENTS.GridCell.grabVertical
95 @attribute COMPONENTS.GridCell.grabHorizontal
97 @attribute COMPONENTS.GridCell.span
100 SWT.gridCell : L0.Template
101 @template %instance %connection %grabHorizontal %grabVertical %span %child
102 %instance : COMPONENTS.GridCell
103 COMPONENTS.GridCell.grabVertical %grabVertical
104 COMPONENTS.GridCell.grabHorizontal %grabHorizontal
105 COMPONENTS.GridCell.span %span
107 DOC.Relations.part1 %connection
109 DOC.Relations.parent %connection
110 %connection : STR.Connection
112 COMPONENTS.Label <T COMPONENTS.Component
114 >-- COMPONENTS.Label.text
115 @SWT.defAttribute L0.Value "String"
117 @attribute COMPONENTS.Label.text
120 SWT.label : L0.Template
121 @template %instance %text
122 %instance : COMPONENTS.Label
123 COMPONENTS.Label.text %text
125 COMPONENTS.Button <T COMPONENTS.Component
127 >-- COMPONENTS.Button.text
128 @SWT.defAttribute L0.Value "String"
129 >-- COMPONENTS.Button.onPress
130 @SWT.defAttribute L0.Value "AbstractEventHandler"
132 @attribute COMPONENTS.Button.text
135 SWT.button : L0.Template
136 @template %instance %caption
137 %instance : COMPONENTS.Button
138 COMPONENTS.Button.text %caption
140 COMPONENTS.TrackedText <T COMPONENTS.Component
142 >-- COMPONENTS.TrackedText.text
143 @SWT.defAttribute L0.Value "String"
144 >-- COMPONENTS.TrackedText.invalidBackground
145 @SWT.defAttribute DATA.RGB.Integer "(Integer,Integer,Integer)"
146 >-- COMPONENTS.TrackedText.inactiveBackground
147 @SWT.defAttribute DATA.RGB.Integer "(Integer,Integer,Integer)"
148 >-- COMPONENTS.TrackedText.hoverBackground
149 @SWT.defAttribute DATA.RGB.Integer "(Integer,Integer,Integer)"
150 >-- COMPONENTS.TrackedText.editingBackground
151 @SWT.defAttribute DATA.RGB.Integer "(Integer,Integer,Integer)"
152 >-- COMPONENTS.TrackedText.onModify
153 @SWT.defAttribute L0.Value "AbstractEventHandler"
154 >-- COMPONENTS.TrackedText.validator
155 @SWT.defAttribute L0.Value "StringInputValidator"
157 @attribute COMPONENTS.TrackedText.text
159 @attribute COMPONENTS.TrackedText.invalidBackground
160 (255,128,128) : DATA.RGB.Integer
161 @attribute COMPONENTS.TrackedText.inactiveBackground
162 (245,246,190) : DATA.RGB.Integer
163 @attribute COMPONENTS.TrackedText.hoverBackground
164 (254,255,197) : DATA.RGB.Integer
165 @attribute COMPONENTS.TrackedText.editingBackground
166 (255,255,255) : DATA.RGB.Integer
168 SWT.trackedText : L0.Template
169 @template %instance %text %onModify
170 %instance : COMPONENTS.TrackedText
171 COMPONENTS.TrackedText.text %text
172 COMPONENTS.TrackedText.onModify %onModify
175 COMPONENTS.Explorer <T COMPONENTS.Component
177 >-- COMPONENTS.Explorer.browseContext
178 @SWT.defAttribute L0.Value "String"
179 >-- COMPONENTS.Explorer.displayFilter
180 @SWT.defAttribute L0.Value "Boolean"
181 >-- COMPONENTS.Explorer.displayHeader
182 @SWT.defAttribute L0.Value "Boolean"
183 >-- COMPONENTS.Explorer.contextMenuId
184 @SWT.defAttribute L0.Value "String"
185 >-- COMPONENTS.Explorer.explorerInput
186 @SWT.defAttribute L0.Value "Variable"
187 >-- COMPONENTS.Explorer.columns
188 @SWT.defAttribute LITERALS.Columns "Columns"
189 >-- COMPONENTS.Explorer.editingColumn
190 @SWT.defAttribute L0.Value "String"
191 >-- COMPONENTS.Explorer.dragSourceListenerFactory
192 @SWT.defAttribute L0.Value "DragSourceListenerFactory"
194 @attribute COMPONENTS.Explorer.browseContext
196 @attribute COMPONENTS.Explorer.displayFilter
198 @attribute COMPONENTS.Explorer.displayHeader
200 @attribute COMPONENTS.Explorer.explorerInput
201 FUNCTIONS.explorerInput
203 SWT.explorer : L0.Template
204 @template %instance %displayFilter %displayHeader %browseContext %contextMenuId %columns
205 %instance : COMPONENTS.Explorer
206 COMPONENTS.Explorer.displayFilter %displayFilter
207 COMPONENTS.Explorer.displayHeader %displayHeader
208 COMPONENTS.Explorer.browseContext %browseContext
209 COMPONENTS.Explorer.contextMenuId %contextMenuId
210 COMPONENTS.Explorer.columns %columns
211 COMPONENTS.Explorer.explorerInput FUNCTIONS.explorerInput
213 COMPONENTS.Combo <T COMPONENTS.Component
214 >-- COMPONENTS.Combo.available
215 @SWT.defAttribute L0.Value "[String]"
216 >-- COMPONENTS.Combo.selected
217 @SWT.defAttribute L0.Value "String"
218 >-- COMPONENTS.Combo.onModify
219 @SWT.defAttribute L0.Value "AbstractEventHandler"
221 SWT.combo : L0.Template
222 @template %instance %available %selected %onModify
223 %instance : COMPONENTS.Combo
224 COMPONENTS.Combo.available %available
225 COMPONENTS.Combo.selected %selected
226 COMPONENTS.Combo.onModify %onModify
228 COMPONENTS.Browser <T SWT.Components.Component
229 >-- COMPONENTS.Browser.url
230 @SWT.defAttribute L0.Value "String"
232 COMPONENTS.SCLTextEditor <T SWT.Components.Component
233 >-- COMPONENTS.SCLTextEditor.textAndErrors
234 @SWT.defAttribute L0.Value "TextAndErrors"
235 >-- COMPONENTS.SCLTextEditor.onModify
236 @SWT.defAttribute L0.Value "AbstractEventHandler"
238 SWT.sclTextEditor : L0.Template
239 @template %instance %textAndErrors %onModify
240 %instance : COMPONENTS.SCLTextEditor
241 COMPONENTS.SCLTextEditor.textAndErrors %textAndErrors
242 COMPONENTS.SCLTextEditor.onModify %onModify