Package org.apache.pivot.wtk.content

Examples of org.apache.pivot.wtk.content.CalendarDateSpinnerData.indexOf()


*/
public class DateBindMapping implements Spinner.ItemBindMapping {
    @Override
    public int indexOf(List<?> spinnerData, Object value) {
        CalendarDateSpinnerData calendarDateSpinnerData = (CalendarDateSpinnerData)spinnerData;
        return calendarDateSpinnerData.indexOf(CalendarDate.decode((String)value));
    }

    @Override
    public Object get(List<?> spinnerData, int index) {
        return spinnerData.get(index).toString();
View Full Code Here


* Maps string values to calendar dates and vice versa.
*/
public class DateBindMapping implements Spinner.ItemBindMapping {
    public int indexOf(List<?> spinnerData, Object value) {
        CalendarDateSpinnerData calendarDateSpinnerData = (CalendarDateSpinnerData)spinnerData;
        return calendarDateSpinnerData.indexOf(CalendarDate.decode((String)value));
    }

    public Object get(List<?> spinnerData, int index) {
        return spinnerData.get(index).toString();
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.