public class

ContactEditorView

extends BaseContactEditorView
implements View.OnClickListener
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.LinearLayout
         ↳ com.android.contacts.ui.widget.BaseContactEditorView
           ↳ com.android.contacts.ui.widget.ContactEditorView

Class Overview

Custom view that provides all the editor interaction for a specific Contacts represented through an EntityDelta. Callers can reuse this view and quickly rebuild its contents through #setState(EntityDelta, ContactsSource).

Internal updates are performed against EntityDelta.ValuesDelta so that the source Entity can be swapped out. Any state-based changes, such as adding Data rows or changing ContactsSource.EditType, are performed through EntityModifier to ensure that ContactsSource are enforced.

Summary

[Expand]
Inherited Constants
From class android.widget.LinearLayout
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class com.android.contacts.ui.widget.BaseContactEditorView
From class android.view.View
Public Constructors
ContactEditorView(Context context)
ContactEditorView(Context context, AttributeSet attrs)
Public Methods
long getRawContactId()
void onClick(View v)
void setNameEditorListener(Editor.EditorListener listener)
Sets the Editor.EditorListener on the name field
void setState(EntityDelta state, ContactsSource source, ViewIdGenerator vig)
Set the internal state for this view, given a current EntityDelta state and the ContactsSource that apply to that state.
Protected Methods
void onFinishInflate()
void onRestoreInstanceState(Parcelable state)
Restores the visibility of the secondary field.
Parcelable onSaveInstanceState()
Saves the visibility of the secondary field.
[Expand]
Inherited Methods
From class com.android.contacts.ui.widget.BaseContactEditorView
From class android.widget.LinearLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.View.OnClickListener
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource

Public Constructors

public ContactEditorView (Context context)

public ContactEditorView (Context context, AttributeSet attrs)

Public Methods

public long getRawContactId ()

Returns
  • the RawContact ID that this editor is editing.

public void onClick (View v)

public void setNameEditorListener (Editor.EditorListener listener)

Sets the Editor.EditorListener on the name field

public void setState (EntityDelta state, ContactsSource source, ViewIdGenerator vig)

Set the internal state for this view, given a current EntityDelta state and the ContactsSource that apply to that state.

Protected Methods

protected void onFinishInflate ()

protected void onRestoreInstanceState (Parcelable state)

Restores the visibility of the secondary field.

protected Parcelable onSaveInstanceState ()

Saves the visibility of the secondary field.