|
SAP NetWeaver 7.31 Enterprise Portal (SP 16) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.portal.navigation.json.list.JSONListItem
public class JSONListItem
Describes the JSONListItem data object
| Constructor Summary | |
|---|---|
JSONListItem(String id,
String title)
Default constructor for an item |
|
JSONListItem(String id,
String title,
JSONListConstants.JSONListItemType type,
String action,
int showType,
String iconURI,
String category,
Map<String,String> additionalAttributes)
Full constructor for an item |
|
| Method Summary | |
|---|---|
void |
addAdditionalAttribute(String key,
String value)
Adds an attribute to the additional attributes map |
String |
getAction()
Returns the item action |
Map<String,String> |
getAdditionalAttributes()
Returns the item's additional attributes map |
String |
getAttributeByKey(String key)
Returns an attribute value by key from the additional attributes map |
String |
getCategory()
Returns the item category |
String |
getIconURI()
Returns the item icon URI |
String |
getID()
Returns the item ID |
com.sap.portal.navigation.json.JSONObject |
getJSON()
Returns a JSON object that represents an item. |
int |
getShowType()
Returns the item show type, which determines where the content of an item is displayed |
String |
getTitle()
Returns the item title |
JSONListConstants.JSONListItemType |
getType()
Returns the item JSONListConstants.JSONListItemType |
void |
setAction(String action)
Sets the item action |
void |
setAdditionalAttributes(Map<String,String> additionalAttributes)
Sets the item's additional attributes map |
void |
setCategory(String category)
Sets the item category |
void |
setIconURI(String iconURI)
Sets the item icon URI |
void |
setShowType(int showType)
Sets the item show type, which determines where the content of an item is displayed |
void |
setType(JSONListConstants.JSONListItemType type)
Sets the item JSONListConstants.JSONListItemType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSONListItem(String id,
String title)
throws IllegalArgumentException
id - Item IDtitle - Item title
IllegalArgumentException - in case the ID or title is invalid or equal to 'Null'
public JSONListItem(String id,
String title,
JSONListConstants.JSONListItemType type,
String action,
int showType,
String iconURI,
String category,
Map<String,String> additionalAttributes)
throws IllegalArgumentException
id - Item IDtitle - Item titletype - Item JSONListConstants.JSONListItemTypeaction - Item actionshowType - Item showType - Determines where the content of an item is displayediconURI - Item iconURIcategory - Item categoryadditionalAttributes - Item additional Attributes
IllegalArgumentException - in case the ID, title or type is invalid or equal to 'Null'| Method Detail |
|---|
public String getID()
public String getTitle()
public JSONListConstants.JSONListItemType getType()
JSONListConstants.JSONListItemType
JSONListConstants.JSONListItemTypepublic String getAction()
public int getShowType()
public String getIconURI()
public String getCategory()
public Map<String,String> getAdditionalAttributes()
public String getAttributeByKey(String key)
key - Attribute key
public void setType(JSONListConstants.JSONListItemType type)
throws IllegalArgumentException
JSONListConstants.JSONListItemType
type - JSONListConstants.JSONListItemType
IllegalArgumentException - in case type is equal to 'Null'public void setAction(String action)
action - Item actionpublic void setShowType(int showType)
showType - Item show typepublic void setIconURI(String iconURI)
iconURI - Item icon URIpublic void setCategory(String category)
category - Item categorypublic void setAdditionalAttributes(Map<String,String> additionalAttributes)
additionalAttributes - Item additional attributes map
public void addAdditionalAttribute(String key,
String value)
throws IllegalArgumentException
key - Attribute keyvalue - Attribute value
IllegalArgumentException - in case the key or attribute is ‘Null’public com.sap.portal.navigation.json.JSONObject getJSON()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/navigation/api
|
api
|
EP-PIN
|
|
SAP NetWeaver 7.31 Enterprise Portal (SP 16) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||