Skip to content
Snippets Groups Projects

Replaced one unclickable TaskView JList with 4 separate working ones

Merged Ondřej Hrdlička requested to merge prokes-milestone-01 into milestone-01
All threads resolved!
Files
11
package cz.muni.fi.pv168.project.data.task;
import java.util.Locale;
import cz.muni.fi.pv168.project.utils.Utilities;
public enum TaskStatus {
PLANNED,
IN_PROGRESS,
FINISHED;
/**
* Formats the UPPER_SNAKE_CASE enum value into a humanly readable String.
* @return capitalized String with spaces instead of underscores
*/
@Override
public String toString() {
String value = this.name().replace("_", " ");
return value.charAt(0) + value.substring(1).toLowerCase(Locale.ROOT);
return Utilities.enumValueToString(this.name());
}
}
Loading