overhauled registry
This commit is contained in:
@@ -12,11 +12,11 @@ import de.srsoftware.web4rail.tags.Fieldset;
|
||||
|
||||
public class SetContextTrain extends Action {
|
||||
|
||||
private Train train = null;
|
||||
|
||||
public SetContextTrain(BaseClass parent) {
|
||||
super(parent);
|
||||
}
|
||||
|
||||
private Train train = null;
|
||||
|
||||
@Override
|
||||
public boolean fire(Context context) {
|
||||
@@ -55,6 +55,11 @@ public class SetContextTrain extends Action {
|
||||
return super.properties(preForm, formInputs, postForm);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void removeChild(BaseClass child) {
|
||||
if (child == train) train = null;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return isSet(train) ? t("Set {} as context",train) : "["+t("Click here to select train!")+"]";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user