package com.horcu.apps.balln.widget.floatinglabel.instantpicker;

import android.content.Context;
import android.util.AttributeSet;


import com.horcu.apps.balln.R;

import java.text.DateFormat;

/**
 * A widget to pick one or more items from a list
 * <p/>
 * Created by Vincent Mimoun-Prat @ MarvinLabs, 28/08/2014.
 */
public class FloatingLabelDatePicker<DateInstantT extends DateInstant> extends FloatingLabelInstantPicker<DateInstantT> {

    // =============================================================================================
    // Lifecycle
    // ==

    public FloatingLabelDatePicker(Context context) {
        super(context);
    }

    public FloatingLabelDatePicker(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public FloatingLabelDatePicker(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    // =============================================================================================
    // Overridden methods
    // ==


    @Override
    protected int getDefaultDrawableRightResId() {
        return R.drawable.ic_datepicker;
    }

    @Override
    protected InstantPrinter<DateInstantT> getDefaultInstantPrinter() {
        return new JavaDatePrinter<DateInstantT>(DateFormat.MEDIUM);
    }
}
