01: package com.tctest.rife.elements;
02:
03: import com.uwyn.rife.engine.ElementAware;
04: import com.uwyn.rife.engine.ElementSupport;
05: import com.uwyn.rife.engine.annotations.Elem;
06:
07: @Elem
08: public class SimpleInterface implements ElementAware, Cloneable {
09: private ElementSupport mElement;
10:
11: public void noticeElement(ElementSupport element) {
12: mElement = element;
13: }
14:
15: public void processElement() {
16: String before = "before simple pause";
17: String after = "after simple pause";
18:
19: mElement.print(before + "\n" + mElement.getContinuationId());
20: mElement.pause();
21: mElement.print(after);
22: }
23:
24: public Object clone() throws CloneNotSupportedException {
25: return super.clone();
26: }
27: }
|