Since: API Level 2.5
public static interface

PickerInterfaces.Views.DateTimePickerInterface

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

Class Overview

Represents the contracts to be implemented by datetime picker view.

See Also

Summary

Public Methods
abstract View getLeftStaticView()
Gets the static view to be displayed on the left of the selected value, if any.
abstract PickerInterfaces.Listeners.OnDateTimeChangedListener getOnDateTimeChangedListener()
Gets the datetime 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 Date getSelectedDate()
Gets the selected date.
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 setOnDateTimeChangedListener(PickerInterfaces.Listeners.OnDateTimeChangedListener listener)
Register a listener to be notified when the selected datetime is changed.
abstract void setRightStaticView(View view)
Sets a static view to be displayed on the right of the selected value.
abstract void setSelectedDate(Date date, boolean animate)
Sets the selected date to the specified date with the option to animate the change.
abstract void setSelectedDate(Date date)
Set the selected date to the specified date.

Public Methods

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 PickerInterfaces.Listeners.OnDateTimeChangedListener getOnDateTimeChangedListener ()

Since: API Level 2.5

Gets the datetime change listener registered for this view.

Returns
  • The listener, or null if one is not registered.

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 Date getSelectedDate ()

Since: API Level 2.5

Gets the selected date.

Returns
  • The selected date.

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 setOnDateTimeChangedListener (PickerInterfaces.Listeners.OnDateTimeChangedListener listener)

Since: API Level 2.5

Register a listener to be notified when the selected datetime 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 setSelectedDate (Date date, boolean animate)

Since: API Level 2.5

Sets the selected date to the specified date with the option to animate the change.

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

public abstract void setSelectedDate (Date date)

Since: API Level 2.5

Set the selected date to the specified date.

Parameters
date The selected date.