List of usage examples for org.joda.time YearMonth YearMonth
public YearMonth(Object instant)
From source file:YearMonthTypeAdapter.java
License:Apache License
@Override public YearMonth read(JsonReader in) throws IOException { if (in.peek() == JsonToken.NULL) { in.nextNull();/*from ww w . j a va2 s. c o m*/ return null; } return new YearMonth(in.nextString()); }
From source file:br.com.tecsinapse.exporter.converter.YearMonthTableCellConverter.java
License:LGPL
@Override public YearMonth apply(Date input) { return new YearMonth(input); }
From source file:org.vaadin.addons.tuningdatefield.TuningDateField.java
License:Apache License
/** * Called when the calendar is open on client-side *///from www . ja v a2 s. c om private void onCalendarOpen() { calendarResolution = CalendarResolution.DAY; LocalDate currentValue = getLocalDate(); if (currentValue != null) { yearMonthDisplayed = new YearMonth(currentValue); } else if (yearMonthDisplayed == null) { yearMonthDisplayed = YearMonth.now(); } fireEvent(new CalendarOpenEvent(this, yearMonthDisplayed)); calendarOpen = true; markAsDirty(); }