@Override public void weekClick(String event) { if (!event.isEmpty() && event.contains("w")) { String[] splitted = event.split("w"); if (splitted.length == 2) { try { int yr = Integer.parseInt(splitted[0]); int week = Integer.parseInt(splitted[1]); fireWeekClick(week, yr); } catch (NumberFormatException e) { // NOP } } } }