com.hipipal.texteditor.common
Class WidgetPrefs

java.lang.Object
  extended by com.hipipal.texteditor.common.WidgetPrefs

public class WidgetPrefs
extends java.lang.Object


Field Summary
 boolean mReadOnly
           
 java.lang.String mTargetPath
           
static java.lang.String WIDGET_PREFERENCES
           
static java.lang.String WIDGET_PRESENT_KEY
           
static java.lang.String WIDGET_READ_ONLY
           
static java.lang.String WIDGET_TARGET_PATH
           
 
Constructor Summary
WidgetPrefs()
           
 
Method Summary
static void delete(android.content.Context context, int widgetId)
          Delete the data associated with a widget ID
 boolean load(android.content.Context context, int widgetId)
          Loads the widget prefs from the shared preferences
 void store(android.content.Context context, int widgetId)
          Store this widget prefs in the shared preferences
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WIDGET_PREFERENCES

public static final java.lang.String WIDGET_PREFERENCES
See Also:
Constant Field Values

WIDGET_TARGET_PATH

public static final java.lang.String WIDGET_TARGET_PATH
See Also:
Constant Field Values

WIDGET_READ_ONLY

public static final java.lang.String WIDGET_READ_ONLY
See Also:
Constant Field Values

WIDGET_PRESENT_KEY

public static final java.lang.String WIDGET_PRESENT_KEY
See Also:
Constant Field Values

mTargetPath

public java.lang.String mTargetPath

mReadOnly

public boolean mReadOnly
Constructor Detail

WidgetPrefs

public WidgetPrefs()
Method Detail

load

public boolean load(android.content.Context context,
                    int widgetId)
Loads the widget prefs from the shared preferences

Parameters:
context - the current context
widgetId - this widget id
Returns:
if the widget is still present

store

public void store(android.content.Context context,
                  int widgetId)
Store this widget prefs in the shared preferences

Parameters:
context - the current context
widgetId - this widget id

delete

public static void delete(android.content.Context context,
                          int widgetId)
Delete the data associated with a widget ID

Parameters:
context - the current context
widgetId - the id to delete