BasicFieldCheckboxView

public class BasicFieldCheckboxView extends CheckBox
implements FieldView

Renders a checkbox as part of a BlockView.

Inherited Constant Summary

Field Summary

protected FieldCheckbox mCheckboxField
protected final Field.Observer mFieldObserver

Inherited Field Summary

Public Constructor Summary

BasicFieldCheckboxView(Context context)
BasicFieldCheckboxView(Context context, AttributeSet attrs)
BasicFieldCheckboxView(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 FieldCheckbox mCheckboxField

protected final Field.Observer mFieldObserver

Public Constructors

public BasicFieldCheckboxView (Context context)

Parameters
context

public BasicFieldCheckboxView (Context context, AttributeSet attrs)

Parameters
context
attrs

public BasicFieldCheckboxView (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.