com.todoroo.astrid.api
Class TaskDecoration

java.lang.Object
  extended by com.todoroo.astrid.api.TaskDecoration
All Implemented Interfaces:
android.os.Parcelable

public final class TaskDecoration
extends java.lang.Object
implements android.os.Parcelable

Represents a line of text displayed in the Task List

Author:
Tim Su

Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
android.os.Parcelable.Creator<T>
 
Field Summary
 int color
          Decorated task background color.
static android.os.Parcelable.Creator<TaskDecoration> CREATOR
          Parcelable creator
 android.widget.RemoteViews decoration
          RemoteViews.RemoteView decoration
 int position
          Decoration position
static int POSITION_LEFT
          Place decoration between completion box and task title
static int POSITION_RIGHT
          Place decoration between task title and importance bar
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
TaskDecoration(android.widget.RemoteViews decoration, int position, int color)
          Creates a TaskDetail object
 
Method Summary
 int describeContents()
          
 void writeToParcel(android.os.Parcel dest, int flags)
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POSITION_LEFT

public static final int POSITION_LEFT
Place decoration between completion box and task title

See Also:
Constant Field Values

POSITION_RIGHT

public static final int POSITION_RIGHT
Place decoration between task title and importance bar

See Also:
Constant Field Values

decoration

public android.widget.RemoteViews decoration
RemoteViews.RemoteView decoration


position

public int position
Decoration position


color

public int color
Decorated task background color. 0 is default


CREATOR

public static final android.os.Parcelable.Creator<TaskDecoration> CREATOR
Parcelable creator

Constructor Detail

TaskDecoration

public TaskDecoration(android.widget.RemoteViews decoration,
                      int position,
                      int color)
Creates a TaskDetail object

Parameters:
text - text to display
color - color to use for text. Use 0 for default color
Method Detail

describeContents

public int describeContents()

Specified by:
describeContents in interface android.os.Parcelable

writeToParcel

public void writeToParcel(android.os.Parcel dest,
                          int flags)

Specified by:
writeToParcel in interface android.os.Parcelable