Files
Web4Rail/src/main/java/de/srsoftware/web4rail/actions/ShowText.java
Stephan Richter b951b948e5 updated thread handling:
- threads are no longer pooled (this makes naming threads difficult)
- threads are now named by their causing event, which improves logging

updated calls to thread.sleep: those are now provided by new class Delayed Execution
2021-02-28 13:03:21 +01:00

29 lines
536 B
Java

package de.srsoftware.web4rail.actions;
import de.srsoftware.web4rail.BaseClass;
import de.srsoftware.web4rail.tags.Label;
public class ShowText extends TextAction{
public ShowText(BaseClass parent) {
super(parent);
}
@Override
public boolean fire(Context context,Object cause) {
plan.stream(fill(text,context));
return true;
}
@Override
protected Label label() {
return new Label(t("Text to display on clients")+COL);
}
@Override
public String toString() {
return t("Display \"{}\" on clients.",text);
}
}