All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.robobinding.widget.timepicker.TimeChangedEvent Maven / Gradle / Ivy

The newest version!
package org.robobinding.widget.timepicker;
import android.widget.TimePicker;

import org.robobinding.widget.view.AbstractViewEvent;

/**
 *
 * @since 1.0
 * @version $Revision: 1.0 $
 * @author Joachim Hill-Grannec
 */
public class TimeChangedEvent extends AbstractViewEvent {
    private int currentHour;
    private int currentMinute;

    public TimeChangedEvent(TimePicker view, int currentHour, int currentMinute) {
        super(view);
        this.currentHour = currentHour;
        this.currentMinute = currentMinute;
    }

    @Override
    public TimePicker getView() {
        return (TimePicker) super.getView();
    }

    public int getCurrentHour() {
        return currentHour;
    }
    public int getCurrentMinute() {
        return currentMinute;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy