Class: DatatypeMappingURL
- Inherits:
-
DatatypeMappingText
- Object
- DatatypeMapping
- DatatypeMappingText
- DatatypeMappingURL
- Defined in:
- lib/ontomde-java/struts/mappingForJsp.rb,
lib/ontomde-java/java/xsdDatatypeMapping.rb,
lib/ontomde-java/java/javaDatatypeMapping.rb
Instance Method Summary collapse
Methods inherited from DatatypeMappingText
#flex_prefix, #flex_writeMXML_Form_item_property, #flex_writeMXML_Form_item_property_column, #flex_writeMXML_MXvalidator, #flex_writeMXML_vo_mapping, #flex_writeVO_getParameter, #flex_writeVO_initFromXML_mapping, #flex_writeVO_initItemFromXML_mapping, #flex_writeVO_vars_datatype, #getFormCopyTo, #getFormInitFrom, #java_getJavaParse, #java_getJavaToString, #java_getType, #java_getUndefinedValue, #prot_convertToJava, #struts_edit_writeFieldGeneric_DisplayTable_displayTag_column, #xsd_getType
Methods inherited from DatatypeMapping
#addActionFieldMethod!, #crank_validation_annotation, #flex_writeMXML_Form_item_property, #flex_writeMXML_Form_item_property_column, #flex_writeMXML_MXvalidator, #flex_writeMXML_validate, #flex_writeMXML_vo_mapping, #flex_writeVO_getParameter, #flex_writeVO_initFromXML_mapping, #flex_writeVO_initItemFromXML_mapping, #flex_writeVO_vars_datatype, #getFormCopyTo, #getFormInitFrom, #getFormType, #java_Name, #java_getType, #java_getUndefinedValue, #java_helper_addMethods!, #java_helper_customCode, #java_qualifiedName, #jpa_addTypeModificator, #prot_init, #rdf_uri, #struts_edit_writeFieldGeneric_DisplayTable_displayTag_column, #struts_generateHelper, #xsd_getType
Instance Method Details
#getJSP(datatype, field, owner) ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/ontomde-java/struts/mappingForJsp.rb', line 39 def getJSP(datatype,field,owner) # cf: http://www.osix.net/modules/article/?id=586 n=datatype.java_Name.downcase #TODO return <<END <html:text property="#{field.java_Name}" size="40%" maxlength="#{self.maxStringLength}" styleId="#{n}" #{::Muml_DataType::STRUTS_ERROR_STYLE} disabled="true"/> <a onclick="javascript:document.getElementById('#{n}').disabled=false;document.getElementById('#{n}').value='';;"> <img src="res//orange/image/edit.gif" /> </a> <a onclick="javascript:window.open(document.forms[0].#{field.java_Name}.value);return false"> <img src="res//orange/image/go.gif" /> </a> END end |