public final class ConditionalFormatRule extends GenericJson
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 Google Sheets API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
ConditionalFormatRule() |
| Modifier and Type | Method and Description |
|---|---|
ConditionalFormatRule |
clone() |
BooleanRule |
getBooleanRule()
The formatting is either "on" or "off" according to the rule.
|
GradientRule |
getGradientRule()
The formatting will vary based on the gradients in the rule.
|
List<GridRange> |
getRanges()
The ranges that are formatted if the condition is true.
|
ConditionalFormatRule |
set(String fieldName,
Object value) |
ConditionalFormatRule |
setBooleanRule(BooleanRule booleanRule)
The formatting is either "on" or "off" according to the rule.
|
ConditionalFormatRule |
setGradientRule(GradientRule gradientRule)
The formatting will vary based on the gradients in the rule.
|
ConditionalFormatRule |
setRanges(List<GridRange> ranges)
The ranges that are formatted if the condition is true.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic BooleanRule getBooleanRule()
null for nonepublic ConditionalFormatRule setBooleanRule(BooleanRule booleanRule)
booleanRule - booleanRule or null for nonepublic GradientRule getGradientRule()
null for nonepublic ConditionalFormatRule setGradientRule(GradientRule gradientRule)
gradientRule - gradientRule or null for nonepublic List<GridRange> getRanges()
null for nonepublic ConditionalFormatRule setRanges(List<GridRange> ranges)
ranges - ranges or null for nonepublic ConditionalFormatRule set(String fieldName, Object value)
set in class GenericJsonpublic ConditionalFormatRule clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.