added the 4th option to traffic lights

This commit is contained in:
Fredrik Norberg 2011-07-27 17:20:13 +02:00
parent 2a433f5cc5
commit 43c2e13dc3
3 changed files with 6 additions and 1 deletions
src/main
java/se/su/dsv/scipro
checklists/panels
data/enums
webapp/images/icons

@ -64,6 +64,10 @@ public class TrafficLightPanel extends Panel {
image = new StaticImage("image", new Model<String>(
"images/icons/yellow_ball_32.png"));
}
else if (stateOfMind.equals(StateOfMind.NOTAPLICABLE)) {
image = new StaticImage("image", new Model<String>(
"images/icons/grey_ball_32.png"));
}
item.add(image);
};
};

@ -10,7 +10,8 @@ package se.su.dsv.scipro.data.enums;
public enum StateOfMind {
NEEDHELP(0, "Need Help", "You think you need help to proceed or you are unsure of what to do next.", "som-needhelp"),
NEUTRAL(1, "Neutral", "This is the default option and signals that you don't have a clear standpoint on your status but no imminent help is needed.", "som-neutral"),
FINE(2, "Everything is fine", "This means your work proceeds as planned and that no issues regarding the continuation are on the horizon.", "som-fine");
FINE(2, "Everything is fine", "This means your work proceeds as planned and that no issues regarding the continuation are on the horizon.", "som-fine"),
NOTAPLICABLE(3, "moo", "moo","som-moo");
private int value;
private String status;

Binary file not shown.

After

(image error) Size: 1.1 KiB