Code example for CustomNumberEditor

0
		wdb.registerCustomEditor(ReportDefinition.class, new ReportDefinitionEditor());
		wdb.registerCustomEditor(ReportSchemaXml.class, new ReportSchemaXmlEditor());
		wdb.registerCustomEditor(Role.class, new RoleEditor());
		wdb.registerCustomEditor(User.class, new UserEditor());
		wdb.registerCustomEditor(java.lang.Integer.class, new CustomNumberEditor(java.lang.Integer.class, NumberFormat
		        .getInstance(Context.getLocale()), true));
		wdb.registerCustomEditor(Date.class, new DateOrDatetimeEditor());
		wdb.registerCustomEditor(PatientIdentifierType.class, new PatientIdentifierTypeEditor());
		wdb.registerCustomEditor(ConceptMapType.class, new ConceptMapTypeEditor());
		wdb.registerCustomEditor(ConceptSource.class, new ConceptSourceEditor());
		wdb.registerCustomEditor(ConceptReferenceTerm.class, new ConceptReferenceTermEditor());
		wdb.registerCustomEditor(VisitType.class, new VisitTypeEditor());
		wdb.registerCustomEditor(Visit.class, new VisitEditor());
		 
		// can't really do this because PropertyEditors are not told what type of class they are changing :-( 
		//wdb.registerCustomEditor(OpenmrsObject.class, new OpenmrsObjectByUuidEditor()); 
	} 
	 
} 
Contextual code suggestions in your IDE  Get Codota for Java