01: package elementjava;
02:
03: import com.uwyn.rife.engine.Element;
04:
05: public class inheritance_parent extends Element {
06: public void processElement() {
07: if (hasSubmission("activatechild")) {
08: setOutput("trigger", "ok");
09: }
10:
11: print("<html><body><a href=\""
12: + getSubmissionQueryUrl("activatechild")
13: + "\">activate child</a></body></html>");
14: }
15:
16: public boolean childTriggered(String name, String[] values) {
17: if (name.equals("trigger") && values[0].equals("ok")) {
18: return true;
19: } else {
20: return false;
21: }
22: }
23: }
|