FileDocCategorySizeDatePackage
AbsSavedState.javaAPI DocAndroid 5.1 API2753Thu Mar 12 22:22:10 GMT 2015android.view

AbsSavedState

public abstract class AbsSavedState extends Object implements android.os.Parcelable
A {@link Parcelable} implementation that should be used by inheritance hierarchies to ensure the state of all classes along the chain is saved.

Fields Summary
public static final AbsSavedState
EMPTY_STATE
private final android.os.Parcelable
mSuperState
public static final Parcelable.Creator
CREATOR
Constructors Summary
private AbsSavedState()
Constructor used to make the EMPTY_STATE singleton


                
      
        mSuperState = null;
    
protected AbsSavedState(android.os.Parcelable superState)
Constructor called by derived classes when creating their SavedState objects

param
superState The state of the superclass of this view

        if (superState == null) {
            throw new IllegalArgumentException("superState must not be null");
        }
        mSuperState = superState != EMPTY_STATE ? superState : null;
    
protected AbsSavedState(android.os.Parcel source)
Constructor used when reading from a parcel. Reads the state of the superclass.

param
source

        // FIXME need class loader
        Parcelable superState = source.readParcelable(null);
         
        mSuperState = superState != null ? superState : EMPTY_STATE;
    
Methods Summary
public intdescribeContents()

        return 0;
    
public final android.os.ParcelablegetSuperState()

        return mSuperState;
    
public voidwriteToParcel(android.os.Parcel dest, int flags)

         dest.writeParcelable(mSuperState, flags);