Build 1.0_r1(from source)

android.view
Class AbsSavedState

java.lang.Object
  extended by android.view.AbsSavedState
All Implemented Interfaces:
Parcelable
Direct Known Subclasses:
Preference.BaseSavedState, View.BaseSavedState

public abstract class AbsSavedState
extends Object
implements Parcelable

A Parcelable implementation that should be used by inheritance hierarchies to ensure the state of all classes along the chain is saved.


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.Creator<T>
 
Field Summary
static Parcelable.Creator<AbsSavedState> CREATOR
           
static AbsSavedState EMPTY_STATE
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
protected AbsSavedState(Parcel source)
          Constructor used when reading from a parcel.
protected AbsSavedState(Parcelable superState)
          Constructor called by derived classes when creating their SavedState objects
 
Method Summary
 int describeContents()
          Describe the kinds of special objects contained in this Parcelable's marshalled representation.
 Parcelable getSuperState()
           
 void writeToParcel(Parcel dest, int flags)
          Flatten this object in to a Parcel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_STATE

public static final AbsSavedState EMPTY_STATE

CREATOR

public static final Parcelable.Creator<AbsSavedState> CREATOR
Constructor Detail

AbsSavedState

protected AbsSavedState(Parcelable superState)
Constructor called by derived classes when creating their SavedState objects

Parameters:
superState - The state of the superclass of this view

AbsSavedState

protected AbsSavedState(Parcel source)
Constructor used when reading from a parcel. Reads the state of the superclass.

Parameters:
source -
Method Detail

getSuperState

public final Parcelable getSuperState()

describeContents

public int describeContents()
Description copied from interface: Parcelable
Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Specified by:
describeContents in interface Parcelable
Returns:
a bitmask indicating the set of special object types marshalled by the Parcelable.

writeToParcel

public void writeToParcel(Parcel dest,
                          int flags)
Description copied from interface: Parcelable
Flatten this object in to a Parcel.

Specified by:
writeToParcel in interface Parcelable
Parameters:
dest - The Parcel in which the object should be written.
flags - Additional flags about how the object should be written. May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature