Calendar API v3 (revision 30)
com.google.api.services.calendar.model
Class ColorDefinition
java.lang.Object
java.util.AbstractMap<java.lang.String,java.lang.Object>
com.google.api.client.util.GenericData
com.google.api.client.json.GenericJson
com.google.api.services.calendar.model.ColorDefinition
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.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
Upgrade warning: starting with version 1.12 getResponseHeaders()
is removed, instead use
JsonHttpRequest.getLastResponseHeaders()
- Author:
- Google, Inc.
Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Method Summary |
java.lang.String |
getBackground()
The background color associated with this color definition. |
java.lang.String |
getForeground()
The foreground color that can be used to write on top of a background with 'background' color. |
ColorDefinition |
setBackground(java.lang.String background)
The background color associated with this color definition. |
ColorDefinition |
setForeground(java.lang.String foreground)
The foreground color that can be used to write on top of a background with 'background' color. |
Methods inherited from class java.util.AbstractMap |
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
ColorDefinition
public ColorDefinition()
getBackground
public java.lang.String getBackground()
- The background color associated with this color definition.
The value returned may be
null
.
setBackground
public ColorDefinition setBackground(java.lang.String background)
- The background color associated with this color definition.
The value set may be
null
.
getForeground
public java.lang.String getForeground()
- The foreground color that can be used to write on top of a background with 'background' color.
The value returned may be
null
.
setForeground
public ColorDefinition setForeground(java.lang.String foreground)
- The foreground color that can be used to write on top of a background with 'background' color.
The value set may be
null
.