BasicFieldInputView

public class BasicFieldInputView extends EditText
implements FieldView

Renders editable text as part of a InputView.

Inherited Constant Summary

Field Summary

protected FieldInput mInputField

Inherited Field Summary

Public Constructor Summary

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

Public Method Summary

boolean
Field
boolean
onDragEvent(DragEvent event)
Override onDragEvent to stop blocks from being dropped into text fields.
boolean
void
setField(Field field)
Sets the Field model for this view.
void
unlinkField()
Disconnect the model from this view.

Protected Method Summary

void

Inherited Method Summary

Fields

protected FieldInput mInputField

Public Constructors

public BasicFieldInputView (Context context)

Parameters
context

public BasicFieldInputView (Context context, AttributeSet attrs)

Parameters
context
attrs

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

Parameters
context
attrs
defStyleAttr

Public Methods

public boolean callOnClick ()

public Field getField ()

public boolean onDragEvent (DragEvent event)

Override onDragEvent to stop blocks from being dropped into text fields. If the dragged information is anything but a block, let the standard EditText drag interface take care of it.

Parameters
event The DragEvent to respond to.
Returns
  • False if the dragged data is a block, whatever a normal EditText would return otherwise.

public boolean performClick ()

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.

Protected Methods

protected void onFinishInflate ()