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>
public class ColoredOpenProjectObject extends BaseOpenProjectObject
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:
- Serialized Form
-
-
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
Fields Modifier and Type Field Description static StringKEY_COLORThe 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 Constructor Description ColoredOpenProjectObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetColor()voidsetColor(String color)-
Methods inherited from class com.xwiki.projectmanagement.openproject.model.BaseOpenProjectObject
getId, getMapEntries, getName, getSelf, putEntry, setId, setName, setSelf
-
Methods 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, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Field Detail
-
KEY_COLOR
public static final String KEY_COLOR
The key that retrieves the color attribute of this entity.- See Also:
- Constant Field Values
-
-
Method Detail
-
getColor
public String getColor()
- Returns:
- the color associated to this entity. It is used by the client to display this property in a specific color.
-
setColor
public void setColor(String color)
- Parameters:
color- seegetColor().
-
-