Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Inherits Serializable.
Public Member Functions | |
int | getCurrent () |
int | getFavorite () |
Static Public Member Functions | |
static boolean | isValid (int colorID) |
Static Public Attributes | |
static final int | UNKNOWN = -1 |
Package Functions | |
UserColorID () | |
UserColorID (int current, int favorite) | |
void | setCurrent (int colorID) |
void | setFavorite (int colorID) |
Holder class for a current and favorite color id.
de.fu_berlin.inf.dpp.editor.colorstorage.UserColorID.UserColorID | ( | ) | [package] |
Constructs a newly allocated UserColorID object with current and favorite color id set to UNKNOWN.
de.fu_berlin.inf.dpp.editor.colorstorage.UserColorID.UserColorID | ( | int | current, |
int | favorite | ||
) | [package] |
Constructs a newly allocated UserColorID object with current and favorite color id set to the given values.
current | the value to use for the current color id |
favorite | the value to use for the favorite color id |
int de.fu_berlin.inf.dpp.editor.colorstorage.UserColorID.getCurrent | ( | ) |
Returns the current color id.
int de.fu_berlin.inf.dpp.editor.colorstorage.UserColorID.getFavorite | ( | ) |
Returns the favorite color id.
static boolean de.fu_berlin.inf.dpp.editor.colorstorage.UserColorID.isValid | ( | int | colorID | ) | [static] |
Checks if the given color id is valid. A negative color id will never be valid.
colorID | the color id to check |
true
if the color id is valid, false
otherwise void de.fu_berlin.inf.dpp.editor.colorstorage.UserColorID.setCurrent | ( | int | colorID | ) | [package] |
Sets the current color id
colorID | the new color id to set |
void de.fu_berlin.inf.dpp.editor.colorstorage.UserColorID.setFavorite | ( | int | colorID | ) | [package] |
Sets the favorite color id
colorID | the new favorite color id to set |
final int de.fu_berlin.inf.dpp.editor.colorstorage.UserColorID.UNKNOWN = -1 [static] |
A constant for presenting an unknown and invalid color id