Since: API Level 2.5
public static interface

PickerInterfaces.Views.DatePickerInterface

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

Class Overview

Represents the contracts to be implemented by date picker view.

See Also

Summary

Public Methods
abstract int getDayOfMonth()
Gets the selected day of month.
abstract View getLeftStaticView()
Gets the static view to be displayed on the left of the selected value, if any.
abstract int getMonth()
Gets the selected month.
abstract PickerInterfaces.Listeners.OnDateChangedListener getOnDateChangedListener()
Gets the date 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 int getYear()
Gets the selected year.
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 setOnDateChangedListener(PickerInterfaces.Listeners.OnDateChangedListener listener)
Register a listener to be notified when the date is changed.
abstract void setRightStaticView(View view)
Sets a static view to be displayed on the right of the selected value.
abstract void updateDate(int year, int month, int day)
Updates the date to the specified values.

Public Methods

public abstract int getDayOfMonth ()

Since: API Level 2.5

Gets the selected day of month.

Returns
  • The selected day of month.
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 getMonth ()

Since: API Level 2.5

Gets the selected month.

Returns
  • The selected month.
See Also

public abstract PickerInterfaces.Listeners.OnDateChangedListener getOnDateChangedListener ()

Since: API Level 2.5

Gets the date 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 int getYear ()

Since: API Level 2.5

Gets the selected year.

Returns
  • The selected year.
See 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 setOnDateChangedListener (PickerInterfaces.Listeners.OnDateChangedListener listener)

Since: API Level 2.5

Register a listener to be notified when the date 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 updateDate (int year, int month, int day)

Since: API Level 2.5

Updates the date to the specified values.

Parameters
year The selected year.
month The selected month.
day The selected day.