BasicFieldDropdownView

public class BasicFieldDropdownView extends Spinner
implements FieldView

Renders a dropdown field as part of a Block.

Inherited Constant Summary

Field Summary

protected FieldDropdown mDropdownField
protected int mItemDropdownLayout
protected int mItemLayout

Inherited Field Summary

Public Constructor Summary

BasicFieldDropdownView(Context context)
Constructs a new BasicFieldDropdownView.
BasicFieldDropdownView(Context context, AttributeSet attrs)
BasicFieldDropdownView(Context context, AttributeSet attrs, int defStyleAttr)

Public Method Summary

Field
void
setField(Field field)
Sets the Field model for this view.
void
setSelection(int position)
void
unlinkField()
Disconnect the model from this view.

Inherited Method Summary

Fields

protected FieldDropdown mDropdownField

protected int mItemDropdownLayout

protected int mItemLayout

Public Constructors

public BasicFieldDropdownView (Context context)

Constructs a new BasicFieldDropdownView.

Parameters
context The application's context.

public BasicFieldDropdownView (Context context, AttributeSet attrs)

Parameters
context
attrs

public BasicFieldDropdownView (Context context, AttributeSet attrs, int defStyleAttr)

Parameters
context
attrs
defStyleAttr

Public Methods

public Field getField ()

public void setField (Field field)

Sets the Field model for this view. If null the current field will be disconnected from the view if one is set. The field must be of the appropriate type for the specific view implementation or a ClassCastException may be thrown.

Parameters
field The field backing this view.

public void setSelection (int position)

Parameters
position

public void unlinkField ()

Disconnect the model from this view.