1bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio/* 2bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio * Copyright (C) 2014 The Android Open Source Project 3bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio * 4bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio * Licensed under the Apache License, Version 2.0 (the "License"); 5bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio * you may not use this file except in compliance with the License. 6bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio * You may obtain a copy of the License at 7bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio * 8bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio * http://www.apache.org/licenses/LICENSE-2.0 9bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio * 10bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio * Unless required by applicable law or agreed to in writing, software 11bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio * distributed under the License is distributed on an "AS IS" BASIS, 12bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio * See the License for the specific language governing permissions and 14bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio * limitations under the License. 15bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio */ 16bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio 17bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Megliopackage android.widget; 18bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio 19bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglioimport java.util.Calendar; 20bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio 21bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio/** 22bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio * Controller class to communicate among the various components of the date picker dialog. 23bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio * 24bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio * @hide 25bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio */ 26bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Megliointerface DatePickerController { 27bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio 28bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio void onYearSelected(int year); 29bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio 30bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio void registerOnDateChangedListener(OnDateChangedListener listener); 31bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio 32bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio Calendar getSelectedDay(); 33bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio 34bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio void tryVibrate(); 35bd9152f6ee156ee473f05f6f05f238605996fca4Fabrice Di Meglio} 36