Package org.openmrs.propertyeditor

Examples of org.openmrs.propertyeditor.EncounterTypeEditor


 
  protected final Log log = LogFactory.getLog(getClass());
 
  @InitBinder
  public void initBinder(WebDataBinder binder) {
    binder.registerCustomEditor(EncounterType.class, new EncounterTypeEditor());
  }
View Full Code Here


    protected final Log log = LogFactory.getLog(getClass());
 

    @InitBinder
  public void initBinder(WebDataBinder binder) {
      binder.registerCustomEditor(EncounterType.class, new EncounterTypeEditor());
        binder.registerCustomEditor(java.util.Date.class,
                new CustomDateEditor(SimpleDateFormat.getDateInstance(SimpleDateFormat.SHORT, Context.getLocale()), true));
  }
View Full Code Here

    } else if (Person.class.isAssignableFrom(clazz)) {
      PersonEditor ed = new PersonEditor();
      ed.setAsText(val);
      return ed.getValue();
    } else if (EncounterType.class.isAssignableFrom(clazz)) {
      EncounterTypeEditor ed = new EncounterTypeEditor();
      ed.setAsText(val);
      return ed.getValue();
    } else {
      return val;
    }
  }
View Full Code Here

TOP

Related Classes of org.openmrs.propertyeditor.EncounterTypeEditor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.