- 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
29 lines
536 B
Java
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);
|
|
}
|
|
}
|