Since: API Level 2.5
public static interface

PickerInterfaces.Views.TimePickerInterface

com.droidux.pack.wheel.interfaces.PickerInterfaces.Views.TimePickerInterface
Known Indirect Subclasses

Class Overview

Represents the contracts to be implemented by time picker view.

See Also

Summary

Public Methods
abstract int getHour()
Gets the selected hour of the day.
abstract View getLeftStaticView()
Gets the static view to be displayed on the left of the selected value, if any.
abstract int getMinute()
Gets the selected minute.
abstract PickerInterfaces.Listeners.OnTimeChangedListener getOnTimeChangedListener()
Gets the time change listener registered for this view.
abstract View getRightStaticView()
Gets the static view to be displayed on the right of the selected value, if any.
abstract boolean is24HourMode()
Checks whether the time displayed is 24-hour mode.
abstract void setCallbackDuringFling(boolean shouldCallback)
Whether or not to callback on any -changed listener while the items are being flinged.
abstract void setLeftStaticView(View view)
Sets a static view to be displayed on the left of the selected value.
abstract void setOnTimeChangedListener(PickerInterfaces.Listeners.OnTimeChangedListener listener)
Registers the listener to be notified when the time is changed.
abstract void setRightStaticView(View view)
Sets a static view to be displayed on the right of the selected value.
abstract void updateTime(int hour, int minute, boolean animated)
Update the time to the specified values with option to animate the change.
abstract void updateTime(int hour, int minute)
Update the time to the specified values.

Public Methods

public abstract int getHour ()

Since: API Level 2.5

Gets the selected hour of the day.

Returns
  • The selected hour. Between 0-23 inclusive.
See Also

public abstract View getLeftStaticView ()

Since: API Level

Gets the static view to be displayed on the left of the selected value, if any.

Returns
  • The left static view, or null.

public abstract int getMinute ()

Since: API Level 2.5

Gets the selected minute.

Returns
  • The selected minute.
See Also

public abstract PickerInterfaces.Listeners.OnTimeChangedListener getOnTimeChangedListener ()

Since: API Level 2.5

Gets the time change listener registered for this view.

Returns
  • The listener.

public abstract View getRightStaticView ()

Since: API Level

Gets the static view to be displayed on the right of the selected value, if any.

Returns
  • The right static view, or null.

public abstract boolean is24HourMode ()

Since: API Level 2.5

Checks whether the time displayed is 24-hour mode.

Returns
  • If true, only the hour and minute spinner will be displayed. Otherwise, the AmPm spinner will be shown also.

public abstract void setCallbackDuringFling (boolean shouldCallback)

Since: API Level

Whether or not to callback on any -changed listener while the items are being flinged. If false only the final selected item will cause the callback. If true, all items between the first and the final will cause callbacks.

Parameters
shouldCallback Whether or not to callback on the listener while the items are being flinged.

public abstract void setLeftStaticView (View view)

Since: API Level

Sets a static view to be displayed on the left of the selected value. The static view can be used, for example, to display label, reset button, etc.

Parameters
view The view to be displayed on the left of the selected value. Or null.

public abstract void setOnTimeChangedListener (PickerInterfaces.Listeners.OnTimeChangedListener listener)

Since: API Level 2.5

Registers the listener to be notified when the time is changed.

Parameters
listener The listener to be notified.

public abstract void setRightStaticView (View view)

Since: API Level

Sets a static view to be displayed on the right of the selected value. The static view can be used, for example, to display label, reset button, etc.

Parameters
view The view to be displayed on the right of the selected value. Or null.

public abstract void updateTime (int hour, int minute, boolean animated)

Since: API Level 2.5

Update the time to the specified values with option to animate the change.

Parameters
hour The selected hour.
minute The selected minute.
animated If true, the change will be animated (for example by spinning the hour wheel).

public abstract void updateTime (int hour, int minute)

Since: API Level 2.5

Update the time to the specified values.

Parameters
hour The selected hour.
minute The selected minute.