Class ColoredOpenProjectObject
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
com.xwiki.projectmanagement.openproject.model.BaseOpenProjectObject
com.xwiki.projectmanagement.openproject.model.ColoredOpenProjectObject
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
Describes the Open Project entities that can have custom colors associated to them such as Status and Type.
- Since:
- 1.0
- Version:
- $Id$
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe key that retrieves the color attribute of this entity.Fields inherited from class com.xwiki.projectmanagement.openproject.model.BaseOpenProjectObject
KEY_ID, KEY_NAME -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.xwiki.projectmanagement.openproject.model.BaseOpenProjectObject
getId, getMapEntries, getName, getSelf, putEntry, setId, setName, setSelfMethods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Field Details
-
KEY_COLOR
The key that retrieves the color attribute of this entity.- See Also:
-
-
Constructor Details
-
ColoredOpenProjectObject
public ColoredOpenProjectObject()
-
-
Method Details
-
getColor
- Returns:
- the color associated to this entity. It is used by the client to display this property in a specific color.
-
setColor
- Parameters:
color- seegetColor().
-