Class: JavaMappingGenericEnum
- Inherits:
-
JavaMapping
- Object
- JavaMapping
- JavaMappingGenericEnum
- Defined in:
- lib/ontomde-uml2-flex/Editor.mxml.rb,
lib/ontomde-uml2-flex/ValueObjectAS.rb,
lib/ontomde-uml2-flex/Editor.mxml.as.rb
Instance Method Summary collapse
- #flex_prefix ⇒ Object
-
#flex_writeMXML_Form_item_property(prop) ⇒ Object
EXAMPLE: <mx:ComboBox id=“cmbCivilite” dataProvider=“modelmodel.civiliteSug” selectedItem=“modelmodel.civilite” labelFunction=“myLabelFunction” labelField=“value”> </mx:ComboBox>.
- #flex_writeMXML_Form_item_property_column(pcol) ⇒ Object
- #flex_writeMXML_validate(prop) ⇒ Object
-
#flex_writeMXML_vo_mapping(prop) ⇒ Object
civilite=“cmbCivilitecmbCivilite.selectedItem”.
-
#flex_writeVO_getParameter(prop) ⇒ Object
EXAMPLES: //key car c’est un item de l’enum param.civilite = civilite.key;.
-
#flex_writeVO_initFromXML_mapping(prop) ⇒ Object
EXAMPLES: civiliteSug = DeserializeXMLUtil.getFormEnum(source, ‘civilite’); civilite = DeserializeXMLUtil.getFormEnumAttributSelected(source, ‘civilite’, civiliteSug);.
- #flex_writeVO_initItemFromXML_mapping(prop) ⇒ Object
-
#flex_writeVO_vars_datatype(prop) ⇒ Object
public var civiliteSug:ArrayCollection;.
Methods inherited from JavaMapping
Instance Method Details
#flex_prefix ⇒ Object
506 507 508 |
# File 'lib/ontomde-uml2-flex/Editor.mxml.rb', line 506 def flex_prefix return "cmb" end |
#flex_writeMXML_Form_item_property(prop) ⇒ Object
EXAMPLE: <mx:ComboBox id=“cmbCivilite” dataProvider=“JavaMappingGenericEnum.modelmodel.civiliteSug” selectedItem=“JavaMappingGenericEnum.modelmodel.civilite” labelFunction=“myLabelFunction” labelField=“value”> </mx:ComboBox>
513 514 515 516 517 518 |
# File 'lib/ontomde-uml2-flex/Editor.mxml.rb', line 513 def flex_writeMXML_Form_item_property(prop) prop.write <<-END <mx:ComboBox id="#{flex_prefix}#{prop.java_NameBean}" dataProvider="{model.#{prop.java_Name}Sug}" selectedItem="{model.#{prop.java_Name}}" labelFunction="myLabelFunction" labelField="value"> </mx:ComboBox> END end |
#flex_writeMXML_Form_item_property_column(pcol) ⇒ Object
525 526 527 |
# File 'lib/ontomde-uml2-flex/Editor.mxml.rb', line 525 def flex_writeMXML_Form_item_property_column(pcol) pcol.write(%{<mx:DataGridColumn headerText="Column " dataField="#{pcol.java_Name}"/>\n}) end |
#flex_writeMXML_validate(prop) ⇒ Object
171 172 173 |
# File 'lib/ontomde-uml2-flex/Editor.mxml.as.rb', line 171 def flex_writeMXML_validate(prop) super end |
#flex_writeMXML_vo_mapping(prop) ⇒ Object
civilite=“JavaMappingGenericEnum.cmbCivilitecmbCivilite.selectedItem”
521 522 523 |
# File 'lib/ontomde-uml2-flex/Editor.mxml.rb', line 521 def flex_writeMXML_vo_mapping(prop) prop.write(%{ #{prop.java_Name}="{#{flex_prefix}#{prop.java_NameBean}.selectedItem}"}) end |
#flex_writeVO_getParameter(prop) ⇒ Object
EXAMPLES:
//key car c'est un item de l'enum
param.civilite = civilite.key;
277 278 279 |
# File 'lib/ontomde-uml2-flex/ValueObjectAS.rb', line 277 def flex_writeVO_getParameter(prop) prop.write("param.#{prop.java_Name} = #{prop.java_Name}.key;\n") end |
#flex_writeVO_initFromXML_mapping(prop) ⇒ Object
EXAMPLES: civiliteSug = DeserializeXMLUtil.getFormEnum(source, ‘civilite’); civilite = DeserializeXMLUtil.getFormEnumAttributSelected(source, ‘civilite’, civiliteSug);
284 285 286 287 |
# File 'lib/ontomde-uml2-flex/ValueObjectAS.rb', line 284 def flex_writeVO_initFromXML_mapping(prop) prop.write("#{prop.java_Name}Sug = DeserializeXMLUtil.getFormEnum(source, '#{prop.java_Name}');\n") prop.write("#{prop.java_Name} = DeserializeXMLUtil.getFormEnumAttributSelected(source, '#{prop.java_Name}', #{prop.java_Name}Sug);\n") end |
#flex_writeVO_initItemFromXML_mapping(prop) ⇒ Object
289 290 291 |
# File 'lib/ontomde-uml2-flex/ValueObjectAS.rb', line 289 def flex_writeVO_initItemFromXML_mapping(prop) #nop end |
#flex_writeVO_vars_datatype(prop) ⇒ Object
public var civiliteSug:ArrayCollection;
268 269 270 271 272 |
# File 'lib/ontomde-uml2-flex/ValueObjectAS.rb', line 268 def flex_writeVO_vars_datatype(prop) prop.write("public var #{prop.java_Name}:Object;\n") prop.write("public var #{prop.java_Name}Sug:ArrayCollection;\n") prop.write("public var selectedItem#{prop.java_Name}:Object;\n") end |