Class: JavaMappingCalendar
- Inherits:
-
JavaMapping
- Object
- JavaMapping
- JavaMappingCalendar
- Defined in:
- lib/ontomde-uml2-flex/ValueObjectAS.rb,
lib/ontomde-uml2-flex/Editor.mxml.rb,
lib/ontomde-uml2-flex/Editor.mxml.as.rb
Overview
EXAMPLES: public var datedenaissance:Date;
Instance Method Summary collapse
- #flex_prefix ⇒ Object
-
#flex_writeMXML_Form_item_property(prop) ⇒ Object
<mx:DateField width=“150” id=“dfDatedenaissance” selectedDate=“modelmodel.datedenaissance” yearNavigationEnabled=“true” formatString=“DD/MM/YYYY”/>.
- #flex_writeMXML_Form_item_property_column(pcol) ⇒ Object
- #flex_writeMXML_validate(prop) ⇒ Object
-
#flex_writeMXML_vo_mapping(prop) ⇒ Object
datedenaissance=“dfDatedenaissancedfDatedenaissance.selectedDate”.
-
#flex_writeVO_getParameter(prop) ⇒ Object
EXAMPLES: param.datedenaissance = utils.DateUtil.FormatForDatabase(datedenaissance);.
-
#flex_writeVO_initFromXML_mapping(prop) ⇒ Object
EXAMPLES: datedenaissance = DeserializeXMLUtil.getFormDateAttributValue(source, ‘datedenaissance’);.
- #flex_writeVO_initItemFromXML_mapping(prop) ⇒ Object
- #flex_writeVO_vars_datatype(prop) ⇒ Object
Methods inherited from JavaMapping
Instance Method Details
#flex_prefix ⇒ Object
487 488 489 |
# File 'lib/ontomde-uml2-flex/Editor.mxml.rb', line 487 def flex_prefix return "df" end |
#flex_writeMXML_Form_item_property(prop) ⇒ Object
<mx:DateField width=“150” id=“dfDatedenaissance” selectedDate=“JavaMappingCalendar.modelmodel.datedenaissance” yearNavigationEnabled=“true” formatString=“DD/MM/YYYY”/>
492 493 494 |
# File 'lib/ontomde-uml2-flex/Editor.mxml.rb', line 492 def flex_writeMXML_Form_item_property(prop) prop.write %{<mx:DateField width="150" id="#{flex_prefix}#{prop.java_NameBean}" selectedDate="{model.#{prop.java_Name}}" yearNavigationEnabled="true" formatString="DD/MM/YYYY"/>} end |
#flex_writeMXML_Form_item_property_column(pcol) ⇒ Object
500 501 502 |
# File 'lib/ontomde-uml2-flex/Editor.mxml.rb', line 500 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
166 167 168 |
# File 'lib/ontomde-uml2-flex/Editor.mxml.as.rb', line 166 def flex_writeMXML_validate(prop) super end |
#flex_writeMXML_vo_mapping(prop) ⇒ Object
datedenaissance=“JavaMappingCalendar.dfDatedenaissancedfDatedenaissance.selectedDate”
497 498 499 |
# File 'lib/ontomde-uml2-flex/Editor.mxml.rb', line 497 def flex_writeMXML_vo_mapping(prop) prop.write(%{ #{prop.java_Name}="{#{flex_prefix}#{prop.java_NameBean}.selectedDate}"}) end |
#flex_writeVO_getParameter(prop) ⇒ Object
EXAMPLES:
param.datedenaissance = utils.DateUtil.FormatForDatabase(datedenaissance);
248 249 250 |
# File 'lib/ontomde-uml2-flex/ValueObjectAS.rb', line 248 def flex_writeVO_getParameter(prop) prop.write("param.#{prop.java_Name} = utils.DateUtil.FormatForDatabase(#{prop.java_Name});\n") end |
#flex_writeVO_initFromXML_mapping(prop) ⇒ Object
EXAMPLES: datedenaissance = DeserializeXMLUtil.getFormDateAttributValue(source, ‘datedenaissance’);
254 255 256 |
# File 'lib/ontomde-uml2-flex/ValueObjectAS.rb', line 254 def flex_writeVO_initFromXML_mapping(prop) prop.write("#{prop.java_Name} = DeserializeXMLUtil.getFormDateAttributValue(source, '#{prop.java_Name}');\n") end |
#flex_writeVO_initItemFromXML_mapping(prop) ⇒ Object
258 259 260 |
# File 'lib/ontomde-uml2-flex/ValueObjectAS.rb', line 258 def flex_writeVO_initItemFromXML_mapping(prop) prop.write("#{prop.java_Name}=DeserializeXMLUtil.getOptionDateAttributValue(source,'#{prop.java_Name}');\n") end |
#flex_writeVO_vars_datatype(prop) ⇒ Object
242 243 244 |
# File 'lib/ontomde-uml2-flex/ValueObjectAS.rb', line 242 def flex_writeVO_vars_datatype(prop) prop.write("public var #{prop.java_Name}:Date;\n") end |