Calendar API v3 (revision 41)
com.google.api.services.calendar.model
Class ColorDefinition
java.lang.Object
java.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
com.google.api.client.json.GenericJson
com.google.api.services.calendar.model.ColorDefinition
- All Implemented Interfaces:
- Cloneable, Map<String,Object>
public final class ColorDefinition
- extends GenericJson
Model definition for ColorDefinition.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Calendar API. For a detailed explanation see:
http://code.google.com/p/google-api-java-client/wiki/Json
- Author:
- Google, Inc.
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
ColorDefinition
public ColorDefinition()
getBackground
public String getBackground()
- The background color associated with this color definition.
- Returns:
- value or
null for none
setBackground
public ColorDefinition setBackground(String background)
- The background color associated with this color definition.
- Parameters:
background - background or null for none
getForeground
public String getForeground()
- The foreground color that can be used to write on top of a background with 'background' color.
- Returns:
- value or
null for none
setForeground
public ColorDefinition setForeground(String foreground)
- The foreground color that can be used to write on top of a background with 'background' color.
- Parameters:
foreground - foreground or null for none
set
public ColorDefinition set(String fieldName,
Object value)
- Overrides:
set in class GenericJson
clone
public ColorDefinition clone()
- Overrides:
clone in class GenericJson