ToDoStatus.javaplugins/org.projectforge.plugins.todo/src/main/java/org/projectforge/plugins/todo/ToDoStatus.java containing Java code for the Component layer.Package: org.projectforge.plugins.todo
Enums: ToDoStatus
Implements: I18nEnum
Methods (3): getI18nKey, getKey, isIn
Fields (1): key
Imports: 1 packages
package org.projectforge.plugins.todo;
import org.projectforge.common.i18n.I18nEnum;
/**
*
* @author Kai Reinhard (k.reinhard@micromata.de)
*
*/
public enum ToDoStatus implements I18nEnum
{
OPENED("opened"), IN_PROGRESS("inprogress"), RE_OPENED("reopened"), POSTPONED("postponed"), CLOSED("closed");
private String key;
/**
* @return The full i18n key including the i18n prefix "plugins.todo.status.".
*/
public String getI18nKey()
{
return "plugins.todo.status." + key;
}
/**
* The key will be used e. g. for i18n.
* @return
*/
public String getKey()
{
return key;
}
public boolean isIn(final ToDoStatus... status)
{
for (final ToDoStatus st : status) {
if (this == st) {
return true;
}
}
return false;
}
ToDoStatus(final String key)
{
this.key = key;
}
}
868d6abb7 2025 -> 2026 7cedb5bc8 Proof-reading I18nResources by Claude Code. 63081666f Source file headers: 2024-> 2025. b6092df09 Copyright 2023 -> 2024 ab45d51fa Copyright 2001-2022 -> 2001-2023.