List of usage examples for com.vaadin.v7.ui AbstractSelect setItemCaption
public void setItemCaption(Object itemId, String caption)
From source file:de.symeda.sormas.ui.person.PersonEditForm.java
License:Open Source License
private void setItemCaptionsForMonths(AbstractSelect months) { months.setItemCaption(1, I18nProperties.getEnumCaption(Month.JANUARY)); months.setItemCaption(2, I18nProperties.getEnumCaption(Month.FEBRUARY)); months.setItemCaption(3, I18nProperties.getEnumCaption(Month.MARCH)); months.setItemCaption(4, I18nProperties.getEnumCaption(Month.APRIL)); months.setItemCaption(5, I18nProperties.getEnumCaption(Month.MAY)); months.setItemCaption(6, I18nProperties.getEnumCaption(Month.JUNE)); months.setItemCaption(7, I18nProperties.getEnumCaption(Month.JULY)); months.setItemCaption(8, I18nProperties.getEnumCaption(Month.AUGUST)); months.setItemCaption(9, I18nProperties.getEnumCaption(Month.SEPTEMBER)); months.setItemCaption(10, I18nProperties.getEnumCaption(Month.OCTOBER)); months.setItemCaption(11, I18nProperties.getEnumCaption(Month.NOVEMBER)); months.setItemCaption(12, I18nProperties.getEnumCaption(Month.DECEMBER)); }