BasicFieldDateView

public class BasicFieldDateView extends TextView
implements FieldView

Renders a date and a date picker as part of a Block.

Inherited Constant Summary

Field Summary

protected FieldDate mDateField
protected Field.Observer mFieldObserver

Inherited Field Summary

Public Constructor Summary

BasicFieldDateView(Context context)
BasicFieldDateView(Context context, AttributeSet attrs)
BasicFieldDateView(Context context, AttributeSet attrs, int defStyleAttr)

Public Method Summary

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

Inherited Method Summary

Fields

protected FieldDate mDateField

protected Field.Observer mFieldObserver

Public Constructors

public BasicFieldDateView (Context context)

Parameters
context

public BasicFieldDateView (Context context, AttributeSet attrs)

Parameters
context
attrs

public BasicFieldDateView (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 unlinkField ()

Disconnect the model from this view.