public static interface

WheelInterfaces.Views.WheelSpinnerInterface

implements WheelInterfaces.Views.WheelViewInterface
com.droidux.pack.wheel.interfaces.WheelInterfaces.Views.WheelSpinnerInterface
Known Indirect Subclasses

Class Overview

Represents a contract to be implemented by WheelSpinner.

Summary

XML Attributes
Attribute Name Related Method Description
dux_faceColor getFrameColor() Specifies the face color of a wheel. 
dux_frameColor getFaceColor() Specifies the frame color of a wheel. 
Public Methods
abstract WheelInterfaces.Adapters.WheelAdapterInterface getAdapter()
Returns the adapter currently associated with this widget.
abstract int getFaceColor()
Gets the color of the frame of the wheel.
abstract int getFrameColor()
Gets the color of the face of the wheel.
abstract View getLeftStaticView()
Gets the static view to be displayed on the left of the selected value, if any.
abstract View getRightStaticView()
Gets the static view to be displayed on the right of the selected value, if any.
abstract void setAdapter(WheelInterfaces.Adapters.WheelAdapterInterface adapter)
The Adapter is used to provide the data which backs this Spinner.
abstract void setColors(int frameColor, int faceColor)
Sets the colors of the wheel.
abstract void setFaceColor(int color)
Sets the color of the wheel.
abstract void setFrameColor(int color)
Sets the frame color of the wheel.
abstract void setLeftStaticView(View view)
Sets a static view to be displayed on the left of the selected value.
abstract void setRightStaticView(View view)
Sets a static view to be displayed on the right of the selected value.
abstract void setVisibleItems(int count)
Sets the maximum number of items visible in this spinner.
[Expand]
Inherited Methods
From interface com.droidux.pack.wheel.interfaces.WheelInterfaces.Views.WheelViewInterface

XML Attributes

dux_faceColor

Since: API Level

Specifies the face color of a wheel.

May be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Related Methods

dux_frameColor

Since: API Level

Specifies the frame color of a wheel.

May be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Related Methods

Public Methods

public abstract WheelInterfaces.Adapters.WheelAdapterInterface getAdapter ()

Since: API Level 2.5

Returns the adapter currently associated with this widget.

Returns
  • The adapter used to provide this view's content.

public abstract int getFaceColor ()

Since: API Level 2.5

Gets the color of the frame of the wheel.

Related XML Attributes
Returns
  • The frame color.

public abstract int getFrameColor ()

Since: API Level 2.5

Gets the color of the face of the wheel.

Related XML Attributes
Returns
  • The face color.

public abstract View getLeftStaticView ()

Since: API Level 2.5

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 View getRightStaticView ()

Since: API Level 2.5

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 void setAdapter (WheelInterfaces.Adapters.WheelAdapterInterface adapter)

Since: API Level 2.5

The Adapter is used to provide the data which backs this Spinner. It also provides methods to transform spinner items based on their position relative to the selected item.

Parameters
adapter The adapter to use for this spinner.

public abstract void setColors (int frameColor, int faceColor)

Since: API Level 2.5

Sets the colors of the wheel. The wheel colors has 2 parts, the frame/edge of the wheel, and the face/main color of the wheel.

Parameters
frameColor The frame color.
faceColor The face color.

public abstract void setFaceColor (int color)

Since: API Level 2.5

Sets the color of the wheel. The face color is the main color of the wheel.

Parameters
color The color of the wheel.

public abstract void setFrameColor (int color)

Since: API Level 2.5

Sets the frame color of the wheel. The frame color is the color of the edges/frame of the wheel.

Parameters
color The frame color.

public abstract void setLeftStaticView (View view)

Since: API Level 2.5

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 setRightStaticView (View view)

Since: API Level 2.5

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 setVisibleItems (int count)

Since: API Level 2.5

Sets the maximum number of items visible in this spinner.

Parameters
count The maximum number of visible items.