public static List<String> getTypes() { List<String> eventTypes = new ArrayList<>(); for (CalendarEventType et: CalendarEventType.values()) { eventTypes.add(et.getType()); } return eventTypes; }
public static List<String> getTypes() { List<String> eventTypes = new ArrayList<>(); for (CalendarEventType et: CalendarEventType.values()) { eventTypes.add(et.getType()); } return eventTypes; }
public static Map<String, String> getLocalizedLegends() { Map<String, String> localizedLegends = new HashMap<>(); for (CalendarEventType et: CalendarEventType.values()) { localizedLegends.put(et.getType(), et.getLocalizedLegend()); } return localizedLegends; }
public static Map<String, String> getIcons() { Map<String, String> icons = new HashMap<>(); for (CalendarEventType et: CalendarEventType.values()) { icons.put(et.getType(), et.getIcon()); } return icons; }
public static String getEventTypeFromImportType(String importType) { for (CalendarEventType et: CalendarEventType.values()) { if (et.getImportType().equals(importType)) { return et.getType(); } } return null; } }
public static Map<String, String> getLocalizedLegends() { Map<String, String> localizedLegends = new HashMap<>(); for (CalendarEventType et: CalendarEventType.values()) { localizedLegends.put(rb.getString((et.getLocalizedLegend())).trim(), et.getLocalizedLegend()); } return localizedLegends; }
public static Map<String, String> getIcons() { Map<String, String> icons = new HashMap<>(); for (CalendarEventType et: CalendarEventType.values()) { icons.put(rb.getString(et.getLocalizedLegend()).trim(), et.getIcon()); } return icons; }
public static String getEventTypeFromImportType(String importType) { for (CalendarEventType et: CalendarEventType.values()) { if (et.getImportType().equals(importType)) { return et.getType(); } } return ACTIVITY.getType(); } }