Class: JavaMappingCalendar

Inherits:
JavaMapping show all
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

Methods inherited from JavaMapping

#flex_writeMXML_MXvalidator

Instance Method Details

#flex_prefixObject



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