com.googlecode.androidannotations.api.sharedpreferences
Class AbstractPrefField

java.lang.Object
  extended by com.googlecode.androidannotations.api.sharedpreferences.AbstractPrefField
Direct Known Subclasses:
BooleanPrefField, FloatPrefField, IntPrefField, LongPrefField, StringPrefField

public abstract class AbstractPrefField
extends java.lang.Object


Field Summary
protected  java.lang.String key
           
protected  android.content.SharedPreferences sharedPreferences
           
 
Constructor Summary
AbstractPrefField(android.content.SharedPreferences sharedPreferences, java.lang.String key)
           
 
Method Summary
protected  void apply(android.content.SharedPreferences.Editor editor)
           
protected  android.content.SharedPreferences.Editor edit()
           
 boolean exists()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sharedPreferences

protected final android.content.SharedPreferences sharedPreferences

key

protected final java.lang.String key
Constructor Detail

AbstractPrefField

public AbstractPrefField(android.content.SharedPreferences sharedPreferences,
                         java.lang.String key)
Method Detail

exists

public final boolean exists()

remove

public final void remove()

edit

protected android.content.SharedPreferences.Editor edit()

apply

protected final void apply(android.content.SharedPreferences.Editor editor)


Copyright © 2010-2012. All Rights Reserved.