public final class MenuItem 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 Mirror API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
MenuItem() |
| Modifier and Type | Method and Description |
|---|---|
MenuItem |
clone() |
String |
getAction()
Controls the behavior when the user picks the menu option.
|
String |
getId()
The ID for this menu item.
|
String |
getPayload()
A generic payload whose meaning changes depending on this MenuItem's action.
|
Boolean |
getRemoveWhenSelected()
If set to true on a CUSTOM menu item, that item will be removed from the menu after it is
selected.
|
List<MenuValue> |
getValues()
For CUSTOM items, a list of values controlling the appearance of the menu item in each of its
states.
|
MenuItem |
set(String fieldName,
Object value) |
MenuItem |
setAction(String action)
Controls the behavior when the user picks the menu option.
|
MenuItem |
setId(String id)
The ID for this menu item.
|
MenuItem |
setPayload(String payload)
A generic payload whose meaning changes depending on this MenuItem's action.
|
MenuItem |
setRemoveWhenSelected(Boolean removeWhenSelected)
If set to true on a CUSTOM menu item, that item will be removed from the menu after it is
selected.
|
MenuItem |
setValues(List<MenuValue> values)
For CUSTOM items, a list of values controlling the appearance of the menu item in each of its
states.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic String getAction()
null for nonepublic MenuItem setAction(String action)
action - action or null for nonepublic String getId()
null for nonepublic MenuItem setId(String id)
id - id or null for nonepublic String getPayload()
null for nonepublic MenuItem setPayload(String payload)
payload - payload or null for nonepublic Boolean getRemoveWhenSelected()
null for nonepublic MenuItem setRemoveWhenSelected(Boolean removeWhenSelected)
removeWhenSelected - removeWhenSelected or null for nonepublic List<MenuValue> getValues()
null for nonepublic MenuItem setValues(List<MenuValue> values)
values - values or null for nonepublic MenuItem set(String fieldName, Object value)
set in class GenericJsonpublic MenuItem clone()
clone in class GenericJson