FileDocCategorySizeDatePackage
CalendarEntry.javaAPI DocAndroid 1.5 API3648Wed May 06 22:41:16 BST 2009com.google.wireless.gdata.calendar.data

CalendarEntry

public class CalendarEntry extends com.google.wireless.gdata.data.Entry
Entry containing information about a calendar.

Fields Summary
public static final byte
ACCESS_NONE
Access level constant indicating the user has no access to a calendar.
public static final byte
ACCESS_READ
Access level constant indicating the user can read (but not write) to a calendar.
public static final byte
ACCESS_FREEBUSY
Access level constant indicating the user can only view free-busy information for a calendar.
public static final byte
ACCESS_EDITOR
Access level constant indicating the user can edit this calendar.
public static final byte
ACCESS_OWNER
Access level constant indicating the user owns this calendar.
private byte
accessLevel
private String
alternateLink
private String
color
private boolean
hidden
private boolean
selected
private String
timezone
Constructors Summary
public CalendarEntry()
Creates a new, empty calendar entry.

    
               
      
    
Methods Summary
public voidclear()

        super.clear();
        accessLevel = ACCESS_READ;
        alternateLink = null;
        color = null;
        hidden = false;
        selected = true;
        timezone = null;
    
public bytegetAccessLevel()

return
the accessLevel

        return accessLevel;
    
public java.lang.StringgetAlternateLink()

return
the alternateLink

        return alternateLink;
    
public java.lang.StringgetColor()

return
the color

        return color;
    
public java.lang.StringgetTimezone()

return
the timezone

        return timezone;
    
public booleanisHidden()

return
the hidden

        return hidden;
    
public booleanisSelected()

return
the selected

        return selected;
    
public voidsetAccessLevel(byte accessLevel)

param
accessLevel the accessLevel to set

        this.accessLevel = accessLevel;
    
public voidsetAlternateLink(java.lang.String alternateLink)

param
alternateLink the alternateLink to set

        this.alternateLink = alternateLink;
    
public voidsetColor(java.lang.String color)

param
color the color to set

        this.color = color;
    
public voidsetHidden(boolean hidden)

param
hidden the hidden to set

        this.hidden = hidden;
    
public voidsetSelected(boolean selected)

param
selected the selected to set

        this.selected = selected;
    
public voidsetTimezone(java.lang.String timezone)

param
timezone the timezone to set

        this.timezone = timezone;
    
public voidtoString(java.lang.StringBuffer sb)

        sb.append("ACCESS LEVEL: ");
        sb.append(accessLevel);
        sb.append('\n");
        appendIfNotNull(sb, "ALTERNATE LINK", alternateLink);
        appendIfNotNull(sb, "COLOR", color);
        sb.append("HIDDEN: ");
        sb.append(hidden);
        sb.append('\n");
        sb.append("SELECTED: ");
        sb.append(selected);
        sb.append('\n");
        appendIfNotNull(sb, "TIMEZONE", timezone);