Class: JavaMappingTimeStamp
- Inherits:
-
JavaMapping
- Object
- JavaMapping
- JavaMappingTimeStamp
- 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
<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
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
public var datedenaissance:Date;.
Methods inherited from JavaMapping
Instance Method Details
#flex_prefix ⇒ Object
466 467 468 |
# File 'lib/ontomde-uml2-flex/Editor.mxml.rb', line 466 def flex_prefix return "df" end |
#flex_writeMXML_Form_item_property(prop) ⇒ Object
<mx:DateField width=“150” id=“dfDatedenaissance” selectedDate=“JavaMappingTimeStamp.modelmodel.datedenaissance” yearNavigationEnabled=“true” formatString=“DD/MM/YYYY”/>
471 472 473 474 |
# File 'lib/ontomde-uml2-flex/Editor.mxml.rb', line 471 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"/>} prop.write %{<components:mon_timestamp id="#{flex_prefix}#{prop.java_NameBean}" is24Hour="true" backgroundColor="#000000" backgroundAlpha="0.05" borderColor="#00FF00" borderThickness="1" borderStyle="solid" cornerRadius="5" showDate="true" showTimes="true" showSeconds="true" timeValue="{model.#{prop.java_Name}}" />} end |
#flex_writeMXML_Form_item_property_column(pcol) ⇒ Object
481 482 483 |
# File 'lib/ontomde-uml2-flex/Editor.mxml.rb', line 481 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
161 162 163 |
# File 'lib/ontomde-uml2-flex/Editor.mxml.as.rb', line 161 def flex_writeMXML_validate(prop) super end |
#flex_writeMXML_vo_mapping(prop) ⇒ Object
datedenaissance=“JavaMappingTimeStamp.dfDatedenaissancedfDatedenaissance.selectedDate”
477 478 479 480 |
# File 'lib/ontomde-uml2-flex/Editor.mxml.rb', line 477 def flex_writeMXML_vo_mapping(prop) #prop.write(%{ #{prop.java_Name}="{#{flex_prefix}#{prop.java_NameBean}.selectedDate}"}) prop.write(%{ #{prop.java_Name}="{#{flex_prefix}#{prop.java_NameBean}.timeValue}"}) end |
#flex_writeVO_getParameter(prop) ⇒ Object
param.datedenaissance = utils.DateUtil.FormatForDatabase(datedenaissance);
225 226 227 |
# File 'lib/ontomde-uml2-flex/ValueObjectAS.rb', line 225 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’);
231 232 233 |
# File 'lib/ontomde-uml2-flex/ValueObjectAS.rb', line 231 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
234 235 236 |
# File 'lib/ontomde-uml2-flex/ValueObjectAS.rb', line 234 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
public var datedenaissance:Date;
220 221 222 |
# File 'lib/ontomde-uml2-flex/ValueObjectAS.rb', line 220 def flex_writeVO_vars_datatype(prop) prop.write("public var #{prop.java_Name}:Date;\n") end |